Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5_activity
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谭新宇
h5_activity
Commits
d40a85c5
Commit
d40a85c5
authored
Jul 11, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'js抽取'
parent
f21cee48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
main.js
showPhotos/js/main.js
+10
-9
No files found.
showPhotos/js/main.js
View file @
d40a85c5
(
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
styleSheet
=
[
"css/activity.css"
,
"css/dialog.css"
];
var
scriptArray
=
[
var
scriptArray
=
[
"js/jquery-3.4.1.min.js"
,
"js/exif.js"
,
"js/dialog.js"
,
...
...
@@ -12,9 +12,9 @@ var scriptArray = [
"js/modalJson/voteModal.js"
,
"js/removeAttr.js"
,
"js/autoFontsize.min.js"
];
];
for
(
var
i
=
0
;
i
<
styleSheet
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
styleSheet
.
length
;
i
++
){
var
link
=
document
.
createElement
(
"link"
);
link
.
setAttribute
(
"rel"
,
"stylesheet"
);
link
.
setAttribute
(
"type"
,
"text/css"
);
...
...
@@ -25,9 +25,9 @@ for(var i = 0; i < styleSheet.length ;i++){
heads
[
0
].
appendChild
(
link
);
else
document
.
documentElement
.
appendChild
(
link
);
}
}
for
(
var
i
=
0
;
i
<
scriptArray
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
scriptArray
.
length
;
i
++
){
var
script
=
document
.
createElement
(
"script"
);
script
.
setAttribute
(
"type"
,
"text/javascript"
);
script
.
setAttribute
(
"src"
,
headerUrl
+
scriptArray
[
i
]);
...
...
@@ -36,5 +36,6 @@ for(var i = 0; i < scriptArray.length ;i++){
heads
[
0
].
appendChild
(
script
);
else
document
.
documentElement
.
appendChild
(
script
);
}
}
})();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment