-
Notifications
You must be signed in to change notification settings - Fork 1
/
spider-2021-09-04.html
166 lines (113 loc) · 4.79 KB
/
spider-2021-09-04.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
<!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="The Spider 2021 home page uses TooToo 2021 - a script that applies the GitHub API to provide access to all the current files in a repository hosted with GitHub Pages.">
<meta name="keywords" content="JavaScript,Markdown,GitHub,FOSS">
<meta name="date" content="2021-09-04">
<title>Spider</title>
<!-- Copyright 2021 Theo Armour. MIT license -->
<link rel="stylesheet" href="https://pushme-pullyou.github.io/tootoo-2021/lib/style/style-2021-07-12.css">
<style>
:root {
--mnu-width: 20rem;
--main-hue: 0;
/* 0 to 360 0=red 120=green 240=blue */
}
</style>
</head>
<body>
<!-- https://github.com/showdownjs/showdown -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.1/showdown.min.js"></script>
<script src="https://pushme-pullyou.github.io/tootoo-2021/lib/gra-github-repo-access/v-2021-07-13/gra-github-repo-access.js"></script>
<script src="https://pushme-pullyou.github.io/tootoo-2021/lib/fox-file-open-xhr/v-2021-08-11/fox-file-open-xhr.js"></script>
<script src="https://pushme-pullyou.github.io/tootoo-2021/lib/gor-github-organization-repos/v-2021-07-03/gor-github-organization-repos.js"></script>
<script src="https://pushme-pullyou.github.io/tootoo-2021/lib/grv-github-repo-tree-view/v-2021-09-04/grv-github-repo-tree-view.js"></script>
<script src="https://pushme-pullyou.github.io/tootoo-2021/lib/mnu-menu/v-2021-08-17/mnu-menu.js"></script>
<details id=detNavMenu class="gmd-4">
<summary id=sumNavMenu class="summary-nav gmd-1">☰ <span id=spnMenuHelp>show↓ || hide↑ menu</span></summary>
<nav id="navMenu" class="">
<div id=MNUdivHeader></div>
<div id=GRAdivDetails></div>
<div id=FOXdivDetails></div>
<div id=GORdivDetails></div>
<div id=GRVdivDetails></div>
<div id=MNUdivSample ></div>
<div id=MNUdivFooter></div>
</nav>
</details>
<main id=main>
<div id="divMainContent"></div>
</main>
<div id="divPopUp"></div>
<script>
const COR = {
user: "ladybug-tools",
repo: "spider-2021",
branch: "main",
path: "https://www.ladybug.tools/spider-2021/",
defaultFile: "README.md",
ignoreFolders: [],
ignoreFolders: ["archive", "lib", "lib3d", "lib-spider", "lib-spider-08", "lib-templates"],
filterFiles: [ "gif", "md", "html", "jpg", "license", "pdf", "png", "svg", "txt" ],
urlSource: "https://github.com/ladybug-tools/spider-2021/",
urlAssets: "https://pushme-pullyou.github.io/tootoo-2021/",
iconGitHub: `<img src="https://pushme-pullyou.github.io/tootoo-2021/lib/assets/icons/mark-github.svg">`,
iconInfo: `<img class=infoImg src="https://pushme-pullyou.github.io/tootoo-2021/lib/assets/icons/noun_Information_585560.svg">`,
iconExternalFile: `<img class=infoImg src="https://pushme-pullyou.github.io/tootoo-2021/lib/assets/icons/icon-external-link.svg">`,
title: document.title ? document.title : location.href.split( "/" ).pop().slice( 0, - 5 ).replace( /-/g, " " ),
version: document.head.querySelector( "[ name=date ]" ).content,
description: document.head.querySelector( "[ name=description ]" ).content,
};
init();
function init() {
//COR.path = COR.assets;
//COR.assets = COR.path;
MNU.infoBoxHtm = COR.description;
MNU.init();
//MNUdivSample.innerHTML = MNU.getSample();
//sumNavMenu.hidden = false;
//const htm = "Hello, World!";
//MNU.init( { description: htm } );
//MNUaSource.hidden = true;
//MNUspnVersion.hidden = true;
// FOX = Fox File Open XHR
FOX.init();
//FOXdivDetails.innerHTML = FOX.getMenu();
FOX.onHashChange();
//GOR.init();
//GORinpUser.value = COR.user + "/" + COR.repo;
//GOR.getOrganization();
//GORdet.open = true;
// GRV.info = `
// Right-click folder names to bring up the context menu to open and close multiple folders.<br>
// <br>
// File: grv-github-repo-tree-view.js<br>
// Name space: GRV<br>
// Release: 2021-09-04<br>
// `;
GRV.intro = `
<p>This menu enables you to display all folders and files in the ${ COR.title } GitHub repository in a tree view.</p>
${ MNU.addInfoBox( GRV.info ) }`;
//GRV.getFiles = GRV.getFilesAll;
GRV.getFiles = GRV.getFilesCurated;
GRV.init();
GRVdet.open = true;
GRVsumRepo.hidden = true;
GRV.getRepo();
//setTimeout( () => { GRVdet253.open = true }, 200 );
// if running on server, keeps address bar pointed to latest dev
//if ( !location.hash && location.protocol === "https:" ) {
if ( location.protocol === "https:" ) {
window.history.pushState( "", "", "./" + location.hash );
COR.path = "./";
} else {
COR.path = "../../../";
//COR.ignoreFolders = [];
}
}
</script>
</body>
</html>