Welcome to the Treehouse Community
Looking to learn something new?
Sam Parkash6,645 Points
Mejs? Just a little confused on the concept.
Hi, Could someone please explain to me why we keep saying mejs over and over again for example we say...
.mejs-treehouse .mejs-controls .mejs-time-rail .mejs-total .mejs-treehouse .mejs-controls .mejs-time-rail .mejs-loaded- .mejs-treehouse .mejs-controls .mejs-time-rail .mejs-buffering- .mejs-treehouse .mejs-controls .mejs-time-rail .mejs-handel. ?
Arturo Alviar15,739 Points
Hi Sam, In this course, we are using a plugin called MediaElement.js (mejs). This plugin has its own css file where it declares classes that start with the word mejs for the sake of organization. For example, the mejs-wmp class styles the video player to look like a windows media player window.
The class name mejs-treehouse is not part of the plugin. It is a custom skin we build. Notice however that it follows the naming pattern that MediaElement.js has in order to distinguish that class as a class that relates to the plugin.
Hope this made sense.