Cheat sheet extracted from https://www.youtube.com/watch?v=2zmUSoVMyRU by That JS Dude.
If you pass any of the CSS selectors to $(<identifier>) you get the first element.
> $('a')Cheat sheet extracted from https://www.youtube.com/watch?v=2zmUSoVMyRU by That JS Dude.
If you pass any of the CSS selectors to $(<identifier>) you get the first element.
> $('a')| <?php | |
| /* | |
| Plugin Name: Instrument Hooks for WordPress | |
| Description: Instruments Hooks for a Page. Outputs during the Shutdown Hook. | |
| Version: 0.1 | |
| Author: Mike Schinkel | |
| Author URI: http://mikeschinkel.com | |
| */ | |
| if (isset($_GET['instrument']) && $_GET['instrument']=='hooks') { |
| /* | |
| * From css-tricks.com | |
| * http://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
| */ | |
| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* Styles */ |