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
1aa3b1dc
authored
Feb 02, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
bdd74dde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Public/static/js/common.js
+6
-6
No files found.
Public/static/js/common.js
View file @
1aa3b1dc
...
...
@@ -231,7 +231,7 @@ $('.flag-frame').html('').addClass('clearfix');
//自定义flag的placeholder
// $('input[name=customize-flag]').attr('placeholder', '也能在这里写你的flag哦');
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#e29e77'
).
val
(
'也能在这里写下你的
Flag
哦'
);
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#e29e77'
).
val
(
'也能在这里写下你的
心愿
哦'
);
//署名的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'
,
'#e29e77'
).
val
(
'也能在这里写下你的
Flag
哦'
);
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#e29e77'
).
val
(
'也能在这里写下你的
心愿
哦'
);
}
}
});
...
...
@@ -386,7 +386,7 @@ function createFlagListSort() {
}
function
setCustomizeVal
()
{
if
(
$
(
'input[name=customize-flag]'
).
val
()
==
'也能在这里写下你的
Flag
哦'
||
if
(
$
(
'input[name=customize-flag]'
).
val
()
==
'也能在这里写下你的
心愿
哦'
||
$
(
'input[name=customize-flag]'
).
val
().
match
(
/^
\s
*$/
))
{
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
"#ffd594"
).
val
(
''
);
}
...
...
@@ -864,9 +864,9 @@ function createList(target, flag, no, wrapNum = 0) {
function
addCustomizeFlag
()
{
let
text
=
$
(
'input[name=customize-flag]'
).
val
();
if
(
text
.
match
(
/^
\s
*$/
)
||
$
(
'input[name=customize-flag]'
).
val
()
==
'也能在这里写下你的
Flag
哦'
)
{
if
(
text
.
match
(
/^
\s
*$/
)
||
$
(
'input[name=customize-flag]'
).
val
()
==
'也能在这里写下你的
心愿
哦'
)
{
$
(
'#notification_area'
).
remove
();
my_notify
(
'请填写
flag
'
);
my_notify
(
'请填写
你的心愿
'
);
return
false
;
}
...
...
@@ -881,7 +881,7 @@ function addCustomizeFlag() {
flagStack
.
push
(
text
);
addFlagToList
(
text
);
$
(
'.flag-page .choose-num'
).
text
((
chooseNum
++
)
+
1
);
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#e29e77'
).
val
(
'也能在这里写下你的
Flag
哦'
);
$
(
'input[name=customize-flag]'
).
css
(
'color'
,
'#e29e77'
).
val
(
'也能在这里写下你的
心愿
哦'
);
//mark
}
...
...
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