-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
253 lines (239 loc) · 6.39 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Data Conversion Tool</title>
<style>
* {
box-sizing: border-box;
position: relative;
}
nav {
display: inline-block;
position: fixed;
top: 0px;
left: 0px;
width: 100%;
max-height: 60px;
padding: 0px 10px;
background: black;
color: white;
z-index: 1;
}
nav div, nav ul, nav ul li {
display: inline-block;
position: relative;
}
nav div.test-switches {
box-sizing: border-box;
top: -1px;
height: 60px;
margin: 0px;
padding: 5px;
background: gray;
}
nav div.test-switches label {
display: inline-block;
position: relative;
top: -5px;
height: 60px;
padding: 5% 25px;
background: gray;
cursor: pointer;
}
nav div.test-switches input {
display: none;
}
nav div.test-switches label[data-check^="1"],
nav div.test-switches input[checked] + label {
background: white;
color: black;
font-weight: bold;
text-decoration: underline;
}
nav div.test-switches div.split-mark {
top: -24px;
height: 60px;
width: 2px;
border-right: 2px solid white;
color: white;
}
nav ul li {
margin: 5px;
}
/* menu function */
[data-status^="0"] + div {
display: none;
}
[data-status^="1"] + div {
display: initial;
}
nav ul li span {
display: inline-block;
top: -1px;
margin-top: 0px;
margin-left: 50px;
padding: 5px 15px;
cursor: pointer;
}
nav ul li span + div {
display: block;
margin-right: 20px
}
nav ul li div.dropdown {
display: block;
position: absolute;
left: 40px;
width: auto;
margin-left:5px;
padding: 2px 10px;
padding-bottom: 15px;
background: gray;
}
nav ul li div.dropdown div span {
padding: 0px;
margin-left: 10px;
}
nav ul li span:hover {
text-decoration: underline;
font-weight: bold;
background: darkslategray;
}
nav ul li div.dropdown div span:hover {
padding: 0px 5px;
background: gray;
}
span.pageDrop + div.dropdown.nestedDropdown {
position: relative;
width: 85%;
max-height: 500px;
background: white;
color: black;
overflow-y: scroll;
z-index: 1;
}
span.pageDrop + div.dropdown.nestedDropdown ul {
width: 100%;
left: 0px;
margin: 0px;
padding: 0px;
}
span.pageDrop + div.dropdown.nestedDropdown ul li {
width: 110%;
left: -12%;
margin: 3px 0px;
padding: 0px 5px;
}
span.pageDrop[data-nest-check^="0"] + div.dropdown.nestedDropdown {
display: none;
}
div.dropdown.nestedDropdown.indicateSwitch {
margin-top: 10px;
}
span.pageDrop + div.dropdown.nestedDropdown ul li:hover {
background: lightgray;
}
/* Document styling */
body nav + * {
margin-top: 100px;
margin-left: 50px;
}
h1 {
margin-left: 50px;
}
div#diffFiles, div#diffStats, div#runTimes {
margin-left: 75px;
}
</style>
</head>
<body>
<nav>
<div class="test-switches">
<input checked name="command-used" type="radio" id="command-source">
<label id="source-label-html" for="command-source" data-check="1" data-source="source"
onClick="setSource(this, this.dataset.source)">Source CHANGE_COMMAND Output</label>
<div class="split-mark">|</div>
<input name="command-used" type="radio" id="command-pull">
<label id="pull-label-html" for="command-pull" data-check="0" data-source="pull"
onClick="setSource(this, this.dataset.source)">Pull CHANGE_COMMAND Output</label>
</div>
<div style="display:inline; height: 40px; width:3px; top:15px; margin: 0px 0px 0px 25px; padding: 0px; background:white;"></div>
<ul id="navList">
<li id="unq">
<span onclick="
changeNextElementDisplay(this, this.nextElementSibling);
resetDropDowns(this, this.dataset.status);" data-status="0">Unique</span>
<div class="dropdown" style="display:none">
<!-- Options used in test -->
</div>
</li>
<li id="err">
<span onclick="
changeNextElementDisplay(this, this.nextElementSibling);
resetDropDowns(this, this.dataset.status);" data-status="0">Differences</span>
<div class="dropdown" style="display:none">
<!-- Options used in test -->
</div>
</li>
<li id="gen">
<span onclick="
changeNextElementDisplay(this, this.nextElementSibling);
resetDropDowns(this, this.dataset.status);" data-status="0">General</span>
<div class="dropdown" style="display:none">
<!-- Options used in test -->
</div>
</li>
</ul>
</nav>
<div id="dataConversionTestPageContent">
<!-- Overview of differne diles by the numbers.-->
<h1>Different File Statistics</h1><hr>
<div id="diffStats"></div>
<!-- Compare run times. -->
<h1>Source and Pull Run Times</h1><hr>
<div id="runTimes"></div>
<!-- Output diff with files with differences -->
<h1>Different Files Compared</h1><hr>
<div id="diffFiles"></div>
</div>
<script id="removedIfOnGitHub" src="https://cdn.jsdelivr.net/gh/jhauga/general/reusableJavascriptFunctions.js"></script>
<!-- Link to js tools -->
<script defer>
setTimeout(
function() {
if (location.href.indexOf("github.com") > -1) {
let removedIfOnGitHub = document.getElementById("removedIfOnGitHub");
removedIfOnGitHub.remove();
let linkcdn = document.createElement("script");
linkcdn.src = "https://cdn.jsdelivr.net/gh/jhauga/general/reusableJavascriptFunctions.js";
document.body.appendChild(linkcdn);
}
}, 1000);
</script>
<script src="scripts.js"></script>
<!-- debugging - for use to test link building -->
<script>
var testlinks = 1; // 1 is on
var linkCount = 0;
setTimeout(function() {
if (testlinks == 1) {
let testarr = [];
for (let i = 0; i < navListATags.length; i++) {
testarr.push(navListATags[i].href);
}
for (i = 0; i < testarr.length; i++) {
if (testarr[i].indexOf("COMMAND_USED") > -1) {
console.log("links failed");
break;
} else {
//console.log(linkCount + " links passed " + testarr[i]);
console.log("links passed");
linkCount++;
}
}
}
console.log(linkCount);
}, 2000);
</script>
</body>
</html>