-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
88 lines (88 loc) · 3.84 KB
/
index.html
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
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<!-- ZTP GUI Web App -->
<!-- Author: Tim Dorssers -->
<!-- Version: 1.2 -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>ZTP GUI App</title>
<link rel="stylesheet" href="style.css" />
<script type="text/javascript" src="main.js"></script>
</head>
<body>
<h3>ZTP GUI App</h3>
<div class="tab">
<button class="tablinks" onclick="openPage(event, 'hometab')" id="defaultOpen">Home</button>
<button class="tablinks" onclick="openPage(event, 'settingstab')">Settings</button>
<button class="tablinks" onclick="openPage(event, 'filestab')">Files</button>
</div>
<div id="hometab" class="tabcontent">
<p id="log" style="max-height: calc(100vh - 225px); overflow-y: auto; margin-bottom: 15px;"></p>
<input type="button" value="Refresh" onclick="loadLog()"/>
<input type="button" value="Clear" onclick="clearLog()"/>
</div>
<div id="settingstab" class="tabcontent">
<div style="max-height: calc(100vh - 215px); overflow-y: auto; margin-bottom: 15px;">
<p>Defaults</p>
<div id="defaults" class="box"></div>
<p>Stacks</p>
<div id="stacks"></div>
</div>
<form id="form_import">
<table>
<tr>
<td>
<input type="button" value="Add Stack" onclick="addTable()" />
<input type="button" value="Submit" onclick="submitData(false)" />
</td>
<td class="right">
<input type="button" value="Reload" onclick="loadData()"/>
<input type="button" value="Export" onclick="submitData(true)" />
<input type="button" value="Import" onclick="document.getElementById('hiddenfile').click()" />
<input type="file" id="hiddenfile" style="display:none;" onchange="importCsv()" />
</td>
</tr>
</table>
</form>
</div>
<div id="filestab" class="tabcontent">
<p id="files" style="max-height: calc(100vh - 265px); overflow-y: auto; margin-bottom: 15px;"></p>
<form id="form_upload" class="box">
<table>
<tr class="center">
<td>local path</td>
<td>remote path</td>
</tr>
<tr>
<td>
<input type="file" id="browse" multiple="" />
</td>
<td>
<input type="text" id="folder" />
</td>
<td class="min">
<input type="button" value="Upload" onclick="upload()" />
<input type="button" value="Refresh" onclick="loadList()"/>
</td>
</tr>
</table>
<table id="table_progress"></table>
</form>
</div>
<div id="modal">
<div class="content">
<span class="close" onclick="document.getElementById('modal').style.display = 'none'">×</span>
<p id="modalhead"></p>
<div id="modalcontent" class="scrollable"></div>
</div>
</div>
<script type="text/javascript">
window.onbeforeunload = function() {return ""};
document.getElementById("defaultOpen").click();
loadLog();
loadData(false);
loadList();
</script>
</body>
</html>