GravTheme/js/x5engine.js

2 lines
6.6 KiB
JavaScript

/*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,currentPath:"",autoHeight:{enabled:!1},imGrid:{enabled:!1},imSound:{idName:"imJSSound"},imCaptcha:{offlineCodes:[]},breakPoints:[],zIndex:{sequenceNumbers:10,menuCell:102,templateObjectWrapper:1001,pageToTop:5e3,datePicker:10201,stickyBar:10301,tip:10321,hamburgerMenu:10402,splashBox:10501,cover:10601,showBox:10701,popup:10801,advertising:10501},general:{preview:!0},fallback:{json:!0,localStorage:!0,onhashchange:!0,animFrame:!0},imShowBox:{background:"black",backgroundBlur:!1,opacity:.6,borderWidth:{top:1,right:1,bottom:1,left:1},borderRadius:10,swipeImg:"res/imSwipe.png",helperBg:"black",borderColor:"#000000",closeImg:"res/imClose.png",textColor:"black",textAlignment:"center",fontFamily:"Arial",fontSyle:"normal",fontWeight:"normal",fontSize:"8pt",boxColor:"white",effect:"fade",transitionEffect:"fade",shadow:"",innerBorder:12,allowFrameTransparency:!1,autoplay:!1,autoplayTime:2e3,buttons:!0,buttonLeft:"<span>&lt;</span>",buttonRight:"<span>&gt;</span>",buttonClose:"<span>X</span>",buttonEnterFS:"<span>FullScreen</span>",buttonExitFS:"<span>Quit FullScreen</span>",buttonZoomIn:"<span>+</span>",buttonZoomOut:"<span>-</span>",buttonZoomRestore:"<span>[]</span>",windowPadding:25,showProgress:!0,fullScreenEnabled:!0,zoomEnabled:!0,showThumbs:!1,thumbSize:80,boxClass:""},imPopUp:{background:"black",backgroundBlur:!1,opacity:.6,borderRadius:10,textColor:"black",boxColor:"white",effect:"fade",shadow:""},imTip:{classes:"",arrow:!0,position:"right",effect:"fade",showTail:!0,persistant:!1,unique:!0},imPageToTop:{speed:500,appearAt:200,imageFile:"style/page-to-top.png"},imAdv:{show:!0},imAdvBox:{position:"top",sound:"",cookie:!1,image:"",link:""},imSplashBox:{position:"center",sound:"",effect:"none",shadow:!0,margin:0,width:100,height:100,cookie:!1,image:"",link:""},imCover:{cookie:!1,scrollImage:"",link:""},imBlog:{posts:[],posts_month:[],posts_cat:[],posts_ids:[],comments:!1,captcha:!1},links:{htmlPlaceholder:"\x3c!--html_content_placeholder--\x3e",cssPlaceholder:"\x3c!--css_class_placeholder--\x3e",baseUrlPlaceholder:"\x3c!--base_url_placeholder--\x3e"},imLoadingAnimation:'<div class="imLoadAnim"><div class="imLoadCircle1 imLoadCircle"></div><div class="imLoadCircle2 imLoadCircle"></div><div class="imLoadCircle3 imLoadCircle"></div><div class="imLoadCircle4 imLoadCircle"></div><div class="imLoadCircle5 imLoadCircle"></div><div class="imLoadCircle6 imLoadCircle"></div><div class="imLoadCircle7 imLoadCircle"></div><div class="imLoadCircle8 imLoadCircle"></div><div class="imLoadCircle9 imLoadCircle"></div><div class="imLoadCircle10 imLoadCircle"></div><div class="imLoadCircle11 imLoadCircle"></div><div class="imLoadCircle12 imLoadCircle"></div></div>'}})}();