Sha256: 1857d2e3113eb2013c76be066e1d611078cad4b1eccd7ab57ddc64d28c583d7b
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
$(function(){function n(){document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||($("img[src$='.svg']").each(function(){$(this).attr("src",$(this).attr("src").replace(".svg",".png"))}),$(".without-svg").show(),$(".with-svg").hide())}function t(){$.ajaxSetup({cache:!1})}function i(){function t(i){var r=+new Date;n+500>r||($.featherlight.close(i),$(window).off("scroll",t))}var n;$.featherlight.defaults.closeOnClick="anywhere";$.featherlight.defaults.afterOpen=function(){n=+new Date;$(window).on("scroll",t)}}function r(){$("nav.navbar-fixed-top").autoHidingNavbar()}function u(){$(".magnify").each(function(){var t=$(this),i=new Image;i.src=t.attr("src");var r=i.width,u=i.height,n=$("<div class='magnifier' style='display: none; width: 200px; height: 200px; position: absolute; transform: scale(1.3); cursor: none; border-radius: 100%; background: url("+i.src+"); background-repeat: no-repeat; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.85), 0 0 7px 7px rgba(0, 0, 0, 0.25), inset 0 0 40px 2px rgba(0, 0, 0, 0.25)'><\/div>");t.parent().append(n);t.parent().mousemove(function(i){var o=$(this).offset(),f=i.pageX-o.left,e=i.pageY-o.top;if(f<t.width()&&e<t.height()&&f>0&&e>0?n.fadeIn(100):n.fadeOut(100),n.is(":visible")){var s=Math.round(f/t.width()*r-n.width()/2)*-1,h=Math.round(e/t.height()*u-n.height()/2)*-1,c=s+"px "+h+"px",l=f-n.width()/2,a=e-n.height()/2;n.css({left:l,top:a,backgroundPosition:c})}})})}n();t();u();i();r()});
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openf1-jekyll-theme-0.2.0 | assets/js/site.min.js |
openf1-jekyll-theme-0.1.0 | assets/js/site.min.js |