Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
chinaamc-2020flag
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a5478cb9
authored
Jan 13, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
b06c156d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Public/static/js/common.js
+10
-3
No files found.
Public/static/js/common.js
View file @
a5478cb9
...
@@ -192,6 +192,9 @@ let agreeSuggestion = false;
...
@@ -192,6 +192,9 @@ let agreeSuggestion = false;
//同意按钮闪烁timer
//同意按钮闪烁timer
let
agreeTimer
;
let
agreeTimer
;
//记录第一次小装饰
let
decoratecClick
=
true
;
//倒计时canvas
//倒计时canvas
let
countDownCanvas
;
let
countDownCanvas
;
let
countDownCtx
;
let
countDownCtx
;
...
@@ -711,7 +714,6 @@ function setDecorate(event) {
...
@@ -711,7 +714,6 @@ function setDecorate(event) {
checkedDecorate
=
src
;
checkedDecorate
=
src
;
$
(
'.personal-page .checked-decorate-img'
).
css
(
'background'
,
'url('
+
src
+
') left top no-repeat'
)
$
(
'.personal-page .checked-decorate-img'
).
css
(
'background'
,
'url('
+
src
+
') left top no-repeat'
)
.
css
(
'backgroundSize'
,
'100%'
);
.
css
(
'backgroundSize'
,
'100%'
);
}
}
function
changeMainColor
(
event
)
{
function
changeMainColor
(
event
)
{
...
@@ -775,8 +777,7 @@ function initDecorate() {
...
@@ -775,8 +777,7 @@ function initDecorate() {
let
img
=
$
(
'<img src="'
+
picUrl
+
'decorate'
+
arr
[
i
]
+
'.png" class="decorateImg" />'
);
let
img
=
$
(
'<img src="'
+
picUrl
+
'decorate'
+
arr
[
i
]
+
'.png" class="decorateImg" />'
);
img
.
appendTo
(
$
(
'.personal-page .decorate-content'
));
img
.
appendTo
(
$
(
'.personal-page .decorate-content'
));
}
}
let
left
=
(
81.25
*
fontSize
)
-
(
8.125
*
fontSize
);
$
(
'.decorate-content'
).
scrollLeft
(
left
);
}
}
function
showBgcolor
()
{
function
showBgcolor
()
{
...
@@ -788,8 +789,14 @@ function showDecorate() {
...
@@ -788,8 +789,14 @@ function showDecorate() {
clickDecorate
=
true
;
clickDecorate
=
true
;
$
(
'.personal-page .tab-bgcolor,.personal-page .tab-decorate-active,.decorate-content'
).
show
();
$
(
'.personal-page .tab-bgcolor,.personal-page .tab-decorate-active,.decorate-content'
).
show
();
$
(
'.personal-page .tab-bgcolor-active,.personal-page .tab-decorate,.bgcolor-content'
).
hide
();
$
(
'.personal-page .tab-bgcolor-active,.personal-page .tab-decorate,.bgcolor-content'
).
hide
();
if
(
decoratecClick
)
{
decoratecClick
=
false
;
let
left
=
(
81.25
*
fontSize
)
-
(
8.125
*
fontSize
);
$
(
'.decorate-content'
).
scrollLeft
(
left
);
}
}
}
function
showPersonalPage
()
{
function
showPersonalPage
()
{
if
(
!
checkedDecorate
)
{
if
(
!
checkedDecorate
)
{
checkedDecorate
=
decorateList
[
0
];
checkedDecorate
=
decorateList
[
0
];
...
...
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