-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy paththeo-io-2021-01-20.html
137 lines (85 loc) · 2.97 KB
/
theo-io-2021-01-20.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
<!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="theo-armour.github.io uses the GitHub API to provide access to all the current files hosted with GitHub Pages.">
<meta name="keywords" content="JavaScript,Markdown,GitHub,FOSS">
<meta name="date" content="2021-01-20">
<title>Theo Armour</title>
<!-- Copyright 2021 Theo Armour. MIT license -->
<link rel="stylesheet" href="./lib/style/style-2020-12-29.css">
<style>
:root {
/* --mnu-width: 15rem; */
--main-hue: 0;
/* 0 to 360 0=red 120=green 240=blue */
}
/* #MNUdivPopUp {
max-height: 40vh;
} */
</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="./lib/fox-file-open-xhr/v-2020-12-31/fox-file-open-xhr.js"></script>
<script src="./lib/gor-github-organization-repos/v-2020-12-31/gor-github-organization-repos.js"></script>
<script src="./lib/grv-github-repo-tree-view/v-2020-12-31/grv-github-repo-tree-view.js"></script>
<script src="./lib/mnu-menu/v-2020-12-30/mnu-menu.js"></script>
<details id=detNavMenu class="gmd-4">
<summary id=sumNavMenu class="summary-secondary gmd-1">show || hide menu</summary>
<nav id="navMenu" class="gmd-2">
<div id=MNUdivHeader></div>
<div id=GORdivDetails></div>
<div id=GRVdivDetails></div>
<div id=MNUdivFooter></div>
</nav>
</details>
<main>
<div id="divContentMain"></div>
</main>
<script>
init();
function init() {
const user = "theo-armour";
const repo = "theo-armour.github.io";
const branch = "master";
const path = "./"; //"https://theo-armour.github.io/"; //"../../../";
const defaultFile = "README.md";
const source = "https://github.com/theo-armour/theo-armour.github.io/";
const version = document.head.querySelector( "[ name=date ]" ).content;
const description = document.head.querySelector( "[ name=description ]" ).content;
FOX.path = GOR.path = GRV.path = MNU.path = path
MNU.init();
aGithub.href = source;
spnVersionInfo.innerHTML = version;
divDescription.innerHTML = description;
// FOX = File Open XHR
FOX.path = path;
FOX.defaultFile = defaultFile;
FOX.init();
// GOR = GitHub Organization Repositories
GOR.user = user;
GOR.repo = repo;
GOR.init();
// GRV = GitHub Repo treeView
GRV.user = user;
GRV.repo = repo;
GRV.branch = branch;
GRV.path = path;
GRV.defaultFile = defaultFile;
GRV.ignoreFolders = ["ace-it"];
GRV.init();
// let's get going!
GOR.getOrganization();
// 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 );
}
}
</script>
</body>
</html>