Skip to content

Commit 30fea67

Browse files
committed
Update notification box so it does not change page height
Fix statistics page with runtime disabled
1 parent a3d15f1 commit 30fea67

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

DebugFiles/web/frame.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<a href="/settings/maps"><i class="material-icons">map</i>Map Rotation</a>
3737

3838
<span>Database</span>
39-
<a href="/db/statistics"><i class="material-icons">timeline</i>Statistics</a>
39+
<a href="/db/statistics" class="runtime"><i class="material-icons">timeline</i>Statistics</a>
4040
<a href="/db/bans" class="runtime"><i class="material-icons">gavel</i>Bans</a>
4141

4242
<!--<span>Group Settings</span>

DebugFiles/web/general.htm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h2>General Settings</h2>
88
<span>Server</span>
99
<table class="status embedded">
1010
<tr class="fixed"><th>Session name</th><td><input id="general_input_session_name" type="text"></td></tr>
11-
<tr class="fixed"><th>Password</th><td><input id="general_input_password" type="text"></td></tr>
11+
<tr class="runtime"><th>Password</th><td><input id="general_input_password" type="text"></td></tr>
1212
<tr class="runtime"><th>Admin password</th><td><input id="general_input_admin_password" type="text"></td></tr>
1313
<tr class="fixed"><th>Max. players</th><td><input id="general_input_max_players" type="number" min="1" max="64"></td></tr>
1414
<tr class="fixed"><th>Min. players</th><td><input id="general_input_min_players" type="number" min="0" max="64"></td></tr>
@@ -65,22 +65,22 @@ <h2>General Settings</h2>
6565
<div class="item">
6666
<span>Performance</span>
6767
<table class="status embedded">
68-
<tr class="fixed">
68+
<tr class="runtime">
6969
<th>Lag version</th>
7070
<td><input type="number"id="general_input_lagversion" min="0" max="4"></td>
7171
</tr>
7272

73-
<tr class="fixed">
73+
<tr class="runtime">
7474
<th>Split update</th>
7575
<td><input type="checkbox" id="general_input_splitupdate_enable"></td>
7676
</tr>
7777

78-
<tr class="fixed">
78+
<tr class="runtime">
7979
<th>Drop lag jumps</th>
8080
<td><input type="checkbox" id="general_input_droplagjumps_enable"></td>
8181
</tr>
8282

83-
<tr class="fixed">
83+
<tr class="runtime">
8484
<th>Waitlate</th>
8585
<td><input type="checkbox" id="general_input_waitlate_enable"></td>
8686
</tr>

DebugFiles/web/res/event.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function EventDisplay(container) {
1010

1111
this.container = $(container);
1212
this.container.addClass("item");
13+
this.container.addClass("event");
1314
this.container.hide();
1415

1516
this.timeout = null;
@@ -39,7 +40,7 @@ function EventDisplay(container) {
3940
base.container.removeClass("info");
4041
base.container.addClass(cls);
4142
base.txt.html(msg);
42-
if(r) base.container.fadeIn(); else base.container.slideDown();
43+
if(r) base.container.fadeIn(); else base.container.slideDown();
4344
}
4445

4546
if(base.timeout != null) clearTimeout(base.timeout);

DebugFiles/web/res/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ body {
3737
}
3838
}
3939

40+
/**
41+
* Events
42+
**/
43+
div.event {
44+
position: fixed;
45+
z-index: 10;
46+
top: 0;
47+
right: 0;
48+
background: #f0f0f0;
49+
min-width: 25%;
50+
}
51+
4052
/**
4153
* Frame
4254
**/

0 commit comments

Comments
 (0)