This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8> | |
| <title></title> | |
| <link rel="stylesheet" href="styles.css"> | |
| </head> | |
| <body> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Works in modern browsers + IE9, but Modernizr has a polyfill baked in for function.bind. | |
| // Uses Javascript's new bind function | |
| //Hat tip Paul Irish 'and tuts' | |
| var o = $( {} ); | |
| $.subscribe = o.on.bind(o); | |
| $.unsubscribe = o.off.bind(o); | |
| $.publish = o.trigger.bind(o); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* This is a new way to use image replacement without using text indent to form a box way to the screens */ | |
| .ir { | |
| border: 0; | |
| font: 0/0 a; | |
| text-shadow: none; | |
| color: transparent; | |
| background-color: transparent; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Jquery version of using pubsub | |
| (function($) { | |
| var o = $( {} ); | |
| $.each({ | |
| on: 'subscribe', | |
| trigger: 'publish', | |
| off: 'unsubscribe' | |
| }, function ( key, api ) { |