Please advice which adapter should I purchase? from USA to morocco

Hi,
Have a look in the top questions box on the right - What electrical adaptor....
You can buy it in Morocco too in case you don't have time in the States, as the hotels can provide you with one to use, for more info use the Link on the right side at the Top Asked Question like Shimmin has suggested for you.
Have fun and welcome to Morocco .
It's the same plug as the UK - usually 2 flat and the vertical flat ground, although sometimes we came across the 2 round pins. I have an adaptor that is good for both - inexpensive to buy at home.
In Morocco electric power comes through at 220 volts and at 50 Hertz. Though similar to most of Europe, this differs from the 110-120 volts at 60 Hz North America electrical standard. Certain types of equipment from North America won’t work properly if it does not have a built-in capability to work with 220 volt power supplies.
Try something like this: