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
9df72a7c
authored
Jan 08, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
332644b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
Public/static/css/index.css
+6
-0
Public/static/js/common.js
+13
-0
No files found.
Public/static/css/index.css
View file @
9df72a7c
...
@@ -142,6 +142,12 @@ input::-webkit-input-placeholder {
...
@@ -142,6 +142,12 @@ input::-webkit-input-placeholder {
height
:
103%
;
height
:
103%
;
}
}
.flag-page
.checked-flag-list
{
border
:
0.05rem
solid
#222222
;
transition
:
all
linear
.3s
;
-webkit-transition
:
all
linear
.3s
;
}
@keyframes
trans
{
@keyframes
trans
{
to
{
to
{
transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
...
...
Public/static/js/common.js
View file @
9df72a7c
...
@@ -151,6 +151,7 @@ let timer;
...
@@ -151,6 +151,7 @@ let timer;
let
mainColor
=
'red'
;
let
mainColor
=
'red'
;
let
colorIndex
=
4
;
let
colorIndex
=
4
;
let
checkedDecorate
;
let
checkedDecorate
;
let
checkFlagListStatus
=
false
;
const
fontSize
=
parseFloat
(
$
(
'html'
).
css
(
'fontSize'
));
const
fontSize
=
parseFloat
(
$
(
'html'
).
css
(
'fontSize'
));
...
@@ -218,8 +219,20 @@ $(document).ready(function () {
...
@@ -218,8 +219,20 @@ $(document).ready(function () {
},
changeMainColor
);
},
changeMainColor
);
//小装饰点击
//小装饰点击
$
(
document
).
on
(
'click'
,
'.personal-page .decorateImg'
,
setDecorate
);
$
(
document
).
on
(
'click'
,
'.personal-page .decorateImg'
,
setDecorate
);
//打开已选flag列表
$
(
'.flag-page .btn-show-checked'
).
on
(
'click'
,
toggleCheckFlagList
);
});
});
function
toggleCheckFlagList
()
{
if
(
checkFlagListStatus
)
{
$
(
'.checked-flag-list'
).
css
(
'transform'
,
'scale(0)'
);
checkFlagListStatus
=
false
;
}
else
{
$
(
'.checked-flag-list'
).
css
(
'transform'
,
'scale(1)'
);
checkFlagListStatus
=
true
;
}
}
function
setDecorate
(
event
)
{
function
setDecorate
(
event
)
{
let
src
=
event
.
target
.
src
;
let
src
=
event
.
target
.
src
;
checkedDecorate
=
src
;
checkedDecorate
=
src
;
...
...
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