Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SURPRISED
Project
Project
Details
Activity
Releases
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
华国豪
SURPRISED
Commits
ab694a85
Commit
ab694a85
authored
Jan 15, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b89bab4b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
8 deletions
+76
-8
tenInfo.html
html/SignIn/tenInfo.html
+76
-8
tenreweu.png
images/tenreweu.png
+0
-0
home_1.png
images/tenyear/home_1.png
+0
-0
No files found.
html/SignIn/tenInfo.html
View file @
ab694a85
...
@@ -103,6 +103,38 @@
...
@@ -103,6 +103,38 @@
}
}
#container
>
div
{
#container
>
div
{
left
:
-5%
;
left
:
-5%
;
}
#tenImg
{
width
:
57%
;
position
:
absolute
;
left
:
-26%
;
top
:
-10%
;
}
.character
{
width
:
230px
;
height
:
305px
;
background-image
:
url('../../images/tenreweu.png')
;
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
margin-left
:
-115px
;
margin-top
:
-152px
;
display
:
none
;
}
.img_show
{
width
:
200px
;
height
:
200px
;
margin-left
:
15px
;
margin-top
:
10px
;
}
.character
p
{
font-size
:
40px
;
color
:
#FFFFFF
;
text-align
:
center
;
margin-top
:
20px
;
}
}
</style>
</style>
<link
rel=
"stylesheet"
href=
"../../css/moveAnimate.min.css"
>
<link
rel=
"stylesheet"
href=
"../../css/moveAnimate.min.css"
>
...
@@ -126,9 +158,16 @@
...
@@ -126,9 +158,16 @@
<video
src=
"../../video/NHQDQ9.mp4"
autoplay=
"autoplay"
loop=
"loop"
muted=
"muted"
id=
"homeBGvideo"
></video>
<video
src=
"../../video/NHQDQ9.mp4"
autoplay=
"autoplay"
loop=
"loop"
muted=
"muted"
id=
"homeBGvideo"
></video>
</div>
</div>
<div
class=
""
>
<div
class=
""
>
<div
id=
"container"
></div>
<div
id=
"container"
>
</div>
</div>
</div>
<div
class=
"character animated"
>
<img
src=
""
alt=
""
class=
"img_show"
>
<p></p>
</div>
</div>
</div>
<audio
id=
"audio"
autoplay
>
您的浏览器不支持 audio 元素。
</audio>
<audio
id=
"audio"
autoplay
>
您的浏览器不支持 audio 元素。
</audio>
<script>
<script>
...
@@ -323,8 +362,37 @@
...
@@ -323,8 +362,37 @@
}
}
function
render
()
{
function
render
()
{
renderer
.
render
(
scene
,
camera
);
renderer
.
render
(
scene
,
camera
);
}
}
$
(
'#container>div>div'
).
append
(
'<img id="tenImg" src="../../images/tenyear/home_1.png">'
)
photoshow
()
function
photoshow
()
{
let
i
=
0
;
let
timer
=
setInterval
(
function
()
{
let
key
=
getRandomNumberByRange
(
0
,
22
)
+
1
;
//随即数
$
(
'.character'
).
css
(
'display'
,
'block'
)
$
(
'.character p'
).
html
(
imgList
[
i
])
$
(
".img_show"
).
attr
(
"src"
,
'../../images/tenyear/'
+
imgList
[
i
]
+
'.jpg'
);
$
(
".character"
).
addClass
(
_in
[
key
])
setTimeout
(
function
()
{
$
(
".character"
).
removeClass
(
_in
[
key
])
$
(
".character"
).
addClass
(
_out
[
key
])
},
4000
)
setTimeout
(
function
()
{
$
(
".character"
).
removeClass
(
_out
[
key
])
},
5000
)
i
++
if
(
i
+
1
==
imgList
.
length
){
clearInterval
(
timer
)
}
},
5000
)
}
function
getRandomNumberByRange
(
start
,
end
)
{
return
Math
.
floor
(
Math
.
random
()
*
(
end
-
start
)
+
start
)
}
</script>
</script>
</body>
</body>
...
...
images/tenreweu.png
0 → 100644
View file @
ab694a85
246 KB
images/tenyear/home_1.png
0 → 100644
View file @
ab694a85
827 KB
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