Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
ccb-lantern
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
b77945c8
authored
Jan 28, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
e0d07b53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Public/static/js/common.js
+4
-3
No files found.
Public/static/js/common.js
View file @
b77945c8
...
...
@@ -231,7 +231,7 @@ $('.flag-frame').html('').addClass('clearfix');
//自定义flag的placeholder
// $('input[name=customize-flag]').attr('placeholder', '也能在这里写你的flag哦');
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#
dba178
'
).
val
(
'也能在这里写下你的Flag哦'
);
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#
e29e77
'
).
val
(
'也能在这里写下你的Flag哦'
);
//署名的placeholder
$
(
'input[name=signature]'
).
attr
(
'placeholder'
,
'准备好了,就在此署名吧'
).
attr
(
'disabled'
,
true
).
attr
(
'id'
,
'signature'
);
...
...
@@ -259,7 +259,7 @@ $(document).ready(function () {
window
.
scroll
(
0
,
0
);
//失焦后强制让页面归位
if
(
$
(
this
).
attr
(
'name'
)
!=
'signature'
)
{
if
(
$
(
'input[name=customize-flag]'
).
val
().
match
(
/^
\s
*$/
))
{
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#
dba178
'
).
val
(
'也能在这里写下你的Flag哦'
);
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#
e29e77
'
).
val
(
'也能在这里写下你的Flag哦'
);
}
}
});
...
...
@@ -878,7 +878,8 @@ function addCustomizeFlag() {
flagStack
.
push
(
text
);
addFlagToList
(
text
);
$
(
'.flag-page .choose-num'
).
text
((
chooseNum
++
)
+
1
);
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#878787'
).
val
(
'也能在这里写下你的Flag哦'
);
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#e29e77'
).
val
(
'也能在这里写下你的Flag哦'
);
//mark
}
function
addFlag
(
e
)
{
...
...
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