-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
288 lines (167 loc) · 7.57 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
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
<!doctype html>
<html lang = "en" >
<head>
<meta charset = "utf-8" >
<meta name = "copyright" content ="Ladybug Tools authors" >
<meta name = "date" content = "2020-10-09" >
<meta name = "description" content = "Spider gbXML Tools" >
<meta name = "keywords" content = "JavaScript,GitHub,FOSS" >
<meta name = "version" content = "0.03.02" >
<meta name = "viewport" content = "width=device-width, initial-scale=1" >
<title>Spider gbXML Tools</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-129035557-5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-129035557-5');
</script>
<base href = "" >
<link rel = "canonical" href = "https://www.ladybug.tools/spider-gbxml-tools" >
<link rel = "license" href = "https://creativecommons.org/licenses/by/4.0/" >
<link rel = "license" href = "https://opensource.org/licenses/MIT" >
<link rel = "stylesheet" href = "https://pushme-pullyou.github.io/tootoo14/js-14-07/style.css" >
</head>
<body>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js" ></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.0/showdown.min.js" ></script>
<!-- Menus generally -->
<script src = "https://pushme-pullyou.github.io/tootoo14/js-14-07/mnu-menu/mnu-menu.js" ></script>
<script src = "https://pushme-pullyou.github.io/tootoo14/js-14-07/pop-popup/pop-popup.js" ></script>
<script src = "https://pushme-pullyou.github.io/tootoo14/js-14-07/gat-github-access-token/gat-github-access-token.js" ></script>
<!-- File menu panel -->
<script src = "https://pushme-pullyou.github.io/tootoo14/js-14-07/fga-files-github-api/fga-files-github-api.js" ></script>
<script src = "https://pushme-pullyou.github.io/tootoo14/js-14-07/fob-file-open-basic/fob-file-open-basic.js" ></script>
<!-- Edit Menu -->
<!-- Settings menu -->
<script src = "https://pushme-pullyou.github.io/tootoo14/js-14-07/thm-theme/thm-theme.js" ></script>
<script src = "https://pushme-pullyou.github.io/tootoo14/js-14-07/tmp-template/tmp-template.js" ></script>
<script src="https://ladybug.tools/spider-2020/lib/gbxml/mas-menu-app-switch-2020-10-09.js"></script>
<script src = "" ></script>
<button id="expandButton" onclick="toggleNavPanel();" >☰</button>
<nav id="navPanel" >
<section class="secContent" >
<details open>
<summary class="sumMenuTitle" >Menu bar header</summary>
<div id="MASdivMenuAppSwitch" style="margin:1rem 0;" ></div>
<header>
<div id="MNUdivHeader" ></div>
</header>
</details>
<details open>
<summary class="sumMenuTitle" >GitHub folders & files</summary>
<div id="FGAdivMenuRepoFilesFolders" ></div>
<div id="GATdivGithubAccessToken" ></div>
</details>
<details>
<summary class="sumMenuTitle" >File menu</summary>
<div id=FOBdivFileOpenBasic ></div>
<div id=FOBdivFileSaveBasic ></div>
</details>
<details>
<summary class=sumMenuTitle >Settings menu</summary>
<div id=THMdivMenuThemeSelect ></div>
<div id=TMPdivTemplate ></div>
</details>
<footer>
<details>
<summary class=sumMenuTitle >Help menu</summary>
<div id="MNUdivFooterPopup" ></div>
</details>
<h1 onclick="navPanel.scrollTop=0;" style="cursor:pointer;text-align:center;" title="go to top of menu" >
<img src='https://ladybug.tools/artwork/icons_bugs/ico/spider.ico' height=24 >
</h1>
</footer>
</section>
</nav>
<main id="main" >
<div id="divContents" ></div>
</main>
<nav id="navDragMove" hidden >
<section id="secDragMove" >
<div id=divDragMoveHeader >
<span title="Move and resize me" >❦</span>
<div style=float:right; >
<button id=butPopupClose onclick="POP.onClickClose(butPopupClose);" >
×
</button>
</div>
</div>
<div id="divDragMoveContent" ></div>
<div id="divDragMoveFooter" ></div>
</section>
</nav>
<nav>
<a href="" id="aViewSource" target="_blank" >view source</a>
</nav>
<script>
MNU.description =
`
Scripts to help you view and manage <a href="http://gbxml.org" target="_blank">gbXML</a> files
`;
POP.version = document.head.querySelector( '[ name=version ]' ).content || "";
MNU.version = "";
POP.date = MNU.date = document.head.querySelector( '[ name=date ]' ).content || "";
POP.popup = "https://www.ladybug.tools/spider-gbxml-tools/spider-gbxml-viewer/v-0-17-02/popup.md";
POP.license = "https://www.ladybug.tools/spider/pages/license.md";
FOB.urlDefaultFile = "README.md";
FGA.branch = '/master/';
FGA.user = 'ladybug-tools';
FGA.repo = 'spider-gbxml-tools';
FGA.pathRepo = '';
//FGA.urlGitHubPage = "https://www.ladybug.tools/spider-gbxml-tools/"; //"https://pushme-pullyou.github.io/tootoo14/";
FGA.urlGitHubPage = "";
THM.themeUrlStorage = 'spider-gbxml-tools-ThemeUrl';
THM.cssBasic = "https://pushme-pullyou.github.io/tootoo14/js-14-07/style.css";
// For main menu header
MNU.urlSourceCode ="https://github.com/ladybug-tools/spider-gbxml-tools/";
MNU.homeText = ""; // "<img src='https://ladybug.tools/artwork/icons_bugs/ico/ladybug.ico' height=24 >";
MNU.homeTitle = ""; // "Ladybug Tools: free computer applications that support environmental design and education";
MNU.homeUrl = ""; // "https://www.ladybug.tools";
MNU.repoText= ""; // "<img src='https://ladybug.tools/artwork/icons_bugs/ico/spider.ico' height=24 >";
MNU.repoTitle= ""; // "Spider: 3D interactive analysis in your browser mostly written around the Three.js JavaScript library";
MNU.repoUrl= ""; // "https://www.ladybug.tools/spider/";
MNU.appText= ""; //"gbXML Tools";
MNU.appTitle = ""; //"Tools to help you find, load, examine and edit gbXML files - in large numbers and sizes";
MNU.appUrl = ""; //"https://www.ladybug.tools/spider-gbxml-tools/";
//MNU.urlSourceCodeImage="https://pushme-pullyou.github.io/github-mark-64.png";
//MNU.urlSourceCodeIcon=`<img src="${ MNU.urlSourceCodeImage }" height=18 >`;
MNU.footerPopupUrl = "https://www.ladybug.tools/spider/";
MNU.footerTarget = ""; //"target=_blank";
MNU.footerIssues = "https://github.com/ladybug-tools/spider-gbxml-tools/issues";
init();
function init() {
if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) { /* I hate having to add this */
divContents.style.width = getComputedStyle( divContents ).width;
divContents.style.height = getComputedStyle( divContents ).height;
divContents.setAttribute( 'scrolling', 'no' );
}
MASdivMenuAppSwitch.innerHTML = MAS.getAppSwitch();
THMdivMenuThemeSelect.innerHTML = THM.getMenuThemeSelect();
THM.init();
MNUdivHeader.innerHTML = MNU.getNavHeader();
FGAdivMenuRepoFilesFolders.innerHTML = FGA.getMenuFilesGithubApi();
FGA.getFiles(); // move to js?
GATdivGithubAccessToken.innerHTML = GAT.getMenuGitHubAccessToken();
FOBdivFileOpenBasic.innerHTML = FOB.getMenuFileOpenBasic();
//FOBdivFileSaveBasic.innerHTML = FOB.getMenuFileSaveBasic();
TMPdivTemplate.innerHTML = TMP.getMenuTemplate();
MNUdivFooterPopup.innerHTML = MNU.getNavFooterPopup();
POP.init();
//COR.init();
// let's go / FOB to load default and fire onload events
if ( !location.hash ) { location.hash = FOB.urlDefaultFile; } else { FOB.onHashChange(); }
aViewSource.href = MNU.urlSourceCode;
//POP.setPopupShowHide();
POP.popupId = butPopupClose;
if ( window.innerWidth < 640 || window.innerHeight < 640 ) { toggleNavPanel(); }
}
function toggleNavPanel() {// move to COR??
expandButton.classList.toggle( 'collapsed' );
navPanel.classList.toggle( 'collapsed' );
main.classList.toggle( 'collapsed' );
}
</script>
</body>
</html>