-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpinimage.js
More file actions
34 lines (29 loc) · 1.04 KB
/
Copy pathpinimage.js
File metadata and controls
34 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(function() {
window.PinIt = window.PinIt || { loaded:false };
if (window.PinIt.loaded) return;
window.PinIt.loaded = true;
function async_load(){
var s = document.createElement("script");
s.type = "text/javascript";
s.async = true;
if (window.location.protocol == "https:")
s.src = "https://assets.pinterest.com/js/pinit.js";
else
s.src = "http://assets.pinterest.com/js/pinit.js";
var x = document.getElementsByTagName("script")[0];
x.parentNode.insertBefore(s, x);
}
if (window.attachEvent)
window.attachEvent("onload", async_load);
else
window.addEventListener("load", async_load, false);
})();
jQuery(document).ready(function() {
jQuery('.img-hover').bind('mouseover', function(){
var obj = jQuery(this).children(".img-hover-meta");
obj.addClass("reveal");
}).bind('mouseout', function(){
var obj = jQuery(this).children(".img-hover-meta");
obj.removeClass("reveal");
});
});