PageSourceSearch

https://tasteofnovascotia.com/wp-content/themes/tasteofnovascotia/js/script.min.js?ver=7.1.1

js tasteofnovascotia.com collected 2026-09-26 00:01:12 UTC 8,294 bytes, 1 lines download raw bytes

1$(document).ready(function(){function e(){d.removeClass("depth"+v),v--,d.addClass("depth"+v),g=g.addClass("offcanvas").parent().parent(),0===v&&h.off().on("click",function(e){n(e),d.toggleClass("collapsed")})}function t(t){d.removeClass("depth"+v),v++,d.addClass("depth"+v),g=t.next().removeClass("offcanvas"),1===v&&h.off().on("click",function(t){n(t),e()})}function a(){if(r.width()<640&&!b){if(!w){var e=d.find("ul"),a=f.hide().clone().children("ul").children("li");a.splice(0,1),e.append(a.addClass("merged")).wrap("<div></div>"),e.find("li > ul").addClass("offcanvas").parent().addClass("hassubnav").find(">a").each(function(){var e=$(this),a=e.parent().clone();e.next().prepend(a.removeClass()),e.on("click",function(a){n(a),t(e)})}),d.append(h.on("click",function(e){n(e),d.toggleClass("collapsed")})),u.addClass("collapsed"),d.append(p.on("click",function(e){n(e),u.toggleClass("collapsed")}))}d.addClass("mobile collapsed"),f.hide(),m.hide(),b=!0,w=!0,$("#menu-main-navigation").append($("#menu-footer-navigation li.mobile-add"))}else r.width()>=640&&b&&($("#menu-footer-navigation").append($("#menu-main-navigation li.mobile-add")),b=!1,d.removeClass("mobile collapsed"),u.removeClass("collapsed"),f.show(),m.show())}function n(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function i(){function e(e){e=0>e?z-1:e>=z-1?0:e,H.css("transform","translateX(-"+e*l+"%)"),d=e}function t(){m=setTimeout(function(){e(d+1),t()},5e3)}for(var a=$(".instafeed > div"),i=H.width(),s=H.find("li"),o=$(s[0]).width(),l=(o+5)/i*100,c=$(".feed-next"),r=$(".feed-prev"),d=0,f=0;f<s.length;f++)f<s.length-1?$(s[f]).css("left",(o>0?l:0)*f+"%"):$(s[f]).css("left","-"+l+"%");c.on("click",function(t){n(t),e(d+1)}),r.on("click",function(t){n(t),e(d-1)});var m;t(),a.mouseenter(function(){clearTimeout(m)}),a.mouseleave(function(){t()})}function s(e,t){e.on("submit",function(a){if(-1!==e.attr("action").indexOf("MERGE0")){n(a);var i=e.attr("action"),s=e.children("input").val();e.attr("action",i+"&MERGE0="+s);try{ga("send","event","Newsletter Subscribe",t,s)}catch(o){}setTimeout(function(){e.submit()},200)}})}function o(){var e=(document.body.scrollTop||document.documentElement.scrollTop)+window.innerHeight,t=document.body.scrollHeight;e>=1150?(F.addClass("visible"),t-P>=e?(F.removeClass("fixed-to-footer"),F.css("bottom","0px")):(F.addClass("fixed-to-footer"),F.css("bottom",V+"px"))):F.removeClass("visible")}function l(){if(r.width()>=960&&!q){var e=$(".ct-instawall").children();e.slice(0,5).wrapAll("<div>"),e.slice(5,10).wrapAll("<div>"),q=!0}}function c(){r.width()<640?J.attr("src",Q):J.attr("src",K)}var r=$("body"),d=$("header nav.main"),f=d.siblings("nav"),m=$(".subnav"),u=$("header #searchform"),h=$('<a href="#navigation" class="mobileTrigger">Menu</a>'),p=$('<a href="#search" class="searchTrigger">Search</a>'),g=null,v=0,w=!1,b=!1;if($("html").removeClass("no-js"),"function"!=typeof window.matchMedia){var C=document.createElement("script");C.src="/wp-contents/themes/tasteofnovascotiawordpresstheme/js/respond.js",document.body.appendChild(C)}a(),$(window).resize(function(){a()});var x=new Image;x.src="/wp-content/themes/tasteofnovascotia/img/loading.gif",$("header + aside").find("select").on("change",function(){window.location=$(this).addClass("loading").find("option:selected").val()}),$(".members-intro").children("li").addClass("collapsed").on("click",function(){$(this).toggleClass("collapsed").siblings().addClass("collapsed"),ga("send","event","Click","Member Category",$(this).find("h3").html())});var k=$(".members-profile .brand"),y=$(".members-profile .main ul:last"),T=y.find("img");$('article a[href$=".jpg"], article a[href$=".jpeg"], article a[href$=".png"]').not(y.find("a")).each(function(){$(this).addClass($(this).children("img").attr("class")),$(this).magnificPopup({type:"image"})}),k.length>0&&y.length>0&&T.length>=1&&(y.addClass("member-gallery").magnificPopup({type:"image",delegate:"a",gallery:{enabled:!0},image:{titleSrc:"title"}}),r.width()>=640&&k.append(y));var E=$(".welcome"),N=document.title.split("|")[0],S=N.toLowerCase().replace(" ",""),L=$('<a href="#" class="hide">Hide</a>');if(L.on("click",function(e){n(e),E.addClass("transition collapsed"),localStorage&&localStorage.setItem(S,"hidden"),ga("send","event","Click","Hide page intro",N)}),E.prepend(L),localStorage){var j=localStorage.getItem(S);j&&E.addClass("collapsed")}!function(){function e(e){switch(e){case"item-0":i.className="featured-slider is-first",s.className="featured-selector is-first";break;case"item-1":i.className="featured-slider is-second",s.className="featured-selector is-second";break;case"item-2":i.className="featured-slider is-third",s.className="featured-selector is-third"}}function t(){-1!==i.className.indexOf("is-first")?e("item-1"):-1!==i.className.indexOf("is-second")?e(o.length<3?"item-0":"item-2"):-1!==i.className.indexOf("is-third")&&e("item-0")}function a(){e(this.className.slice(this.className.lastIndexOf("item-")))}function n(){c=setTimeout(function(){t(),n()},5e3)}var i=document.getElementsByClassName("featured-slider")[0],s=document.getElementsByClassName("featured-selector")[0],o=document.getElementsByClassName("selector-item");if(i){for(var l=0;l<o.length;l++)o[l].addEventListener("click",a);var c;o.length>1&&n(),i.addEventListener("mouseenter",function(){clearTimeout(c)}),i.addEventListener("mouseleave",function(){n()}),s.addEventListener("mouseenter",function(){clearTimeout(c)}),s.addEventListener("mouseleave",function(){n()})}}();var B="294369931.1677ed0.f04dd33ee00d46fe8ef73c51596cb4e1",z=9,H=$(".instafeed > div > ul");if(H.length&&$.ajax({url:"https://api.instagram.com/v1/users/self/media/recent",dataType:"jsonp",type:"GET",data:{access_token:B,count:z},success:function(e){for(var t=0;t<e.data.length;t++)H.append('<li><img src="'+e.data[t].images.low_resolution.url+'"></li>');i()},error:function(e){console.log(e)}}),!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")){var M=$("header a img"),O=M.attr("src");$("body").addClass("no-svg"),M.attr("src",O.replace(".svg",".png"))}s($(".newsletter-subscribe"),"Sidebar Subscribe Box"),r.width()<=480&&$("#chowder-trail-map").remove(),$(".nominationclosed").text("Nomination Closed").on("click",function(e){return n(e),
1!1}),$(".gift .basket-contents").on("click",function(){$(this).addClass("expanded")}),$("aside .textwidget a").on("click",function(e){n(e);var t=$(this),a=t.attr("href");try{ga("send","event","Click","Sidebar CTA",a),setTimeout(function(){window.location=a},200)}catch(i){window.location=a}});var A=/\.([0-9a-z]+)(?:[\?#]|$)/i,G=["doc","docx","xls","xlsx","pdf","ppt","pptx","ppsx"];$("a").on("click",function(e){var t=$(this),a=t.attr("href"),i=a.match(A);try{i&&-1!==G.indexOf(i[1].toLowerCase())&&(n(e),ga("send","event","Download",i[1].toLowerCase(),a),setTimeout(function(){window.location=a},200))}catch(s){window.location=a}});var I=!1;$(window).on("scroll",function(){var e=document.body.scrollTop||document.documentElement.scrollTop;I||document.body.scrollHeight!=e+window.innerHeight||(ga("send","event","Scroll","Reached bottom",document.title.split("|")[0]),I=!0)}),$(".members-detail.contact .web a").on("click",function(){var e=$(this),t=e.attr("href");ga("send","event","Click","Member Website link",t),setTimeout(function(){window.location=t},200)});var R=$(".recipe-categories .cats");$(".show-all-categories").on("click",function(){$(this).html("All"==$(this).html()?"Favorites":"All"),R.toggleClass("favorites")});var D=$(".newsletter-subscribe"),F=D.clone(),P=$("footer").height(),V=P,_=D.offset()?D.offset().left:0;F.css("left",_+"px"),F.css("bottom",V+"px"),F.addClass("clone"),s(F,"Bottom Subscribe Box"),$("body").append(F),$(window).on("resize",function(){V=$("footer").height(),_=D.offset()?D.offset().left:0,P=$("footer").height(),F.css("left",_+"px"),o()}),$(window).on("scroll",function(){o()}),o();var W=$(".ct-instawall"),X=W.find("> a").slice(0,10),q=!1;$.map(X,function(e){e=$(e);var t=e.html(),a=$("<img>");a.attr("src",e.attr("href")+"media/?size=m"),a.attr("alt",t),e.attr("title",t),e.html("").append(a)}),W.empty().append(X),$(window).on("resize",l),l();var J=$(".ct-header-image img"),K=J.attr("src"),Q=J.attr("data-mobile-image");$(window).on("resize",c),c()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.