const currentJsPath = document.currentScript.src.replace(/\/org\/first\.js([\s\S]*)$/, '/'); // svg !function(o,l){var r,a,s="createElement",g="getElementsByTagName",b="length",E="style",d="title",y="undefined",k="setAttribute",w="getAttribute",x=null,A="__svgInject",C="--inject-",S=new RegExp(C+"\\d+","g"),I="LOAD_FAIL",t="SVG_NOT_SUPPORTED",L="SVG_INVALID",v=["src","alt","onload","onerror"],j=l[s]("a"),G=typeof SVGRect!=y,f={useCache:!0,copyAttributes:!0,makeIdsUnique:!0},N={clipPath:["clip-path"],"color-profile":x,cursor:x,filter:x,linearGradient:["fill","stroke"],marker:["marker", "marker-end","marker-mid","marker-start"],mask:x,pattern:["fill","stroke"],radialGradient:["fill","stroke"]},u=1,c=2,O=1;function T(e){return(r=r||new XMLSerializer).serializeToString(e)}function P(e,r){var t,n,i,o,a=C+O++,f=/url\("?#([a-zA-Z][\w:.-]*)"?\)/g,u=e.querySelectorAll("[id]"),c=r?[]:x,l={},s=[],d=!1;if(u[b]){for(i=0;i `0${n}`.slice(-2); let month = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] let mon = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'] let li = { Y: this.getFullYear().toString(), m: a(this.getMonth() + 1), d: a(this.getDate()), H: a(this.getHours()), i: a(this.getMinutes()), s: a(this.getSeconds()), F: month[this.getMonth()], M: mon[this.getMonth()] } for (let i in li) str = str.replace(i, li[i]) return str; }; // wow const styleElement = document.createElement('style'); styleElement.textContent = ` [scalc],.wow,[wow],[vue],[number-roll]:not(.isstart){visibility:hidden}img{min-width:1px;min-height:1px;}[vue].visible{visibility: visible;} .container[loading]:after{background:url(${currentJsPath}images/l.gif) no-repeat center;}[masonry]:not(.isok):before{background:url(${currentJsPath}images/l.gif) no-repeat 50% 160px;position:absolute;left:0;right:0;top:0;bottom:10%;content:""}[jxloading],[map]{background:url(${currentJsPath}images/l.gif) no-repeat center;font-size:0;}[jxloading].isok{background-image:none;} `; // 将 style 元素插入到 head 中 document.head.appendChild(styleElement); // loading WebsiteStartLoading = function (v) { var v = { height: 80, width: 80, len:12, w: 12, h: 12, s: 1, color: '#333', ...v }; var c='',h='',r=('jlo'+Math.random()).replace(/\./g, ''); for (var i=0;i'; } return '
'+h+'
'; }; if (document.querySelector('meta[loading]')) { document.documentElement.insertAdjacentHTML('beforeend', '
'+WebsiteStartLoading({})+'
'); }