The hardest part about using drupal's javascript features is knowing where to begin: they remained an arcane mystery to me until today. After drinking a bit of whiskey, and studying how core was using Drupal.behavior, I learned it couldn't be simpler. If you don't know how to do this, take a moment:
The purpose of this book is to provide an overview of the jQuery JavaScript library; when you're done with the book, you should be able to complete basic tasks using jQuery, and have a solid basis from which to continue your learning. This book was designed as material to be used in a classroom setting, but you may find it useful for individual study.
Lösung die auch ohne JavaScript funktioniert, aber richtig übel
HTML-Formulare einheitlich stylen
Provides useful callbacks once descendent images have loaded.
A comÂmon probÂlem in responÂsive design is the linkÂing of CSS3’s media queries and JavaScript. For instance on a larger screen we can restyle, but it might be useÂful to use JavaScript and pull in difÂferÂent conÂtent at the same time, e.g. higher qualÂity images. With CSS tranÂsiÂtions, specifÂiÂcally their tranÂsiÂtioÂnEnd events, we can marry up our media queries and JavaScript perÂfectly, withÂout resortÂing to winÂdow resize events.