-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgrv-github-repo-tree-view-2020-08.html
242 lines (136 loc) · 4.89 KB
/
grv-github-repo-tree-view-2020-08.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,user-scalable=no,minimum-scale=1.0,maximum-scale=1.0" />
<meta name="description"
content="Spider 2020 home page providing access to all the current Spider file viewers hosted using GitHub Pages.">
<meta name="keywords" content="JavaScript,GitHub,FOSS">
<meta name="version" content="2020-08-11">
<link rel="stylesheet" href="./lib/style/style-2020-08-11.css">
<style>
:root {
/* --main-hue: 206; 0 to 360 0=red 120=green 240=blue */
--main-hue: 240;
}
</style>
<title></title>
</head>
<body>
<script src="./lib/grv-github-repo-tree-view/grv-github-repo-tree-view-2020-08-11.js"></script>
<script src="./lib/fo-file-open/foo-file-open-object-2020-07-07.js"></script>
<script src="./lib/fo-file-open/foz-file-open-zip-2020-07-07.js"></script>
<script src="./lib/fo-file-open/fr-file-reader-2020-07-06.js"></script>
<details id=detNavMenu>
<summary id=sumNavMenu class="summary-secondary gmd-1">show || hide menu</summary>
<nav id="navMenu" class="gmd-2">
<header id="hdrTitle">
<div><a href="https://www.ladybug.tools" target="_blank">www.ladybug.tools</a>/</div>
<h2>
<a id=aGithub
href="https://github.com/ladybug-tools/spider-2020/" target="_top"
title="Source code on GitHub">
<img src="./assets/icons/octicon.svg">
</a>
<a id=aTitle href="" title="Click to reload this page">
Spider 2020
</a>
<span class="info">
<img class=infoImg src="./lib/assets/icons/noun_Information_585560.svg">
<span id="divDescription" class="infoTooltip gmd-5">
</span></span>
</h2>
</header>
<div id=divNavLog></div>
<details id=detFile>
<summary class="summary-primary gmd-1" title="Open files on your device: ">file menu</summary>
<div id=FRdivMenuFileReader></div>
<p>
<input type=file id=FRinpFile onchange=FR.readFile(this); accept="*">
</p>
<div id=FOOdivLog>to be reset</div>
<div id=FOZdivFileOpenZip></div>
<div id=divLog></div>
</details>
<details ontoggle="GRV.init()" open>
<!-- 'open' triggers a run on load -->
<summary class="summary-primary gmd-1" title="View selected items">repo files</summary>
<div class=divNavResize>
<p>Files you can load, view and experiment with:</p>
<div id=GRVdivGitHubRepoTreeView></div>
<br>
</div>
</details>
<!--
<details class=detNavMenu id=detView ontoggle="">
<summary class="sumPrimary gmd-1" title="View selected model aspects" >view menu</summary>
<div class=divNavResize >
<div id=VTdivViewTypes ></div>
<div id=VTdivAttributes></div>
</div>
</details>
<details class=detNavMenu id=detData ontoggle=JTV.init();JTV.onLoad(); >
<summary class="sumPrimary gmd-1" title="Browse the data in the file" >data menu</summary>
<div class=divNavResize >
<p>
<i>We need to decide what data should appear here & and how best to format it. Work-in-progress.</i>
</p>
<div id=JTHdivJsonTreeHelper ></div>
<div id=JTFdivJsonTreeFinder ></div>
<div id=JTEdivJsonTreeEdit ></div>
<div id=JTVdivJsonTreeView ></div>
<hr>
</div>
</details>
-->
<hr>
<footer>
<div title="go to top of menu" style=text-align:center;>
<a class=aDingbat href=javascript:navMenu.scrollTo(0,0);>
<img title="Your AEC 3D viewer happy place!"
src="https://ladybug.tools/artwork/icons_bugs/ico/spider.ico" height="24" width="24">
</a>
</div>
</footer>
</nav>
</details>
<main>
<div id="divContentMain">
<iframe id=ifr style="border-width: 0 1px 1px 0;height:100%;width:100%;"></iframe>
</div>
</main>
<div id="divPopUp" class="gmd-2">Welcome! </div>
<script>
divDescription.innerHTML = document.head.querySelector( "[ name=description ]" ).content;
GRV.urlApi = "https://api.github.com/repos/ladybug-tools/spider-2020/git/trees/master?recursive=1";
GRV.urlSource = "https://github.com/ladybug-tools/spider-2020/tree/master/";
GRV.urlViewer = "https://www.ladybug.tools/spider-2020/";
init();
function init() {
divPopUp.hidden = true;
window.addEventListener( "hashchange", onHashChange, false );
onHashChange();
if ( window.innerWidth < 640 || window.innerHeight < 500 ) {
} else {
detNavMenu.open = true
}
// if running on server, keeps address bar pointed to latest dev
if ( !location.hash && location.protocol === "https:" ) {
window.history.pushState( "", "", "./" );
}
}
function onHashChange() {
const path = "./"
if ( !location.hash ) {
ifr.src = path + "readme.html";
return;
}
if ( location.hash.toLowerCase().endsWith( ".md" ) ) {
ifr.src = path + "readme.html" + location.hash;
return;
}
ifr.src = path + location.hash.slice( 1 );
}
</script>
</body>
</html>