-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
235 lines (217 loc) · 6.98 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Dual Monitor Helper</title>
<link rel = "stylesheet" href = "node_modules/bootstrap/dist/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" href="node_modules/materialize-css/dist/css/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="node_modules/simplebar/dist/simplebar.min.css" media="screen,projection"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(./fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-flex;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
vertical-align: bottom;
}
/* label color */
.input-field label {
color: #2979ff;
}
/* label focus color */
.input-field input[type=text]:focus + label {
color: #2979ff;
}
/* label underline focus color */
.input-field input[type=text]:focus {
border-bottom: 1px solid #2979ff;
box-shadow: 0 1px 0 0 #2979ff;
}
/* valid color */
.input-field input[type=text].valid {
border-bottom: 1px solid #2979ff;
box-shadow: 0 1px 0 0 #2979ff;
}
/* invalid color */
.input-field input[type=text].invalid {
border-bottom: 1px solid #2979ff;
box-shadow: 0 1px 0 0 #2979ff;
}
/* icon prefix focus color */
.input-field .prefix.active {
color: #2979ff;
}
.fix-collapsible {
border-top: 1px solid #ddd;
border-right: 1px solid #ddd;
border-left: 1px solid #ddd;
margin: 0.5rem 0 1rem 0;
}
.monitor-items {
overflow: auto;
height: 300px;
z-index: 99;
}
.header {
padding: 5px;
text-align: center;
background: #2979ff;
color: white;
font-size: 10px;
}
.mon-icon {
position: absolute;
width: 46px;
height: 46px;
overflow: hidden;
left: 15px;
display: inline-block;
vertical-align: middle;
}
.chipcolor {
background-color: #9dd3ff;
}
.footer {
z-index: 99;
position: absolute;
bottom: 0;
width: 100%;
background-color: #F1F1F1;
text-align: center;
padding: 10px;
font-size: 10px;
}
.content {
padding: 0 18px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #f1f1f1;
border-radius: 15px;
}
.rounded {
border-radius: 50px !important;
background-color: #2979ff;
opacity: 0.8 !important;
}
.rate_rounded {
border-radius: 25px !important;
background-color: #8bc34a;
color: white;
padding: 5px;
}
.current_rate {
background-color: green;
}
.preferred_rate {
background-color: #40c4ff;
}
.ideal_rate {
background-color: #ffc107;
}
.dialog_dname {
font-size: 2em;
color: white;
background-color: #2979ff;
padding: 2px;
border-radius: 10px;
margin-bottom: 15px;
}
.dialog-back {
position: absolute;
bottom: 0px;
}
.rowbg {
background-color: #e2e2e2;
padding-top: 5px;
padding-right: 10px;
border-radius: 10px;
margin-bottom: 20px;
}
.reload-btn {
margin-top: 3px;
}
</style>
</head>
<body>
<div class="header">
<h6>DMH <font size="0.5em">v1.0@Sata Sawa</font></h6>
</div>
<div class="monitor-items" data-simplebar data-simplebar-auto-hide="true">
<ul id="monitor-group" class="collection">
<!-- reserved -->
<center>
<div class = "preloader-wrapper small active">
<div class = "spinner-layer spinner-blue-only">
<div class = "circle-clipper left">
<div class = "circle"></div>
</div>
<div class = "gap-patch">
<div class = "circle"></div>
</div>
<div class = "circle-clipper right">
<div class = "circle"></div>
</div>
</div>
</div>
</center>
</ul>
</div>
<center>
<a id="reload-bt" class="waves-effect waves-light blue accent-3 btn reload-btn"><font color="white">Reload</font></a>
</center>
<!-- Modal Structure -->
<div id="modal1" class="modal">
<div class="modal-content">
<div id="mon-title"></div>
<div class="row rowbg">
<div class="input-field col s6">
<input value="1920" id="x-len" type="text" class="validate">
<label class="active" for="x-len"> X</label>
</div>
<div class="input-field col s6">
<input value="1080" id="y-len" type="text" class="validate">
<label class="active" for="y-len"> Y</label>
</div>
<div class="input-field col s6">
<input value="60" id="rate" type="text" class="validate">
<label class="active" for="rate"> Refresh Rate (hz)</label>
</div>
<div class="input-field inline">
<a id="new_mode_bt" class="btn-floating waves-effect waves-light green btn"><i class="material-icons">add</i></i></a>
<a id="remove_mode_bt" class="btn-floating waves-effect waves-light pink darken btn"><i class="material-icons">remove</i></i></a>
</div>
</div>
<span style='font-size:12px;'><i class="material-icons">warning</i> DMH will not apply display modes</span>
</div>
<div class="modal-footer">
<a class="modal-close btn-floating waves-effect waves-light blue accent-3 btn dialog-back"><i class="material-icons">arrow_back</i></i></a>
</div>
</div>
<div class="footer">
Node <script>document.write(process.versions.node)</script>
Chrome <script>document.write(process.versions.chrome)</script>
Electron <script>document.write(process.versions.electron)</script>
</div>
<script src = "./load.js" ></script>
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="node_modules/materialize-css/dist/js/materialize.min.js"></script>
<script type="text/javascript" src="node_modules/simplebar/dist/simplebar.min.js"></script>
</body>
</html>