-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeo-2022-2022-06-04.html
179 lines (119 loc) · 4.36 KB
/
theo-2022-2022-06-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
167
168
169
170
171
172
173
174
175
176
177
178
179
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="TooToo 2022 uses 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="2022-06-04">
<title>Theo</title>
<!-- Copyright 2022 Theo Armour. MIT license -->
<link id=CORstyle rel="stylesheet" href="./lib02/style/r-2022-02-22/style.css">
<style>
:root {
/* --mnu-width: 20rem; commit*/
--main-hue: 120;
--saturation:100%
/* 0 to 360 0=red 120=green 240=blue */
}
</style>
</head>
<body>
<div id=MNUdivShowHide></div>
<main id=main>
<nav>
<a id=aSource target="_blank"><img
src="https://pushme-pullyou.github.io/tootoo-2022/assets/icons/mark-github.svg"></a>
<a href=""><span id=spnTitle></span></a>
<button onclick=CKE.getSha()>putGH</button>
<label><input type=checkbox id=chkAutoSave onchange=CKE.autoSave();>save</label>
<!-- <label><input type="checkbox" id=inpEditable onchange=divOther.contentEditable=this.checked >editable</label> -->
<span id=spnMessage></span>
</nav>
<div id="divMainContent">
<div id=divEdit class="editor"></div>
</div>
<!-- <div id="divOther" contenteditable=true></div> -->
</main>
<script>
const COR = {
// Used by MNU ~ mnu-menu.js
description: document.head.querySelector( "[ name=description ]" ).content,
iconExternalFile: `<img class=infoImg src="https://pushme-pullyou.github.io/tootoo-2022/assets/icons/icon-external-link.svg">`,
iconGitHub: `<img src="https://pushme-pullyou.github.io/tootoo-2022/assets/icons/mark-github.svg">`,
iconInfo: `<img class=infoImg src="https://pushme-pullyou.github.io/tootoo-2022/assets/icons/noun_Information_585560.svg">`,
iconRepo: "❦",
title: document.title ? document.title : location.href.split( "/" ).pop().slice( 0, - 5 ).replace( /-/g, " " ),
urlSource: "https://github.com/theo-armour/2022/", ////////// remember to update
version: document.head.querySelector( "[ name=date ]" ).content,
// Used by FRX
defaultFile: "README.md",
pathContent: "https://theo-armour.github.io/2022/",
//pathContent: "./",
pathTooToo: "https://pushme-pullyou.github.io/tootoo-2022/",
//pathTooToo: "./",
// Used by GRV & CKE
user: "theo-armour",
repo: "2022",
branch: "main",
//defaultIgnoreFolders: [],
defaultIgnoreFolders: [ "archive", "lib-templates" ], // curated
filesAll: true,
filterFiles: [ "gif", "md", "html", "jpg", "LICENSE", "pdf", "png", "svg", "txt", "xlsx", "" ], // curated
ignoreFiles: [ "404.html", "index.html", "LICENSE", "readme.html" ], // curated
};
COR.scripts = [
"lib02/mnu-menu/r-2022-02-20/mnu-menu.js",
//"lib02/frx-file-read-xhr/r-2022-02-22/frx-file-read-xhr.js",
"lib02/grv-github-repo-tree-view/r-2022-02-13/grv-github-repo-tree-view.js",
"lib06/ckeditor5-34.1.0-uwwc7n1tkaz7/build/ckeditor.js",
"lib06/ckm-put-github/2022-06-04/ckm-ckeditor-markdown.js"
];
COR.loaded = 0;
COR.loading = function () {
COR.loaded++;
if ( COR.loaded === COR.scripts.length ) { init(); }
};
COR.loadLoaders = function () {
for ( let script of COR.scripts ) {
const load = document.body.appendChild( document.createElement( 'script' ) );
load.onload = COR.loading;
load.src = COR.pathTooToo + script;
}
};
COR.loadLoaders();
function init() {
// MNU => "Menu ~ mnu-menu.js"
MNU.init();
//MNU.getSample();
//sumNavMenu.hidden = true;
//MNUaSource.hidden = true;
//MNUspnVersion.hidden = true;
// FRX => "File Read XHR"
//FRX.init();
//FRX.getMenu();
//FRX.reader.onload = function (){}
//FRX.onHashChange();
// GRA
//GRA.init();
// GRV => "GitHub Repo View"
//GRV.getFiles = GRV.getFilesCurated;
//GRV.getFiles = GRV.getFilesAll;
GRV.init();
//GRVdivIntro.hidden = true;
//GRVsumRepo.hidden = true;
//GRVbutMenu.hidden = true;
GRVdet.open = true;
CKE.init();
// if running on server, keeps address bar pointed to latest dev
if ( location.protocol === "https:" ) {
window.history.pushState( "", "", "./" + location.hash );
COR.ignoreFolders = COR.defaultIgnoreFolders;
} else {
COR.ignoreFolders = [];
}
}
</script>
</body>
</html>