Commit d40a85c5 by txy

'js抽取'

parent f21cee48
(funciton(){
var headerUrl = "https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/";
var styleSheet = ["css/activity.css","css/dialog.css"];
var headerUrl = "https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/"; var scriptArray = [
var styleSheet = ["css/activity.css","css/dialog.css"]; "js/jquery-3.4.1.min.js",
"js/exif.js",
"js/dialog.js",
"js/html2Json.js",
"js/pageJson.js",
"js/modalJson/shareModal.js",
"js/modalJson/voteModal.js",
"js/removeAttr.js",
"js/autoFontsize.min.js"
];
var scriptArray = [ for(var i = 0; i < styleSheet.length ;i++){
"js/jquery-3.4.1.min.js", var link= document.createElement("link");
"js/exif.js", link.setAttribute("rel", "stylesheet");
"js/dialog.js", link.setAttribute("type", "text/css");
"js/html2Json.js", link.setAttribute("href", headerUrl + styleSheet[i]);
"js/pageJson.js",
"js/modalJson/shareModal.js", var heads = document.getElementsByTagName("head");
"js/modalJson/voteModal.js", if(heads.length)
"js/removeAttr.js", heads[0].appendChild(link);
"js/autoFontsize.min.js" else
]; document.documentElement.appendChild(link);
}
for(var i = 0; i < styleSheet.length ;i++){ for(var i = 0; i < scriptArray.length ;i++){
var link= document.createElement("link"); var script=document.createElement("script");
link.setAttribute("rel", "stylesheet"); script.setAttribute("type", "text/javascript");
link.setAttribute("type", "text/css"); script.setAttribute("src", headerUrl + scriptArray[i]);
link.setAttribute("href", headerUrl + styleSheet[i]); var heads = document.getElementsByTagName("head");
if(heads.length)
var heads = document.getElementsByTagName("head"); heads[0].appendChild(script);
if(heads.length) else
heads[0].appendChild(link); document.documentElement.appendChild(script);
else }
document.documentElement.appendChild(link); })();
}
for(var i = 0; i < scriptArray.length ;i++){
var script=document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", headerUrl + scriptArray[i]);
var heads = document.getElementsByTagName("head");
if(heads.length)
heads[0].appendChild(script);
else
document.documentElement.appendChild(script);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment