File: /home/dailygoldindex/public_html/wp-content/themes/jnews/assets/js/superfish.js
!function(e,n){"use strict";var o,t,i,s,a,r,h,l,p,c,f,u,d,v,m,y,w,C=(t="sf-breadcrumb",i="sf-js-enabled",s="sf-with-ul",a="sf-arrows",r=function(){var n=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return n&&e("html").css("cursor","pointer").on("click",e.noop),n}(),h="behavior"in(o=document.documentElement.style)&&"fill"in o&&/iemobile/i.test(navigator.userAgent),l=!!n.PointerEvent,p=function(e,n,o){var t=i;n.cssArrows&&(t+=" "+a),e[o?"addClass":"removeClass"](t)},c=function(e,n){var o=n?"addClass":"removeClass";e.children("a")[o](s)},f=function(e){var n=e.css("ms-touch-action"),o=e.css("touch-action");o="pan-y"===(o=o||n)?"auto":"pan-y",e.css({"ms-touch-action":o,"touch-action":o})},u=function(e){return e.closest("."+i)},d=function(e){return u(e).data("sfOptions")},v=function(){var n=e(this),o=d(n);clearTimeout(o.sfTimer),n.siblings().superfish("hide").end().superfish("show")},m=function(n){n.retainPath=e.inArray(this[0],n.$path)>-1,this.superfish("hide"),this.parents("."+n.hoverClass).length||(n.onIdle.call(u(this)),n.$path.length&&e.proxy(v,n.$path)())},y=function(){var n=e(this),o=d(n);r?e.proxy(m,n,o)():(clearTimeout(o.sfTimer),o.sfTimer=setTimeout(e.proxy(m,n,o),o.delay))},w=function(n){var o=e(this),t=d(o),i=o.siblings(n.data.popUpSelector);if(!1===t.onHandleTouch.call(i))return this;i.length>0&&i.is(":hidden")&&(o.one("click.superfish",!1),"MSPointerDown"===n.type||"pointerdown"===n.type?o.trigger("focus"):e.proxy(v,o.parent("li"))())},{hide:function(n){if(this.length){var o=d(this);if(!o)return this;var t=!0===o.retainPath?o.$path:"",i=this.find("li."+o.hoverClass).add(this).not(t).removeClass(o.hoverClass).children(o.popUpSelector),s=o.speedOut;if(n&&(i.show(),s=0),o.retainPath=!1,!1===o.onBeforeHide.call(i))return this;"slide"===o.animationType?i.stop(!0,!0).fadeOut(o.animationOut,(function(){var n=e(this);o.onHide.call(n)})):"fade"===o.animationType?i.stop(!0,!0).fadeOut(o.animationOut,(function(){var n=e(this);o.onHide.call(n)})):"animateTransform"===o.animationType?i.stop(!0,!0).hide(0,(function(){var n=e(this);o.onHide.call(n)})):"none"===o.animationType?i.stop(!0,!0).hide(0,(function(){var n=e(this);o.onShow.call(n)})):i.stop(!0,!0).animate(o.animationOut,s,(function(){var n=e(this);o.onHide.call(n)}))}return this},show:function(){var n=d(this);if(!n)return this;var o=this.addClass(n.hoverClass).children(n.popUpSelector);return!1===n.onBeforeShow.call(o)||("slide"===n.animationType?o.stop(!0,!0).slideDown(n.speed,(function(){var o=e(this);n.onShow.call(o)})):"fade"===n.animationType?o.stop(!0,!0).fadeIn(n.speed,(function(){var o=e(this);n.onShow.call(o)})):"animateTransform"===n.animationType?o.stop(!0,!0).css({display:"block",transform:"translate(0, -10px)",opacity:0}).transition({opacity:1,y:0},n.speed,"ease",(function(){var o=e(this);n.onShow.call(o)})):"none"===n.animationType?o.stop(!0,!0).show(0,(function(){var o=e(this);n.onShow.call(o)})):o.stop(!0,!0).animate(n.animation,n.speed,(function(){n.onShow.call(o)}))),this},destroy:function(){return this.each((function(){var n,o=e(this),i=o.data("sfOptions");if(!i)return!1;n=o.find(i.popUpSelector).parent("li"),clearTimeout(i.sfTimer),p(o,i),c(n),f(o),o.off(".superfish").off(".hoverIntent"),n.children(i.popUpSelector).attr("style",(function(e,n){return n.replace(/display[^;]+;?/g,"")})),i.$path.removeClass(i.hoverClass+" "+t).addClass(i.pathClass),o.find("."+i.hoverClass).removeClass(i.hoverClass),i.onDestroy.call(o),o.removeData("sfOptions")}))},init:function(n){return this.each((function(){var o=e(this);if(o.data("sfOptions"))return!1;var i=e.extend({},e.fn.superfish.defaults,n),s=o.find(i.popUpSelector).parent("li");i.$path=function(n,o){return n.find("li."+o.pathClass).slice(0,o.pathLevels).addClass(o.hoverClass+" "+t).filter((function(){return e(this).children(o.popUpSelector).hide().show().length})).removeClass(o.pathClass)}(o,i),o.data("sfOptions",i),p(o,i,!0),c(s,!0),f(o),function(n,o){var t="li:has("+o.popUpSelector+")";e.fn.hoverIntent&&!o.disableHI?n.hoverIntent(v,y,t):n.on("mouseenter.superfish",t,v).on("mouseleave.superfish",t,y);var i="MSPointerDown.superfish";l&&(i="pointerdown.superfish"),r||(i+=" touchend.superfish"),h&&(i+=" mousedown.superfish"),n.on("focusin.superfish","li",v).on("focusout.superfish","li",y).on(i,"a",o,w)}(o,i),s.not("."+t).superfish("hide",!0),i.onInit.call(this)}))}});e.fn.superfish=function(n,o){return C[n]?C[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?e.error("Method "+n+" does not exist on jQuery.fn.superfish"):C.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animationType:"animate",animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window);