PageSourceSearch

http://www.kmsbullion.com/assets/js/jquery.slicknav.js

js kmsbullion.com collected 2026-10-02 01:33:42 UTC 6,357 bytes, 1 lines download raw bytes

1(function(e,a,c){var f={label:"",duplicate:true,duration:200,easingOpen:"swing",easingClose:"swing",closedSymbol:"&#9658;",openedSymbol:"&#9660;",prependTo:"body",parentTag:"a",closeOnClick:false,allowParentLinks:false,nestedParentLinks:true,showChildren:false,brand:"",init:function(){},open:function(){},close:function(){}},g="slicknav",d="slicknav";function b(i,h){this.element=i;this.settings=e.extend({},f,h);this._defaults=f;this._name=g;this.init()}b.prototype.init=function(){var l=this,m=e(this.element),k=this.settings,h,j;if(k.duplicate){l.mobileNav=m.clone();l.mobileNav.removeAttr("id");l.mobileNav.find("*").each(function(o,p){e(p).removeAttr("id")})}else{l.mobileNav=m}h=d+"_icon";if(k.label===""){h+=" "+d+"_no-text"}if(k.parentTag=="a"){k.parentTag='a href="#"'}l.mobileNav.attr("class",d+"_nav");j=e('<div class="'+d+'_menu"></div>');if(k.brand!==""){var n=e('<div class="'+d+'_brand">'+k.brand+"</div>");e(j).append(n)}l.btn=e(["<"+k.parentTag+' aria-haspopup="true" tabindex="0" class="'+d+"_btn "+d+'_collapsed">','<span class="'+d+'_menutxt">'+k.label+"</span>",'<span class="'+h+'">','<span class="'+d+'_icon-bar"></span>','<span class="'+d+'_icon-bar"></span>','<span class="'+d+'_icon-bar"></span>',"</span>","</"+k.parentTag+">"].join(""));e(j).append(l.btn);e(k.prependTo).prepend(j);j.append(l.mobileNav);var i=l.mobileNav.find("li");e(i).each(function(){var s=e(this),t={};t.children=s.children("ul").attr("role","menu");s.data("menu",t);if(t.children.length>0){var p=s.contents(),r=false;nodes=[];e(p).each(function(){if(!e(this).is("ul")){nodes.push(this)}else{return false}if(e(this).is("a")){r=true}});var u=e("<"+k.parentTag+' role="menuitem" aria-haspopup="true" tabindex="-1" class="'+d+'_item"/>');if((!k.allowParentLinks||k.nestedParentLinks)||!r){var o=e(nodes).wrapAll(u).parent();o.addClass(d+"_row")}else{e(nodes).wrapAll('<span class="'+d+"_parent-link "+d+'_row"/>').parent()}s.addClass(d+"_collapsed");s.addClass(d+"_parent");var q=e('<span class="'+d+'_arrow">'+k.closedSymbol+"</span>");if(k.allowParentLinks&&!k.nestedParentLinks&&r){q=q.wrap(u).parent()}e(nodes).last().after(q)}else{if(s.children().length===0){s.addClass(d+"_txtnode")}}s.children("a").attr("role","menuitem").click(function(v){if(k.closeOnClick&&!e(v.target).parent().closest("li").hasClass(d+"_parent")){e(l.btn).click()}});if(k.closeOnClick&&k.allowParentLinks){s.children("a").children("a").click(function(v){e(l.btn).click()});s.find("."+d+"_parent-link a:not(."+d+"_item)").click(function(v){e(l.btn).click()})}});e(i).each(function(){var o=e(this).data("menu");if(!k.showChildren){l._visibilityToggle(o.children,null,false,null,true)}});l._visibilityToggle(l.mobileNav,null,false,"init",true);l.mobileNav.attr("role","menu");e(a).mousedown(function(){l._outlines(false)});e(a).keyup(function(){l._outlines(true)});e(l.btn).click(function(o){o.preventDefault();l._menuToggle()});l.mobileNav.on("click","."+d+"_item",function(o){o.preventDefault();l._itemClick(e(this))});e(l.btn).keydown(function(p){var o=p||event;if(o.keyCode==13){p.preventDefault();l._menuToggle()}});l.mobileNav.on("keydown","."+d+"_item",function(p){var o=p||event;if(o.keyCode==13){p.preventDefault();l._itemClick(e(p.target))}});if(k.allowParentLinks&&k.nestedParentLinks){e("."+d+"_item a").click(function(o){o.stopImmediatePropagation()})}};b.prototype._menuToggle=function(j){var k=this;var i=k.btn;var h=k.mobileNav;if(i.hasClass(d+"_collapsed")){i.removeClass(d+"_collapsed");i.addClass(d+"_open")}else{i.removeClass(d+"_open");i.addClass(d+"_collapsed")}i.addClass(d+"_animating");k._visibilityToggle(h,i.parent(),true,i)};b.prototype._itemClick=function(i){var k=this;var h=k.settings;var j=i.data("menu");if(!j){j={};j.arrow=i.children("."+d+"_arrow");j.ul=i.next("ul");j.parent=i.parent();if(j.parent.hasClass(d+"_parent-link")){j.parent=i.parent().parent();j.ul=i.parent().next("ul")}i.data("menu",j)}if(j.parent.hasClass(d+"_collapsed")){j.arrow.html(h.openedSymbol);j.parent.removeClass(d+"_collapsed");j.parent.addClass(d+"_open");j.parent.addClass(d+"_animating");k._visibilityToggle(j.ul,j.parent,true,i)}else{j.arrow.html(h.closedSymbol);j.parent.addClass(d+"_collapsed");j.parent.removeClass(d+"_open");j.parent.addClass(d+"_animating");k._visibilityToggle(j.ul,j.parent,true,i)}};b.prototype._visibilityToggle=function(i,o,h,j,p){var n=this;var k=n.settings;var m=n._getActionItems(i);var l=0;if(h){l=k.duration}if(i.hasClass(d+"_hidden")){i.removeClass(d+"_hidden");i.slideDown(l,k.easingOpen,function(){e(j).removeClass(d+"_animating");e(o).removeClass(d+"_animating");if(!p){k.open(j)}});i.attr("aria-hidden","false");m.attr("tabindex","0");n._setVisAttr(i,false)}else{i.addClass(d+"_hidden");i.slideUp(l,this.settings.easingClose,function(){i.attr("aria-hidden","true");m.attr("tabindex","-1");n._setVisAttr(i,true);i.hide();e(j).removeClass(d+"_animating");e(o).removeClass(d+"_animating");if(!p){k.close(j)}else{if(j=="init"){k.init()}}})}};b.prototype._setVisAttr=function(i,j){var k=this;var h=i.children("li").children("ul").not("."+d+"_hidden");if(!j){h.each(function(){var m=e(this);m.attr("aria-hidden","false");var l=k._getActionItems(m);l.attr("tabindex","0");k._setVisAttr(m,j)})}else{h.each(function(){var m=e(this);m.attr("aria-hidden","true");var l=k._getActionItems(m);l.attr("tabindex","-1");k._setVisAttr(m,j)})}};b.prototype._getActionItems=function(i){var k=i.data("menu");if(!k){k={};var h=i.children("li");var j=h.find("a");k.links=j.add(h.find("."+d+"_item"));i.data("menu",k)}return k.links};b.prototype._outlines=function(h){if(!h){e("."+d+"_item, ."+d+"_btn").css("outline","none")}else{e("."+d+"_item, ."+d+"_btn").css("outline","")}};b.prototype.toggle=function(){var h=this;h._menuToggle()};b.prototype.open=function(){var h=this;
1if(h.btn.hasClass(d+"_collapsed")){h._menuToggle()}};b.prototype.close=function(){var h=this;if(h.btn.hasClass(d+"_open")){h._menuToggle()}};e.fn[g]=function(i){var h=arguments;if(i===undefined||typeof i==="object"){return this.each(function(){if(!e.data(this,"plugin_"+g)){e.data(this,"plugin_"+g,new b(this,i))}})}else{if(typeof i==="string"&&i[0]!=="_"&&i!=="init"){var j;this.each(function(){var k=e.data(this,"plugin_"+g);if(k instanceof b&&typeof k[i]==="function"){j=k[i].apply(k,Array.prototype.slice.call(h,1))}});return j!==undefined?j:this}}}}(jQuery,document,window));

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.