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
6d78e8b0
authored
Jan 08, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
581a9a53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
Public/static/js/common.js
+3
-1
No files found.
Public/static/js/common.js
View file @
6d78e8b0
...
@@ -211,7 +211,7 @@ $(document).ready(function () {
...
@@ -211,7 +211,7 @@ $(document).ready(function () {
//调整背景色按钮点击切换背景色
//调整背景色按钮点击切换背景色
$
(
'.personal-page .btn-tab-bgcolor'
).
on
(
'click'
,
showBgcolor
);
$
(
'.personal-page .btn-tab-bgcolor'
).
on
(
'click'
,
showBgcolor
);
//选择色条触摸开始
//选择色条触摸开始
$
(
'.personal-page .
btn-choose-colo
r'
).
on
(
'touchstart'
,
chooseColorStart
);
$
(
'.personal-page .
colorba
r'
).
on
(
'touchstart'
,
chooseColorStart
);
//选择色条拖动
//选择色条拖动
$
(
'.personal-page .btn-choose-color'
).
on
(
'touchmove'
,
chooseColorMove
);
$
(
'.personal-page .btn-choose-color'
).
on
(
'touchmove'
,
chooseColorMove
);
//红色
//红色
...
@@ -303,6 +303,8 @@ function changeMainColor(event) {
...
@@ -303,6 +303,8 @@ function changeMainColor(event) {
function
chooseColorStart
(
e
)
{
function
chooseColorStart
(
e
)
{
let
touch
=
e
.
originalEvent
.
targetTouches
[
0
];
let
touch
=
e
.
originalEvent
.
targetTouches
[
0
];
console
.
log
(
touch
);
startX
=
touch
.
pageX
/
fontSize
;
startX
=
touch
.
pageX
/
fontSize
;
}
}
...
...
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