GravTheme/js/x5engine.js

2 lines
6.6 KiB
JavaScript
Raw Normal View History

2023-09-02 11:11:48 +00:00
/*minified*/
var _jq=$.noConflict(!0);try{window.$=window.jQuery=_jq}catch(e){}var x5engine={utils:{isOnline:function(){return"http"==window.top.location.href.substring(0,4)},currentPagePath:window.location.pathname.substring(1)},imShowBox:function(){return!1},imTip:{Show:function(e,t){return!1}}},swfobject=null;function checkBrowserCompatibility(n,r,a,s){var c,l,d=document.createElement("div"),u=(d.style.display="none",d.className="media-test",document.getElementsByTagName("BODY")[0]),p=(u.appendChild(d),!!getCookie("browser-check-proceed")),m=window.getComputedStyle?window.getComputedStyle(d,null):d.currentStyle;setTimeout(function(){var e,t,o,i;l="absolute"==m.position,c="justify"==m.textAlign||!!window.MSInputMethodContext&&!!document.documentMode,(l=l&&c)&&isSupportedBrowser()||p||(e=l?r:n,t=(t=a).replace(/\[1\]/g,'<a href="'+s+'" target="blank">').replace(/\[2\]/g,'<a href="#" class="proceed-button">').replace(/\[\/[0-9]+\]/g,"</a>"),i=l?"severity-warning":"severity-error",(o=document.createElement("div")).className="browser-comp-message "+i,o.innerHTML="<div><p>"+e+"</p><p>"+t+"</p></div>",u.appendChild(o),(i=document.querySelectorAll(".proceed-button")[0]).addEventListener?i.addEventListener("click",function(){setCookie("browser-check-proceed","true",365),o.parentNode.removeChild(o)}):i.attachEvent("onclick",function(){setCookie("browser-check-proceed","true",365),o.parentNode.removeChild(o)})),d.parentNode.removeChild(d)},200)}function isSupportedBrowser(){return-1===navigator.userAgent.indexOf("MSIE")&&-1===navigator.userAgent.indexOf("Trident")}function getCookie(e){for(var t=e+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var n=o[i];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return""}function setCookie(e,t,o){var i=new Date,o=(i.setTime(i.getTime()+24*o*60*60*1e3),"expires="+i.toUTCString());document.cookie=e+"="+t+"; "+o}function proceedClicked(){}!function(n,r){"use strict";n(document).ready(function(){if("undefined"==typeof icm_lock_deferred)for(var e=["res/modernizr-custom.js","res/x5engine.deferrable.js","res/l10n.js","res/x5cartengine.js","res/x5settings.js"],t=n("[data-files-version]").attr("data-files-version"),o=0;o<e.length;o++){var i=document.createElement("script");i.src=(0!==e[o].indexOf("http")?r.settings.currentPath:"")+e[o]+"?"+t,document.body.appendChild(i)}else r.boot.run();navigator.userAgent.match(/firefox/gi)&&n("head").append('<style type="text/css">button::-moz-focus-inner,input[type="button"]::-moz-focus-inner,input[type="submit"]::-moz-focus-inner,input[type="reset"]::-moz-focus-inner { padding: 0 !important; border: 0 none !important; }</style>')})}(_jq,x5engine),function(i,n){"use strict";var r,a,s,c,l,d;i.extend(x5engine,{boot:(r={},a=[],l=c=0,d=!(s=[]),{run:function(){function e(t,e){for(var o=0;o<t.length;o++)try{i.isFunction(t[o])?t[o]():i.globalEval(t[o]+";")}catch(e){"console"in n&&n.console.log("Error while executing bootup queue:\n\n"+t[o]+'\nThrown exception: "'+e.message+'"')}}e(a);for(var t=c;t<=l;t++){var o=r[t];o&&e(o)}r={},e(s),d=!0},push:function(e,t,o){t=t||!1,null==o&&(o=5),isNaN(o)?"first"==o?(!t&&-1==i.inArray(e,a)||t)&&a.push(e):"last"==o&&(!t&&-1==i.inArray(e,s)||t)&&s.push(e):(l=Math.max(o,l),c=Math.min(o,c),r[o]||(r[o]=[]),(!t&&-1==i.inArray(e,r[o])||t)&&r[o].push(e)),d&&this.run()}})})}(_jq,window),function(){"use strict";_jq.extend(x5engine,{cart:{loaded:!1,manager:null,ui:{showProductIcons:!0,iconSize:48,steps:{active:!1,font:{"font-family":"tahoma","font-size":"8.0pt","font-weight":"normal","font-style":"normal","text-decoration":"none",color:"black",activeColor:"black"},image:{url:"",width:0,height:0,steps:[]}},show:function(){return!1},addToCart:function(){return!1},updateWidget:function(){return!1}},search:{},productDetails:{}}})}(),function(){"use strict";var o,i;_jq.extend(x5engine,{l10n:(i=!(o=[]),{add:function(e,t){i=!0,o[e]=t},get:function(e,t){return e&&o[e]?o[e]:t||""},loaded:function(){return i}})})}(),function(){"use strict";_jq.extend(x5engine,{settings:{siteId:"",version:"0",islocal:!1,loaded:!1