Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
b0f5e9d3
Commit
b0f5e9d3
authored
Feb 12, 2018
by
nanahira
Committed by
GitHub
Feb 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 3 new buttons
parent
3f14de43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
dashboard.html
dashboard.html
+23
-0
No files found.
dashboard.html
View file @
b0f5e9d3
...
...
@@ -38,6 +38,9 @@
<button
class=
"btn btn-default"
id=
"shout_button"
data-toggle=
"tooltip"
title=
"向全服所有房间喊话"
>
喊话
</button>
<button
class=
"btn btn-default"
id=
"stop_button"
data-toggle=
"tooltip"
title=
"停止新建房间,不影响现有的房间"
>
停服
</button>
<button
class=
"btn btn-default"
id=
"welcome_button"
data-toggle=
"tooltip"
title=
"更改欢迎信息"
>
欢迎
</button>
<button
class=
"btn btn-default"
id=
"tips_button"
data-toggle=
"tooltip"
title=
"刷新提示信息"
>
提示
</button>
<button
class=
"btn btn-default"
id=
"dialogues_button"
data-toggle=
"tooltip"
title=
"刷新台词信息"
>
台词
</button>
<button
class=
"btn btn-default"
id=
"ban_button"
data-toggle=
"tooltip"
title=
"封禁玩家"
>
封禁
</button>
<span
id=
"message_callback"
></span>
</div>
</div>
...
...
@@ -70,6 +73,9 @@ $(function(){
$
(
"
#shout_button
"
).
click
(
shout
);
$
(
"
#stop_button
"
).
click
(
stop
);
$
(
"
#welcome_button
"
).
click
(
welcome
);
$
(
"
#tips_button
"
).
click
(
load_tips
);
$
(
"
#dialogues_button
"
).
click
(
load_dialogues
);
$
(
"
#ban_button
"
).
click
(
ban_player
);
var
params
=
parseQueryString
();
$
(
"
#ip
"
).
val
(
params
[
"
ip
"
]);
$
(
"
#port
"
).
val
(
params
[
"
port
"
]);
...
...
@@ -183,6 +189,23 @@ function welcome() {
$
.
getJSON
(
url
,
shoutcallback
);
}
}
function
load_tips
()
{
$
(
"
#message_callback
"
).
text
(
'
...
'
);
var
url
=
$
(
"
#http
"
).
val
()
+
"
://
"
+
$
(
"
#ip
"
).
val
()
+
"
:
"
+
$
(
"
#port
"
).
val
()
+
"
/api/message?loadtips=1&pass=
"
+
$
(
"
#password
"
).
val
()
+
"
&callback=?
"
;
$
.
getJSON
(
url
,
shoutcallback
);
}
function
load_dialogues
()
{
$
(
"
#message_callback
"
).
text
(
'
...
'
);
var
url
=
$
(
"
#http
"
).
val
()
+
"
://
"
+
$
(
"
#ip
"
).
val
()
+
"
:
"
+
$
(
"
#port
"
).
val
()
+
"
/api/message?loaddialogues=1&pass=
"
+
$
(
"
#password
"
).
val
()
+
"
&callback=?
"
;
$
.
getJSON
(
url
,
shoutcallback
);
}
function
ban_player
()
{
if
(
confirm
(
"
确实要封禁该玩家吗?
"
))
{
$
(
"
#message_callback
"
).
text
(
'
...
'
);
var
url
=
$
(
"
#http
"
).
val
()
+
"
://
"
+
$
(
"
#ip
"
).
val
()
+
"
:
"
+
$
(
"
#port
"
).
val
()
+
"
/api/message?ban=
"
+
$
(
"
#shout
"
).
val
()
+
"
&pass=
"
+
$
(
"
#password
"
).
val
()
+
"
&callback=?
"
;
$
.
getJSON
(
url
,
shoutcallback
);
}
}
function
shoutcallback
(
data
)
{
$
(
"
#message_callback
"
).
text
(
data
[
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