-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpass_variable.js
More file actions
340 lines (259 loc) · 13 KB
/
pass_variable.js
File metadata and controls
340 lines (259 loc) · 13 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
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
function setVariable(){
var elem, styl;
// Network
elem = document.querySelector("#tableNetwork1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenNetwork1").value = styl.backgroundColor;
elem = document.querySelector("#tableNetwork2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenNetwork2").value = styl.backgroundColor;
elem = document.querySelector("#tableNetwork3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenNetwork3").value = styl.backgroundColor;
elem = document.querySelector("#tableNetwork4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenNetwork4").value = styl.backgroundColor;
elem = document.querySelector("#tableNetwork5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenNetwork5").value = styl.backgroundColor;
// Internet
elem = document.querySelector("#tableInternet1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenInternet1").value = styl.backgroundColor;
elem = document.querySelector("#tableInternet2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenInternet2").value = styl.backgroundColor;
elem = document.querySelector("#tableInternet3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenInternet3").value = styl.backgroundColor;
elem = document.querySelector("#tableInternet4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenInternet4").value = styl.backgroundColor;
elem = document.querySelector("#tableInternet5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenInternet5").value = styl.backgroundColor;
// Device
elem = document.querySelector("#tableDevice1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDevice1").value = styl.backgroundColor;
elem = document.querySelector("#tableDevice2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDevice2").value = styl.backgroundColor;
elem = document.querySelector("#tableDevice3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDevice3").value = styl.backgroundColor;
elem = document.querySelector("#tableDevice4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDevice4").value = styl.backgroundColor;
elem = document.querySelector("#tableDevice5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDevice5").value = styl.backgroundColor;
// Proto
elem = document.querySelector("#tableProto1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenProto1").value = styl.backgroundColor;
elem = document.querySelector("#tableProto2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenProto2").value = styl.backgroundColor;
elem = document.querySelector("#tableProto3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenProto3").value = styl.backgroundColor;
elem = document.querySelector("#tableProto4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenProto4").value = styl.backgroundColor;
elem = document.querySelector("#tableProto5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenProto5").value = styl.backgroundColor;
// Osi
elem = document.querySelector("#tableOsi1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenOsi1").value = styl.backgroundColor;
elem = document.querySelector("#tableOsi2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenOsi2").value = styl.backgroundColor;
elem = document.querySelector("#tableOsi3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenOsi3").value = styl.backgroundColor;
elem = document.querySelector("#tableOsi4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenOsi4").value = styl.backgroundColor;
elem = document.querySelector("#tableOsi5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenOsi5").value = styl.backgroundColor;
// Tcp
elem = document.querySelector("#tableTcp1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenTcp1").value = styl.backgroundColor;
elem = document.querySelector("#tableTcp2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenTcp2").value = styl.backgroundColor;
elem = document.querySelector("#tableTcp3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenTcp3").value = styl.backgroundColor;
elem = document.querySelector("#tableTcp4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenTcp4").value = styl.backgroundColor;
elem = document.querySelector("#tableTcp5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenTcp5").value = styl.backgroundColor;
// Encap
elem = document.querySelector("#tableEncap1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenEncap1").value = styl.backgroundColor;
elem = document.querySelector("#tableEncap2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenEncap2").value = styl.backgroundColor;
elem = document.querySelector("#tableEncap3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenEncap3").value = styl.backgroundColor;
elem = document.querySelector("#tableEncap4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenEncap4").value = styl.backgroundColor;
elem = document.querySelector("#tableEncap5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenEncap5").value = styl.backgroundColor;
// Decap
elem = document.querySelector("#tableDecap1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDecap1").value = styl.backgroundColor;
elem = document.querySelector("#tableDecap2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDecap2").value = styl.backgroundColor;
elem = document.querySelector("#tableDecap3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDecap3").value = styl.backgroundColor;
elem = document.querySelector("#tableDecap4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDecap4").value = styl.backgroundColor;
elem = document.querySelector("#tableDecap5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDecap5").value = styl.backgroundColor;
// Pdu
elem = document.querySelector("#tablePdu1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPdu1").value = styl.backgroundColor;
elem = document.querySelector("#tablePdu2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPdu2").value = styl.backgroundColor;
elem = document.querySelector("#tablePdu3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPdu3").value = styl.backgroundColor;
elem = document.querySelector("#tablePdu4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPdu4").value = styl.backgroundColor;
elem = document.querySelector("#tablePdu5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPdu5").value = styl.backgroundColor;
// Add
elem = document.querySelector("#tableAdd1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenAdd1").value = styl.backgroundColor;
elem = document.querySelector("#tableAdd2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenAdd2").value = styl.backgroundColor;
elem = document.querySelector("#tableAdd3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenAdd3").value = styl.backgroundColor;
elem = document.querySelector("#tableAdd4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenAdd4").value = styl.backgroundColor;
elem = document.querySelector("#tableAdd5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenAdd5").value = styl.backgroundColor;
// Mac
elem = document.querySelector("#tableMac1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenMac1").value = styl.backgroundColor;
elem = document.querySelector("#tableMac2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenMac2").value = styl.backgroundColor;
elem = document.querySelector("#tableMac3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenMac3").value = styl.backgroundColor;
elem = document.querySelector("#tableMac4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenMac4").value = styl.backgroundColor;
elem = document.querySelector("#tableMac5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenMac5").value = styl.backgroundColor;
// Ip
elem = document.querySelector("#tableIp1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenIp1").value = styl.backgroundColor;
elem = document.querySelector("#tableIp2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenIp2").value = styl.backgroundColor;
elem = document.querySelector("#tableIp3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenIp3").value = styl.backgroundColor;
elem = document.querySelector("#tableIp4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenIp4").value = styl.backgroundColor;
elem = document.querySelector("#tableIp5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenIp5").value = styl.backgroundColor;
// Port
elem = document.querySelector("#tablePort1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPort1").value = styl.backgroundColor;
elem = document.querySelector("#tablePort2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPort2").value = styl.backgroundColor;
elem = document.querySelector("#tablePort3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPort3").value = styl.backgroundColor;
elem = document.querySelector("#tablePort4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPort4").value = styl.backgroundColor;
elem = document.querySelector("#tablePort5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenPort5").value = styl.backgroundColor;
// Route
elem = document.querySelector("#tableRoute1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenRoute1").value = styl.backgroundColor;
elem = document.querySelector("#tableRoute2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenRoute2").value = styl.backgroundColor;
elem = document.querySelector("#tableRoute3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenRoute3").value = styl.backgroundColor;
elem = document.querySelector("#tableRoute4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenRoute4").value = styl.backgroundColor;
elem = document.querySelector("#tableRoute5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenRoute5").value = styl.backgroundColor;
// Dns
elem = document.querySelector("#tableDns1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDns1").value = styl.backgroundColor;
elem = document.querySelector("#tableDns2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDns2").value = styl.backgroundColor;
elem = document.querySelector("#tableDns3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDns3").value = styl.backgroundColor;
elem = document.querySelector("#tableDns4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDns4").value = styl.backgroundColor;
elem = document.querySelector("#tableDns5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenDns5").value = styl.backgroundColor;
// Http
elem = document.querySelector("#tableHttp1");
styl = getComputedStyle(elem);
document.querySelector("#hiddenHttp1").value = styl.backgroundColor;
elem = document.querySelector("#tableHttp2");
styl = getComputedStyle(elem);
document.querySelector("#hiddenHttp2").value = styl.backgroundColor;
elem = document.querySelector("#tableHttp3");
styl = getComputedStyle(elem);
document.querySelector("#hiddenHttp3").value = styl.backgroundColor;
elem = document.querySelector("#tableHttp4");
styl = getComputedStyle(elem);
document.querySelector("#hiddenHttp4").value = styl.backgroundColor;
elem = document.querySelector("#tableHttp5");
styl = getComputedStyle(elem);
document.querySelector("#hiddenHttp5").value = styl.backgroundColor;
}