PageSourceSearch

https://kofc-md.org/_static/??-eJylz0EOgyAQheELdcCmC3VhPAuBsR3CDJa…/u8VJyEz9ITLXv8XdeXlPk7zOD+GYfoCZ8R2nw==

js kofc-md.org collected 2026-10-04 02:07:08 UTC 50,192 bytes, 702 lines download raw bytes

1��
2/* Modernizr 2.6.2 (Custom Build) | MIT & BSD��
3 * Build: http://modernizr.com/download/#-csstransforms-csstransforms3d-csstransitions-cssclasses-prefixed-teststyles-testprop-testallprops-prefixes-domprefixes��
4 */��
5window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={},r={},s={},t=[],u=t.slice,v,w=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.csstransforms=function(){return!!F("transform")},q.csstransforms3d=function(){var a=!!F("perspective");return a&&"webkitPerspective"in g.style&&w("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},q.csstransitions=function(){return F("transition")};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},e.testAllProps=F,e.testStyles=w,e.prefixed=function(a,b,c){return b?F(a,b,c):F(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document);��
6;
7!function(t){"function"==typeof define&&define.amd?define(["jquery","modernizr"],t):t(window.jQuery,window.Modernizr)}(function(t,i,e){"use strict";if("object"!=typeof i)throw new Error("Shuffle.js requires Modernizr.\nhttp://vestride.github.io/Shuffle/#dependencies");var s,n=i.prefixed("transition"),r=i.prefixed("transitionDelay"),o=i.prefixed("transitionDuration"),a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],l=i.prefixed("transform"),h=(s=l)?s.replace(/([A-Z])/g,function(t,i){return"-"+i.toLowerCase()}).replace(/^ms-/,"-ms-"):"",u=i.csstransforms&&i.csstransitions,f=i.csstransforms3d;var d=0,c=function(i,e){e=e||{},t.extend(this,c.options,e,c.settings),this.$el=t(i),this.$window=t(window),this.unique="shuffle_"+d++,this._fire(c.EventType.LOADING),this._init(),setTimeout(t.proxy(function(){this.initialized=!0,this._fire(c.EventType.DONE)},this),16)};return c.EventType={LOADING:"loading",DONE:"done",SHRINK:"shrink",SHRUNK:"shrunk",FILTER:"filter",FILTERED:"filtered",SORTED:"sorted",LAYOUT:"layout",REMOVED:"removed"},c.prototype={_init:function(){var i,e,s=this,r=t.proxy(s._onResize,s),o=s.throttle?s.throttle(r,s.throttleTime):r,a=s.initialSort?s.initialSort:null;s._layoutList=[],s._shrinkList=[],s._setVars(),s._resetCols(),s._addClasses(),s._initItems(),s.$window.on("resize.shuffle."+s.unique,o),i=s.$el.css(["paddingLeft","paddingRight","position"]),e=s._getOuterWidth(s.$el[0]),"static"===i.position&&(s.$el[0].style.position="relative"),s.offset={left:parseInt(i.paddingLeft,10)||0,top:parseInt(i.paddingTop,10)||0},s._setColumns(parseInt(e,10)),s.shuffle(s.group,a),s.supported&&setTimeout(function(){s._setTransitions(),s.$el[0].style[n]="height "+s.speed+"ms "+s.easing},0)},_addClasses:function(){this.$el.addClass("shuffle"),this.$items.addClass("shuffle-item filtered")},_setVars:function(){var i=this.columnWidth;this.$items=this._getItems(),0===i&&null!==this.sizer&&(i=this.sizer),"string"==typeof i?this.$sizer=this.$el.find(i):i&&i.nodeType&&1===i.nodeType?this.$sizer=t(i):i&&i.jquery&&(this.$sizer=i),this.$sizer&&this.$sizer.length&&(this.useSizer=!0,this.sizer=this.$sizer[0])},_filter:function(i,s){var n=this,r=s!==e?s:n.$items,o=t();return i=i||n.lastFilter,n._fire(c.EventType.FILTER),t.isFunction(i)?r.each(function(){var e=t(this);i.call(e[0],e,n)&&(o=o.add(e))}):(n.group=i,"all"===i?o=r:r.each(function(){var e=t(this),s=e.data("groups"),r=n.delimeter&&!t.isArray(s)?s.split(n.delimeter):s;t.inArray(i,r)>-1&&(o=o.add(e))})),n._toggleFilterClasses(r,o),r=null,s=null,o},_toggleFilterClasses:function(i,e){i.filter(e).each(function(){var i=t(this);i.hasClass("concealed")&&i.removeClass("concealed"),i.hasClass("filtered")||i.addClass("filtered")}),i.not(e).each(function(){var i=t(this);i.hasClass("concealed")||i.addClass("concealed"),i.hasClass("filtered")&&i.removeClass("filtered")})},_initItems:function(t){(t=t||this.$items).css(this.itemCss).data("position",{x:0,y:0})},_updateItemCount:function(){this.visibleItems=this.$items.filter(".filtered").length},_setTransition:function(t){t.style[n]=h+" "+this.speed+"ms "+this.easing},_setTransitions:function(t){var i=this;(t=t||i.$items).each(function(){i._setTransition(this)})},_setSequentialDelay:function(i){var e=this;e.supported&&t.each(i,function(i,s){s.style[r]="0ms,"+(i+1)*e.sequentialFadeDelay+"ms",t(s).on(a+"."+e.unique,function(i){var s=i.currentTarget;s===i.target&&(s.style[r]="0ms",t(s).off(a+"."+e.unique))})})},_getItems:function(){return this.$el.children(this.itemSelector)},_getPreciseDimension:function(i,e){var s;return s=window.getComputedStyle?window.getComputedStyle(i,null)[e]:t(i).css(e),parseFloat(s)},_getOuterWidth:function(i,e){var s=i.offsetWidth;if(e){var n=t(i).css(["marginLeft","marginRight"]);s+=(parseFloat(n.marginLeft)||0)+(parseFloat(n.marginRight)||0)}return s},_getOuterHeight:function(i,e){var s=i.offsetHeight;if(e){var n=t(i).css(["marginTop","marginBottom"]);
7s+=(parseFloat(n.marginTop)||0)+(parseFloat(n.marginBottom)||0)}return s},_getColumnSize:function(i,e){var s;return 0===(s=t.isFunction(this.columnWidth)?this.columnWidth(e):this.useSizer?this._getPreciseDimension(this.sizer,"width"):this.columnWidth?this.columnWidth:this.$items.length>0?this._getOuterWidth(this.$items[0],!0):e)&&(s=e),s+i},_getGutterSize:function(i){return t.isFunction(this.gutterWidth)?this.gutterWidth(i):this.useSizer?this._getPreciseDimension(this.sizer,"marginLeft"):this.gutterWidth},_setColumns:function(t){var i=t||this._getOuterWidth(this.$el[0]),e=this._getGutterSize(i),s=this._getColumnSize(e,i),n=(i+e)/s;Math.abs(Math.round(n)-n)<.03&&(n=Math.round(n)),this.cols=Math.max(Math.floor(n),1),this.containerWidth=i,this.colWidth=s},_setContainerSize:function(){this.$el.css("height",Math.max.apply(Math,this.colYs))},_fire:function(t,i){this.$el.trigger(t+".shuffle",i&&i.length?i:[this])},_layout:function(i,e,s){var n=this;e=e||n._filterEnd,t.each(i,function(i,r){var o=t(r),a=o.data(),l=a.position,h=n._getItemPosition(o);if(o.data("position",h),h.x!==l.x||h.y!==l.y||1!==a.scale){var u={$item:o,x:h.x,y:h.y,scale:1};s?(u.skipTransition=!0,u.opacity=0):(u.opacity=1,u.callback=e),n.styleQueue.push(u),n._layoutList.push(o[0])}}),n._processStyleQueue(),n._setContainerSize()},_resetCols:function(){var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0)},_reLayout:function(){this._resetCols(),this.lastSort?this.sort(this.lastSort,!0):this._layout(this.$items.filter(".filtered").get(),this._filterEnd)},_getItemPosition:function(t){var i=this._getOuterWidth(t[0],!0)/this.colWidth;Math.abs(Math.round(i)-i)<.03&&(i=Math.round(i));var e=Math.min(Math.ceil(i),this.cols);if(1===e)return this._placeItem(t,this.colYs);var s,n,r=this.cols+1-e,o=[];for(n=0;n<r;n++)s=this.colYs.slice(n,n+e),o[n]=Math.max.apply(Math,s);return this._placeItem(t,o)},_placeItem:function(t,i){for(var e=Math.min.apply(Math,i),s=0,n=0,r=i.length;n<r;n++)if(i[n]>=e-this.buffer&&i[n]<=e+this.buffer){s=n;break}var o={x:Math.round(this.colWidth*s+this.offset.left),y:Math.round(e+this.offset.top)},a=e+this._getOuterHeight(t[0],!0),l=this.cols+1-r;for(n=0;n<l;n++)this.colYs[s+n]=a;return o},_shrink:function(i,e){var s=this,n=i||s.$items.filter(".concealed");e=e||s._shrinkEnd,n.length&&(s._fire(c.EventType.SHRINK),n.each(function(){var i=t(this),n=i.data();if(!(.001===n.scale)){var r={$item:i,x:n.position.x,y:n.position.y,scale:.001,opacity:0,callback:e};s.styleQueue.push(r),s._shrinkList.push(i[0])}}))},_onResize:function(){this.enabled&&!this.destroyed&&(this._getOuterWidth(this.$el[0])!==this.containerWidth&&this.resized())},_getItemTransformString:function(t,i,e){return f?"translate3d("+t+"px, "+i+"px, 0) scale3d("+e+", "+e+", 1)":"translate("+t+"px, "+i+"px) scale("+e+", "+e+")"},_getStylesForTransition:function(t){var i={opacity:t.opacity};return this.supported?t.x!==e&&(i[l]=this._getItemTransformString(t.x,t.y,t.scale)):(i.left=t.x,i.top=t.y),1===t.opacity&&(i.visibility="visible"),i},_transition:function(t){t.$item.data("scale",t.scale);var i=this._getStylesForTransition(t);this._startItemAnimation(t.$item,i,t.callback)},_startItemAnimation:function(i,e,s){var n=1===e.opacity,r=t.proxy(this._handleItemAnimationEnd,this,s||t.noop,i[0],n);this.supported?(i.css(e),this.initialized?i.on(a+".shuffleitem",r):r()):("visibility"in e&&(i.css("visibility",e.visibility),delete e.visibility),i.stop(!0).animate(e,this.speed,"swing",r))},_handleItemAnimationEnd:function(i,e,s,n){if(n){if(n.target!==e)return;t(e).off(".shuffleitem")}this._layoutList.length>0&&t.inArray(e,this._layoutList)>-1?(this._fire(c.EventType.LAYOUT),i.call(this),this._layoutList.length=0):this._shrinkList.length>0&&t.inArray(e,this._shrinkList)>-1&&(i.call(this),this._shrinkList.length=0),s||(e.style.visibility="hidden")},_processStyleQueue:function(){var i=this;t.each(this.styleQueue,function(t,e){e.skipTransition?i._skipTransition(e.$item[0],function(){e.$item.css(i._getStylesForTransition(e))}):i._transition(e)}),i.styleQueue.length=0},_shrinkEnd:function(){this._fire(c.EventType.SHRUNK)},_filterEnd:function(){this._fire(c.EventType.FILTERED)},_sortEnd:function(){this._fire(c.EventType.SORTED)}
7,_skipTransition:function(i,e,s){var n=i.style[o];i.style[o]="0ms",t.isFunction(e)?e():i.style[e]=s;i.offsetWidth;i.style[o]=n},_addItems:function(t,i,s){this.supported||(i=!1),t.addClass("shuffle-item"),this._initItems(t),this._setTransitions(t),this.$items=this._getItems(),t.css("opacity",0);var n=this._filter(e,t),r=n.get();this._updateItemCount(),i?(this._layout(r,null,!0),s&&this._setSequentialDelay(n),this._revealAppended(n)):this._layout(r)},_revealAppended:function(i){var e=this;setTimeout(function(){i.each(function(i,s){e._transition({$item:t(s),opacity:1,scale:1})})},e.revealAppendedDelay)},shuffle:function(t,i){this.enabled&&(t||(t="all"),this._filter(t),this.lastFilter=t,this._updateItemCount(),this._shrink(),i&&(this.lastSort=i),this._reLayout())},sort:function(t,i){var e=this,s=e.$items.filter(".filtered").sorted(t);i||e._resetCols(),e._layout(s,function(){i&&e._filterEnd(),e._sortEnd()}),e.lastSort=t},resized:function(t){this.enabled&&(t||this._setColumns(),this._reLayout())},layout:function(){this.update(!0)},update:function(t){this.resized(t)},appended:function(t,i,e){i=!1!==i,e=!1!==e,this._addItems(t,i,e)},disable:function(){this.enabled=!1},enable:function(t){this.enabled=!0,!1!==t&&this.update()},remove:function(t){if(t.length&&t.jquery){return this._shrink(t,function(){var i=this;t.remove(),setTimeout(function(){i.$items=i._getItems(),i.layout(),i._updateItemCount(),i._fire(c.EventType.REMOVED,[t,i]),t=null},0)}),this._processStyleQueue(),this}},destroy:function(){this.$window.off("."+this.unique),this.$el.removeClass("shuffle").removeAttr("style").removeData("shuffle"),this.$items.removeAttr("style").removeClass("concealed filtered shuffle-item"),this.$window=null,this.$items=null,this.$el=null,this.$sizer=null,this.sizer=null,this.destroyed=!0}},c.options={group:"all",speed:250,easing:"ease-out",itemSelector:"",sizer:null,gutterWidth:0,columnWidth:0,delimeter:null,buffer:0,initialSort:null,throttle:function(i,e,s){var n,r,o,a=null,l=0;s=s||{};var h=function(){l=!1===s.leading?0:t.now(),a=null,o=i.apply(n,r),n=r=null};return function(){var u=t.now();l||!1!==s.leading||(l=u);var f=e-(u-l);return n=this,r=arguments,f<=0||f>e?(clearTimeout(a),a=null,l=u,o=i.apply(n,r),n=r=null):a||!1===s.trailing||(a=setTimeout(h,f)),o}},throttleTime:300,sequentialFadeDelay:150,supported:u},c.settings={$sizer:null,useSizer:!1,itemCss:{position:"absolute",top:0,left:0},offset:{top:0,left:0},revealAppendedDelay:300,enabled:!0,destroyed:!1,initialized:!1,styleQueue:[]},t.fn.shuffle=function(i){var e=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),n=s.data("shuffle");n||(n=new c(s,i),s.data("shuffle",n)),"string"==typeof i&&n[i]&&n[i].apply(n,e)})},t.fn.sorted=function(i){var s=t.extend({},t.fn.sorted.defaults,i),n=this.get(),r=!1;return n.length?s.randomize?t.fn.sorted.randomize(n):(s.by!==t.noop&&null!==s.by&&s.by!==e&&n.sort(function(i,n){if(r)return 0;var o=s.by(t(i)),a=s.by(t(n));return o===e&&a===e?(r=!0,0):"sortFirst"===o||"sortLast"===a?-1:"sortLast"===o||"sortFirst"===a?1:o<a?-1:o>a?1:0}),r?this.get():(s.reverse&&n.reverse(),n)):[]},t.fn.sorted.defaults={reverse:!1,by:null,randomize:!1},t.fn.sorted.randomize=function(t){var i,e,s=t.length;if(!s)return t;for(;--s;)i=t[e=Math.floor(Math.random()*(s+1))],t[e]=t[s],t[s]=i;return t},c});;
8window.Manipulator=function(e){"use strict";var t=window.console&&typeof window.console.log==="function";var n=function(t){var n=this;n.$el=e(t);n.init()};n.prototype.init=function(){var e=this;e.initShuffle();e.setupEvents()};n.prototype.initShuffle=function(){this.$el.shuffle({itemSelector:".shuffeldiv",speed:250,easing:"ease",columnWidth:function(t){return parseInt(e(".shuffeldiv").css("width"))},gutterWidth:function(t){return parseInt(e(".shuffeldiv").css("margin-left"))}});this.shuffle=this.$el.data("shuffle")};n.prototype.setupEvents=function(){var n=this;e("#sfsi_wDiv").on("click",e.proxy(n.onRandomize,n));n.$el.on("removed.shuffle",function(e,n,r){if(!t){return}})};n.prototype.onAddClick=function(){var t=this,n=5,r=document.createDocumentFragment(),i=t.$el[0],s=[],o,u=["w2","h2","w3"],a,f,l,c;for(f=0;f<n;f++){l=Math.random();a=document.createElement("div");a.className="shuffeldiv";if(l>.8){c=Math.floor(Math.random()*3);a.className=a.className+" "+u[c]}s.push(a);r.appendChild(a)}i.appendChild(r);o=e(s);t.shuffle.appended(o)};n.prototype.getRandomInt=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};n.prototype.onRemoveClick=function(){var t=this,n=t.shuffle.visibleItems,r=Math.min(3,n),i=[],s=0,o=e();if(!n){return}for(;s<r;s++){i.push(t.getRandomInt(0,n-1))}e.each(i,function(e,n){o=o.add(t.shuffle.$items.eq(n))});t.shuffle.remove(o)};n.prototype.onRandomize=function(){var e=this,t={randomize:true};e.shuffle.sort(t)};return n}(jQuery);
9jQuery(document).ready(function (e) {
10    jQuery("#sfsi_floater").attr("data-top", jQuery(document).height());
11});
12
13function showErrorSuc(s, i, e) {
14    if ("error" == s) var t = "errorMsg";
15    else var t = "sucMsg";
16    return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
17        SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
18            SFSI("." + t).slideUp("slow");
19        }, 5e3), !1;
20}
21
22function beForeLoad() {
23    SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none");
24}
25
26function sfsi_make_popBox() {
27    var s = 0;
28    SFSI(".sfsi_sample_icons >li").each(function () {
29        "none" != SFSI(this).css("display") && (s = 1);
30    }), 0 == s ? SFSI(".sfsi_Popinner").hide() : SFSI(".sfsi_Popinner").show(), "" != SFSI('input[name="sfsi_popup_text"]').val() ? (SFSI(".sfsi_Popinner >h2").html(SFSI('input[name="sfsi_popup_text"]').val()),
31        SFSI(".sfsi_Popinner >h2").show()) : SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({
32            "border-color": SFSI('input[name="sfsi_popup_border_color"]').val(),
33            "border-width": SFSI('input[name="sfsi_popup_border_thickness"]').val(),
34            "border-style": "solid"
35        }), SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()),
36        SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()),
37        SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())),
38        SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"),
39        "yes" == SFSI('input[name="sfsi_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_Popinner").css("box-shadow", "none");
40}
41
42function sfsi_stick_widget(s) {
43    0 == initTop.length && (SFSI(".sfsi_widget").each(function (s) {
44        initTop[s] = SFSI(this).position().top;
45    }));
46    var i = SFSI(window).scrollTop(),
47        e = [],
48        t = [];
49    SFSI(".sfsi_widget").each(function (s) {
50        e[s] = SFSI(this).position().top, t[s] = SFSI(this);
51    });
52    var n = !1;
53    for (var o in e) {
54        var a = parseInt(o) + 1;
55        e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
56            position: "fixed",
57            top: s
58        }), SFSI(t[a]).css({
59            position: "",
60            top: initTop[a]
61        }), n = !0) : SFSI(t[o]).css({
62            position: "",
63            top: initTop[o]
64        });
65    }
66    if (!n) {
67        var r = e.length - 1,
68            c = -1;
69        e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
70            position: "fixed",
71            top: s
72        }), c >= 0 && SFSI(t[c]).css({
73            position: "",
74            top: initTop[c]
75        })) : (SFSI(t[r]).css({
76            position: "",
77            top: initTop[r]
78        }), c >= 0 && e[c] < i);
79    }
80}
81
82function sfsi_float_widget(s) {
83
84    function i() {
85        r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop : a - window.pageYOffset,
86            Math.abs(r) > 0 ?
87                (window.removeEventListener("scroll", i),
88                    a -= r * o,
89                    SFSI("#sfsi_floater").css({
90                        top: Math.round((a + t).toString()) + "px",
91                        transition: "all 0.6s ease 0s"
92                    }),
93                    setTimeout(i, n)) :
94                window.addEventListener("scroll", i, !1);
95    }
96
97    function e() {
98        var documentheight = SFSI("#sfsi_floater").attr("data-top");
99        var fltrhght = parseInt(SFSI("#sfsi_floater").height());
100        var fltrtp = parseInt(SFSI("#sfsi_floater").css("top"));
101
102        if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) {
103            window.addEventListener("scroll", i, !1);
104        } else {
105            window.removeEventListener("scroll", i);
106            SFSI("#sfsi_floater").css("top", documentheight + "px");
107        }
108    }
109    if ("center" == s) {
110        var t = (SFSI(window).height() - SFSI("#sfsi_floater").height()) / 2;
111    } else if ("bottom" == s) {
112        var t = window.innerHeight - (SFSI("#sfsi_floater").height() + parseInt(SFSI('#sfsi_floater').css('margin-bottom')));
113    } else {
114        var t = parseInt(s);
115    }
116
117    var n = 50,
118        o = .1,
119        a = 0,
120        r = 0;
121    SFSI("#sfsi_floater");
122
123    var prev_onscroll = window.onscroll;
124
125    window.onscroll = function () {
126
127        if ('function' === typeof prev_onload) {
128            prev_onload(), e();
129        } else {
130            e();
131        }
132    }
133}
134
135function sfsi_shuffle() {
136    var $ = window.jQuery;
137
138    return SFSI('.sfsi_wDiv').each(function (index, container) {
139        var s = [];
140        s = SFSI(container).find(".sfsi_wicons ");
141        s = Shuffle(s);
142        SFSI(container).html("");
143        for (var i = 0; i < s.length; i++) {
144            SFSI(s[i]).css('transform', 'none');
145            SFSI(s[i]).css('position', 'relative');
146            SFSI(container).append(s[i]);
147        }
148    })
149
150}
151
152function Shuffle(s) {
153    for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e);
154    return s
155}
156
157function sfsi_setCookie(s, i, e) {
158    var t = new Date();
159    t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
160    var n = "expires=" + t.toGMTString();
161    document.cookie = s + "=" + i + "; " + n;
162}
163
164function sfsfi_getCookie(s) {
165    for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
166        var n = e[t].trim();
167        if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
168    }
169    return "";
170}
171
172function sfsi_hideFooter() { }
173
174window.onerror = function () {
175    jQuery("#sfpageLoad").fadeOut(2e3);
176}, SFSI = jQuery, SFSI(window).on('load', function () {
177    SFSI("#sfpageLoad").fadeOut(2e3);
178
179    if (jQuery('#sfsi_tifm_scroll_value').val()) {
180        jQuery('.sfsi_tifm_module_menu_block').click();
181        setTimeout(function () {
182            document.querySelector('.sfsi_tifm_tab_module_block').scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" });
183        }, 300);
184    }
185});
186
187var global_error = 0;
188
189SFSI(document).ready(function (s) {
190    //changes done {Monad}
191    //putting it before to make sure it registers before the mobile click function
192    SFSI(document).on('click', '.inerCnt a[href=""]', function (event) {
193        //check if not mobile
194        if (!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {
195            event.preventDefault();
196        }
197    });
198
199    SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),
200        SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'),
201        SFSI(document).click(function (s) {
202
203            var i = SFSI(".sfsi_FrntInner"),
204                e = SFSI(".sfsi_wDiv"),
205                t = SFSI("#at15s");
206            i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
207        }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function () {
208            SFSI(this).css("opacity", "0.9");
209        }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () {
210            SFSI(this).css("opacity", "1");
211        }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
212            SFSI(this).css("opacity", "0.9");
213        }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
214            SFSI(this).css("opacity", "1");
215        }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
216            SFSI(this).css("opacity", "0.9");
217        }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
218            SFSI(this).css("opacity", "1");
219            /*{Monad}*/
220        }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
221            SFSI(this).css("opacity", "0.9");
222        }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
223            SFSI(this).css("opacity", "1");
224        }), SFSI(".pop-up").on("click", function () {
225            ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
226                SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
227                SFSI("." + SFSI(this).attr("data-id")).show("slow");
228        }), /*SFSI("#close_popup").live("click", function() {*/ SFSI(document).on("click", '#close_popup', function () {
229            SFSI(".read-overlay").hide("slow");
230        });
231    var e = 0;
232    sfsi_make_popBox(), SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
233        SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
234        SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
235        /*SFSI(".radio").live("click", function() {*/
236
237        SFSI(document).on("click", '.radio', function () {
238            var s = SFSI(this).parent().find("input:radio:first");
239            "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
240        }),
241
242        /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI(document).on("click", 'img.sfsi_wicon', function (s) {
243            /*console.log('document mouse click', s, s.target);*/
244
245            if (SFSI(s.target).parent().attr('href') == "") {
246                s.preventDefault();
247            }
248            if (!SFSI(this).hasClass('sfsi_click_wicon')) {
249                s.stopPropagation && s.stopPropagation();
250            }
251            var i = SFSI("#sfsi_floater_sec").val();
252
253            SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
254                SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
255                    SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
256                SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
257                    "z-index": "999"
258                }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
259                    opacity: 1,
260                    "z-index": 10
261                }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
262                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
263                        opacity: 1,
264                        "z-index": 10
265                    }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
266                        SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
267                            opacity: 1,
268                            "z-index": 10
269                        }
269)), ("top-left" == i || "top-right" == i || "center-top" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
270                            SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
271                            SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
272                                opacity: 1,
273                                "z-index": 10,
274                                "bottom": "auto"
275                            }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
276                                SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
277                                SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
278                                    opacity: 1,
279                                    "z-index": 1e3
280                                }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
281        })
282            : SFSI(document).on("mouseenter", "img.sfsi_wicon", function () {
283                /*console.log('img mouseenter');*/
284                var s = SFSI("#sfsi_floater_sec").val();
285                //SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide();
286                SFSI(this).parent().parent().parent().parent().siblings("li").length > 0
287                    && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
288                        SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide());
289                // SFSI(this).parent().parent().parent().css("z-index", "1000000");
290                // SFSI(this).parent().parent().css({ "z-index": "999" });
291                SFSI(this).parent().css({ "opacity": "1" });
292                SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
293                    opacity: 1,
294                    "z-index": 1e8
295                }), SFSI(this).parent().css("opacity", "1"));
296                SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
297                    SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
298                        opacity: 1,
299                        "z-index": 1e8
300                    }), SFSI(this).parent().css("opacity", "1"));
301                SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
302                    SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
303                        opacity: 1,
304                        "z-index": 1e8
305                    }));
306                ("top-left" == s || "top-right" == s || "center-top" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0
307                    && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id")
308                    ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
309                        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
310                        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
311                            opacity: 1,
312                            "z-index": 1e8,
313                            "bottom": "auto"
314                        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show())
315                    : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
316                        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
317                        SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
318                            opacity: 1,
319                            "z-index": 1e8
320                        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
321            });
322    SFSI(document).on("mouseleave", "div.sfsi_wicons", function () {
323        SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
324            SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"),
325            SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale").css("opacity", "0.6"),
326            SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("display", "none"),
327            SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("opacity", "0");
328    });
329
330    SFSI(document).on("mouseenter", "div.sfsi_tool_tip_2", function () {
331        SFSI(this).find("div.sfsi_tool_tip_2").css({ "z-index": 1e8, "opacity": 1 });
332    });
333    SFSI("body").on("click", function (e) {
334        var target = SFSI(e.target);
335        if (!target.is(".sfsi_wicon")) {
336            SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
337        }
338
339    });
340    SFSI(".adminTooltip >a").on("hover", function () {
341        SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
342            SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
343    });
344    SFSI(".adminTooltip").on("mouseleave", function () {
345        "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
346            SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
347        }) : (SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
348            SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
349    });
350    SFSI(".expand-area").on("click", function () {
351        "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
352            SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"),
353                SFSI(this).text("Read more"));
354    });
355    SFSI(".sfsi_wDiv").length > 0 && setTimeout(function () {
356        var s = parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px";
357        SFSI(".sfsi_holders").each(function () {
358            SFSI(this).css("height", s);
359            SFSI(".sfsi_widget");
360        });
361    }, 200);
362
363    /* Admin forum notification */
364    SFSI('.usm-widget__footer-text-link').on('click', function () {
365        SFSI(this).parents('.usm-widget').toggle('usm-widget--open');
366
367        SFSI.ajax({
368            type: "post",
369            dataType: "json",
370            url: sfsi_icon_ajax_object.ajax_url,
371            data: {
372                nonce: sfsi_icon_ajax_object.nonce,
373                action: "sfsi_hide_admin_forum_notification"
374            },
375            success: function () {
376                SFSI('.usm-widget').remove();
377            }
378        });
379    });
380
381    /* Hide Admin forum notification popup */
382    SFSI('.usm-widget__toggle-btn').on('click', function () {
383        var currentThis = SFSI(this);
384        currentThis.parents('.usm-widget').toggleClass('usm-widget--open');
385        var toggleStatus = '';
386        if (currentThis.parents('.usm-widget').hasClass('usm-widget--open')) {
387            toggleStatus = 'hide';
388        } else {
389            toggleStatus = 'show';
390        }
391        SFSI.ajax({
392            type: "post",
393            dataType: "json",
394            url: sfsi_icon_ajax_object.ajax_url,
395            data: { action: "sfsi_default_hide_admin_notification", status: toggleStatus, nonce: sfsi_icon_ajax_object.unonce },
396            success: function () {
397                currentThis.addClass('sfsi-first-click-enabled');
398            }
399        });
400    });
401});
402
403//hiding popup on close button
404function sfsihidemepopup() {
405    SFSI(".sfsi_FrntInner_chg").fadeOut();
406}
407var initTop = new Array();
408
409function close_overlay(selector) {
410    if (typeof selector === "undefined") {
411        selector = '.sfsi_overlay';
412    }
413    jQuery(selector).removeClass('show').addClass('hide').hide();
414}
415
416function sfsi_wechat_share(url) {
417    if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
418        jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'><div class='sfsi_inner_display'><a class='close_btn' href='' onclick='event.preventDefault();close_overlay(\".sfsi_wechat_follow_overlay\")' >×</a><div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;text-align:center'><div class='sfsi_wechat_qr_display' style='display:inline-block'></div></div><div style='width:80%;margin:10px auto 0 auto;text-align:center;font-weight:900;font-size:25px;'>\"Scan QR Code\" in WeChat and press ··· to share!</div></div></div>");
419        new QRCode(jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display')[0], encodeURI(decodeURI(window.location.href)))
420        jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display img').attr('nopin', 'nopin')
421    } else {
422        jQuery('.sfsi_wechat_follow_overlay').removeClass('hide').addClass('show').show();
423    }
424}
425
426function sfsi_mobile_wechat_share(url) {
427    if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
428        jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>
428<div class='sfsi_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')\" >×</a><div style='width:95%; min-height:80%;background-color:#fff;margin:0 auto;margin:30% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;'><input type='text' value='' style='width:100%;padding:7px 0;text-align:center' /></div><div style='width:80%;margin:10px auto 0 auto'><div  class='sfsi_upload_butt_container' ><button onclick='sfsi_copy_text_parent_input(event)' class='upload_butt' >Copy</button></div><div class='sfsi_upload_butt_container' ><a href='weixin://' class='upload_butt'>Open WeChat</a></div></div></div></div>");
429        // Set the URL through the DOM, not the HTML string: a quote in the query string would otherwise close the value attribute and inject attributes.
430        jQuery('.sfsi_wechat_follow_overlay input').val(encodeURI(decodeURI(window.location.href)));
431    } else {
432        jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show');
433    }
434}
435
436function sfsi_copy_text_parent_input(event) {
437    var target = jQuery(event.target);
438    /*console.log(target);*/
439    input_target = target.parent().parent().parent().find('input');
440    input_target.select();
441    document.execCommand('copy');
442}
443
444function sfsi_responsive_toggle() {
445    let lastScrollTop = 0; // Track the last scroll position
446
447    jQuery(window).on('scroll', function () {
448        let scrollTop = jQuery(this).scrollTop();
449        let scrollDirection = scrollTop > lastScrollTop ? 'down' : 'up'; // Determine scroll direction
450        lastScrollTop = scrollTop;
451
452        // Only execute if popup is not closed
453        if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
454            if (scrollDirection === 'down' && jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
455                showPopup();
456            }
457        } else {
458            if (scrollDirection === 'down' && jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 3) {
459                showPopup();
460            }
461        }
462    });
463
464    // Function to show the popup
465    function showPopup() {
466        jQuery('.sfsi_outr_div').css({
467            'z-index': '9996',
468            opacity: 1,
469            top: 'calc((100vh - ' + jQuery('.sfsi_outr_div').outerHeight() + 'px) / 2)',
470            position: 'fixed',
471        });
472        jQuery('.sfsi_outr_div').fadeIn(200);
473        jQuery('.sfsi_FrntInner_chg').fadeIn(200);
474    }
475}
476
477function createCookie(name, value, expires, path, domain) {
478    var cookie = name + "=" + escape(value) + ";";
479
480    if (expires) {
481        // If it's a date
482        if (expires instanceof Date) {
483            // If it isn't a valid date
484            if (isNaN(expires.getTime()))
485                expires = new Date();
486        }
487        else
488            expires = new Date(new Date().getTime() + parseInt(expires) * 1000 * 60 * 60 * 24);
489
490        cookie += "expires=" + expires.toGMTString() + ";";
491    }
492
493    if (path)
494        cookie += "path=" + path + ";";
495    if (domain)
496        cookie += "domain=" + domain + ";";
497
498    document.cookie = cookie;
499}
500
501function sfsi_time_pop_up(time_popUp) {
502    jQuery(document).ready(function ($) {
503        try {
504            // Check if cookie exists
505            if (document.cookie.indexOf('sfsi_popup') !== -1) {
506                return;
507            }
508
509            // If it doesn't exist, create it
510            createCookie('sfsi_popup', new Date.getTime(), 30, '/');
511        } catch (Exception) {
512            // Do nothing
513        }
514
515        setTimeout(function () {
516            jQuery('.sfsi_outr_div').css({
517                'z-index': '1000000',
518                opacity: 1
519            });
520            jQuery('.sfsi_outr_div').fadeIn(200);
521            jQuery('.sfsi_FrntInner_chg').fadeIn(200);
522        }, time_popUp);
523    });
524}
525
526function sfsi_social_pop_up(time_popUp) {
527    jQuery(document).ready(function ($) {
528        //jQuery('.sfsi_outr_div').fadeIn();
529        try {
530            // Check if cookie exists
531            if (document.cookie.indexOf('sfsi_socialPopUp') !== -1) {
532                return;
533            }
534
535            // If it doesn't sfsi_socialPopUp, create it
536            createCookie('sfsi_popup', new Date.getTime(), 30, '/');
537        } catch (Exception) {
538            // Do nothing
539        }
540
541        setTimeout(function () {
542            jQuery('.sfsi_outr_div').css({
543                'z-index': '1000000',
544                opacity: 1
545            });
546            jQuery('.sfsi_outr_div').fadeIn();
547        }, time_popUp);
548    });
549}
550
551function sfsi_plugin_version(pluginVersion) {
552    jQuery(document).ready(function (e) {
553        jQuery("body").addClass("sfsi_" + pluginVersion)
554    });
555}
556
557function sfsi_widget_set() {
558    jQuery(".sfsi_widget").each(function (index) {
559        if (jQuery(this).attr("data-position") == "widget") {
560            var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height();
561            var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height();
562            var totl_hght = parseInt(title_hght) + parseInt(wdgt_hght);
563            jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght + "px");
564            /*console.log('widget');*/
565        }
566    });
567}
568
569SFSI(window).on('load', function () {
570    SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function () {
571        sfsi_pinterest_modal_images(e);
572    });
573});
574
575function sfsi_pinterest_modal_images(event, url, title) {
576    /*console.log(event);*/
577    event && event.preventDefault();
578    var imgSrc = [];
579    var page_title;
580
581    page_title = SFSI('meta[property="og:title"]').attr('content');
582    if (undefined == page_title) {
583        page_title = SFSI('head title').text();
584    }
585    if (undefined == title) {
586        title = page_title;
587    }
588    if (undefined == url) {
589        url = window.location.href;
590        // url = encodeURIComponent(window.location.href);
591    }
592    SFSI('body img').each(function (index) {
593        var src = SFSI(this).attr('src') || "";
594        var height = SFSI(this).height();
595        var width = SFSI(this).width();
596        var image_title = SFSI(this).attr('title') || "";
597        var alt = SFSI(this).attr('alt') || "";
598        var no_pin = SFSI(this).attr('data-pin-nopin') || "";
599        var no_pin_old = SFSI(this).attr('nopin') || "";
600
601        if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") {
602            imgSrc.push({
603                src: src,
604                title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt)
605            });
606        }
607    });
608
609    sfsi_pinterest_modal();
610    if (imgSrc.length == 0) {
611        var meta_img = SFSI('meta[property="og:image"]').attr('content');
612        if (undefined == meta_img) {
613            meta_img = "";
614        }
615        SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + encodeURIComponent(url) + '&media=&description=' + encodeURIComponent(page_title).replace('+', '%20').replace("#", "%23") + '"><div style="width:140px;height:90px;display:inline-block;" ></div><span class="sfsi_pinterest_overlay"><img data-pin-nopin="true" height="30" width="30" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>')
616    } else {
617
618        SFSI.each(imgSrc, function (index, val) {
619            SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + encodeURIComponent(url) + '&media=' + val.src + '&description=' + encodeURIComponent(val.title ? val.title : page_title).replace('+', '%20').replace("#", "%23") + '"><img style="display:inline"  data-pin-nopin="true" src="' + val.src + '"><span class="sfsi_pinterest_overlay" style="width:140px;left:unset;"><img data-pin-nopin="true" height="30" width="30" style="display:inline" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>');
620        });
621    }
622    event.preventDefault();
623
624}
625
626function sfsi_pinterest_modal(imgs) {
627    // if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) {
628    jQuery('body').append(
629        "<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>" +
630        "<div class='sfsi_inner_display'>" +
631        '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')" >×</a>' +
632        "<div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;border-radius: 20px;'>" +
633        "<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" +
634        "<div class='sfsi_flex_container'>" +
635
636        "</div>" +
637        "</div>" +
638        "</div>" +
639        "</div>"
640    );
641}
642
643// should execute at last so that every function is acceptable in body.
644var sfsi_functions_loaded = new CustomEvent('sfsi_functions_loaded', {
645    detail: {
646        "abc": "def"
647    }
648});
649window.dispatchEvent(sfsi_functions_loaded);
650
651function showSuccessAlert() {
652    var alert = document.getElementById("success-alert");
653    alert.style.display = "block";
654    alert.style.animation = "intro-animation 1s";
655
656    setTimeout(function() {
657        alert.style.animation = "fade-out 2s";
658        setTimeout(function() {
659            alert.style.display = "none";
660            alert.style.animation = "none"; // Reset the animation
661        }, 2000); // Adjust the timing to match the fade-out animation duration
662    }, 3000); // Show the alert for 3 seconds (you can adjust the timing)
663}
664
665/* Copy link */
666function sfsi_copyLink(str) {
667
668    try {
669
670        const el = document.createElement('textarea');
671        el.value = str;
672        el.setAttribute('readonly', '');
673        el.style.position = 'absolute';
674        el.style.left = '-9999px';
675        document.body.appendChild(el);
676        el.select();
677        document.execCommand('copy');
678        document.body.removeChild(el);
679
680        // Confirmation of copy success e.g. alert or notification
681        showSuccessAlert();
682
683        return true;
684
685    } catch (e) {
686        console.log(e);
687
688        // Rejection notice of copy failure e.g. alert or notification
689
690        return false;
691
692    }
693
694}
695
696document.querySelectorAll('a.sfsi_copylink').forEach(function (anchor) {
697    anchor.addEventListener('click', function (e) {
698        e.preventDefault();
699        sfsi_copyLink(window.location.href);
700    });
701});
702;

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.