This file contains 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=uft-8> | |
<title></title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
</head> | |
<body> | |
</body> |
This file contains 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, works with modernizer | |
var o = jQuery({}); | |
jQuery.subscribe = o.on.bind(o); | |
jQuery.unsubscribe = o.off.bind(o); | |
jQuery.publish = o.trigger.bind(o); |
This file contains 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
.imageReplace{ | |
border:0; | |
font: 0/0 a; | |
text-shadow:none; | |
background-color:transparent; | |
} |
This file contains 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
(function($)){ | |
var o = jQuery({}); | |
jQuery.each({ | |
on:'subscribe', | |
trigger:'publish', | |
off:'unsubscribe' | |
},function(key,api){ | |
jQuery[api] = function(){ | |
o[key].apply(o.arguments); |