文件操作 - x5engine.js
返回文件管理
返回主菜单
删除本文件
文件: /home/tecnoht/public_html/sbs-italy--it/res/x5engine.js
编辑文件内容
function checkBrowserCompatibility(e,t,n,r){var i=document.createElement("div");i.style.display="none",i.className="media-test";var s=document.getElementsByTagName("BODY")[0];s.appendChild(i);var o=!0,u=!0,a=!0,f=!!getCookie("browser-check-proceed"),l;window.getComputedStyle?l=window.getComputedStyle(i,null):l=i.currentStyle,setTimeout(function(){o=l.position=="absolute",u=l.textAlign=="justify"||!!window.MSInputMethodContext&&!!document.documentMode,a=o&&u;if((!a||!isSupportedBrowser())&&!f){var c=a?t:e,h=n,p=r;h=h.replace(/\[1\]/g,'<a href="'+p+'" target="blank">').replace(/\[2\]/g,'<a href="#" class="proceed-button">').replace(/\[\/[0-9]+\]/g,"</a>");var v=a?"severity-warning":"severity-error",m=document.createElement("div");m.className="browser-comp-message "+v,m.innerHTML="<div><p>"+c+"</p><p>"+h+"</p></div>",s.appendChild(m);var g=document.querySelectorAll(".proceed-button")[0];g.addEventListener?g.addEventListener("click",function(){setCookie("browser-check-proceed","true",365),m.parentNode.removeChild(m)}):g.attachEvent("onclick",function(){setCookie("browser-check-proceed","true",365),m.parentNode.removeChild(m)})}i.parentNode.removeChild(i)},200)}function isSupportedBrowser(){return navigator.userAgent.indexOf("MSIE")===-1&&navigator.userAgent.indexOf("Trident")===-1}function getCookie(e){var t=e+"=",n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)==" ")i=i.substring(1);if(i.indexOf(t)==0)return i.substring(t.length,i.length)}return""}function setCookie(e,t,n){var r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+t+"; "+i}function proceedClicked(){}var _jq=$.noConflict(!0);try{window.$=window.jQuery=_jq}catch(Excp){}var x5engine={utils:{isOnline:function(){return window.top.location.href.substring(0,4)=="http"?!0:!1},currentPagePath:window.location.pathname.substring(1)},imShowBox:function(){return!1},imTip:{Show:function(e,t){return!1}}},swfobject=null;(function(e,t){"use strict";var n=function(){var n;n=["res/modernizr-custom.js","res/x5engine.deferrable.js","res/l10n.js","res/x5cartengine.js","res/x5settings.js"];var r=e("[data-files-version]").attr("data-files-version");for(var i=0;i<n.length;i++){var s=document.createElement("script");s.src=(n[i].indexOf("http")!==0?t.settings.currentPath:"")+n[i]+"?"+r,document.body.appendChild(s)}};e(document).ready(function(){typeof icm_lock_deferred=="undefined"?n():t.boot.run(),navigator.userAgent.match(/firefox/gi)&&e("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(e,t,n){"use strict";e.extend(t,{boot:function(){var t={},r=[],i=[],s=0,o=0,u=!1;return{run:function(){var a=function(t,r){for(var i=0;i<t.length;i++)try{e.isFunction(t[i])?t[i]():e.globalEval(t[i]+";")}catch(s){"console"in n&&n.console.log("Error while executing bootup queue:\n\n"+t[i]+'\nThrown exception: "'+s.message+'"')}t=[]};a(r);for(var f=s;f<=o;f++){var l=t[f];l&&a(l)}t={},a(i),u=!0},push:function(n,a,f){a=a||!1;if(f===null||f===undefined)f=5;isNaN(f)?f=="first"?(!a&&e.inArray(n,r)==-1||a)&&r.push(n):f=="last"&&(!a&&e.inArray(n,i)==-1||a)&&i.push(n):(o=Math.max(f,o),s=Math.min(f,s),t[f]||(t[f]=[]),(!a&&e.inArray(n,t[f])==-1||a)&&t[f].push(n)),u&&this.run()}}}()})}(_jq,x5engine,window),function(e,t){"use strict";e.extend(t,{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:{}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{l10n:function(){var e=[],t=!1;return{add:function(n,r){t=!0,e[n]=r},get:function(t,n){return t&&e[t]?e[t]:n?n:""},loaded:function(){return t}}}()})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{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",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><</span>",buttonRight:"<span>></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",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:"<!--html_content_placeholder-->",cssPlaceholder:"<!--css_class_placeholder-->",baseUrlPlaceholder:"<!--base_url_placeholder-->"},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>'}})}(_jq,x5engine);
修改文件时间
将文件时间修改为当前时间的前一年
删除文件