-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_server_list.htm
More file actions
77 lines (71 loc) · 2.61 KB
/
Copy pathtest_server_list.htm
File metadata and controls
77 lines (71 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1" />
<title>Test server build</title>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/frameless_window.css" />
<link rel="stylesheet" type="text/css" href="css/fonts.css" />
<link rel="stylesheet" type="text/css" href="css/controls/general.css" />
<link rel="stylesheet" type="text/css" href="css/controls/hero.css" />
<link rel="stylesheet" type="text/css" href="css/controls/villain.css" />
<link rel="stylesheet" type="text/css" href="css/scrollbars.css" />
<link rel="stylesheet" type="text/css" href="css/test_server_list.css" />
</head>
<body>
<div class="container-fluid">
<div class="row" id="titlebar">
<div class="col-md-6 text-left">
<div id="applabel"><span id="apptitle">Test server build</span></div>
</div>
<div class="col-md-6 text-right">
<div class="button" id="bmin">
<img src="images/buttons/minimize.png" width="10" height="10" alt="" />
</div>
<div class="button" id="bclose">
<img src="images/buttons/close.png" width="10" height="10" alt="" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-left" id="actionbar">
<div>
<span class="heroaction" id="sautocopy"><input type="button" id="bautocopy" value="Use auto copy" /></span>
</div>
<div id="list_controls" style="visibility: hidden;">
<span class="heroaction disabled" id="slistprev"><input type="button" id="blistprev" value="Previous" /></span>
<span class="heroaction disabled" id="slistnext"><input type="button" id="blistnext" value="Next" /></span>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-left">
<div id="test_server_todo_list"></div>
</div>
</div>
</div>
<script>
var charBuild = null;
var todoList = null;
document.addEventListener('keydown', function(e) {
if (e.which === 123) // F12
{
remote.getCurrentWindow().toggleDevTools();
}
});
ipcRenderer.on('testSrvBaseBuild', (event, data) => {
charBuild = new cCharacterBuild();
charBuild.importObjectProperties(data);
document.body.className = (charBuild.isVillain() ? 'villain' : '');
todoList = new cTestServerGen();
todoList.generateSlashCmdList(charBuild);
document.getElementById('test_server_todo_list').innerHTML = todoList.render();
todoList.callbacks.updateButtonStates();
document.getElementById('list_controls').visibility = 'visible';
});
</script>
</body>
</html>