-
Notifications
You must be signed in to change notification settings - Fork 0
/
tootoo13-2.html
231 lines (141 loc) · 5.77 KB
/
tootoo13-2.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
<!doctype html>
<html lang = "en" >
<head>
<meta charset = "utf-8" >
<meta name = "viewport" content= "width=device-width, initial-scale=1" >
<meta name = "description" content = "This menu is a component of a basic html content management script with sliding menu, css theme selection, Markdown to HTML, drag and drop file reading capability, access to frequently used pages and more" >
<meta name = "keywords" content = "JavaScript,GitHub,FOSS" >
<meta name = "date" content = "2019-02-24" >
<meta name = "release" content = "13.2.0" >
<title>TooToo</title>
<link rel="stylesheet" href="js-tootoo13-2/style.css">
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.0/showdown.min.js" ></script>
<script src="js-tootoo13-2/fob-file-open-basic.js" ></script>
<script src="js-tootoo13-2/mnu-menu.js" ></script>
<script src="js-tootoo13-2/ohc-on-hash-change.js" ></script>
<script src="js-tootoo13-2/sfm-selected-files-markdown.js" ></script>
<script src="js-tootoo13-2/thm-theme-select.js" ></script>
<script src="js-tootoo13-2/tmp-template.js" ></script>
<script>
//Copyright 2019 pushMe-pullYou authors. MIT License
MNU.description =
`
TooToo is a collection of basic plain-vanilla JavaScript scripts for content management on GitHub pages with sliding menu, CSS theme selection, Markdown to HTML, drag and drop file reading capability, access to frequently used pages and more
`;
MNU.currentStatusCore =
`
<h3>
TooToo
R${ document.head.querySelector( '[ name=release ]' ).content }
~
${ document.head.querySelector( '[ name=date ]' ).content }
</h3>
<p>${ MNU.description }</p>
<details>
<summary>Change log</summary>
<ul>
<li>2019-02-24 ~ R13.2.0 ~ </li>
<li>2019-02-12 ~ R13.1.1 ~ fix style issues. Update status text. Add localStorage them var. Add closer to rate limits popup.</li>
<li>2019-02-07 ~ R13.1.0 ~ refactor styles</li>
<li>2019-01-13 ~ edits in most most modules</li>
<li>2019-01-13 ~ Read me files have more content</li>
<li>2019-01-11 ~ Fork to new repo</li>
<li>2019-01-09 ~ R13 beginning to look OK.</li>
<!--
<li></li>
-->
</ul>
</details>
<details>
<summary>TooToo Content Manager</summary>
<p>This web page is built with:</p>
${ MNU.descriptionTooToo }
</details>
`;
//const uriDefaultFile = 'README.md';
OHC.uriDefaultFile = 'README.md';
THM.themeUrlStorage = 'tootoo13-2ThemeUrl';
THM.cssBasic = "js-tootoo13-2/style.css";
// For main menu header
MNU.urlSourceCode = "https://github.com/pushme-pullyou/tootoo13/";
MNU.homeText = "pushMe-pullYou";
MNU.homeTitle = "Very simple JavaScript files to help you explore and build new tools on GitHub.";
MNU.homeUrl = "https://pushme-pullyou.github.io";
MNU.repoText = "TooToo13";
MNU.repoTitle = "Basic html templates with sliding menu, css selection, markdown capability and frequently used pages";
MNU.repoUrl = "https://pushme-pullyou.github.io/tootoo13";
MNU.appText = ""; // "CMS";
MNU.appTitle = ""; //"Basic html content management script with sliding menu, css theme selection, Markdown to HTML, drag and drop file reading capability, access to frequently used pages and more";
MNU.appUrl = ""; //"https://pushme-pullyou.github.io/#tootoo-templates/hamburger-theme-cms/README.md";
//MNU.urlSourceCodeImage = "https://pushme-pullyou.github.io/github-mark-64.png";
//MNU.urlSourceCodeIcon = `<img src="${ MNU.urlSourceCodeImage }" height=18 style=opacity:0.5 >`;
MNU.footerUrl = "#";
MNU.footerTarget = ""; //"target=_blank";
MNU.footerIssues = "https://github.com/pushme-pullyou/tootoo13/issues";
// for parsing
OHC.user = 'pushme-pullyou';
OHC.repo = 'tootoo13';
OHC.pathRepo = '';
OHC.branch = '/master/';
// When running in dev folder
//OHC.urlGitHubPage = location.href.includes( OHC.repo ) ? '../' : 'https://' + OHC.repo + "/";
// When running in build repo
OHC.urlGitHubPage = "";
</script>
<nav id="navMenu" >
<header>
<div id="MNUdivHeader" ></div>
</header>
<details class=navSubMenu open >
<summary class=sumMenuTitle >File Menu</summary>
<section id=SFMsecPrototypes ></section>
<section id="OHCsecMenuRepoFilesFolders" ></section>
<section id=FOBsecFileOpenBasic ></section>
<section id=FILdivFileSave ></section>
</details>
<details class=navSubMenu open >
<summary class=sumMenuTitle >Settings</summary>
<section id=THMsecMenuThemeSelect ></section>
<section id=TMPsecMenuTemplate ></section>
</details>
<footer class=navSubMenu >
<section id="MNUdivFooter" ></section>
</footer>
<h1 onclick=navMenu.scrollTop=0; style=cursor:pointer;text-align:center; title="go to top of menu" > ❦ </h1>
</nav>
<div>
<button id="butHamburger" onclick=MNU.toggleNavLeft(); title="click here to hide this menu"> slide ☰ </button>
</div>
<nav id="navPopUp" >
<div id="divPopUpData" ></div>
<div id="divMessage" ></div>
</nav>
<div id="divContainer" >
<div id="divContents" ></div>
</div>
<script>
init();
function init() {
OHC.divContents = divContents;
MNUdivHeader.innerHTML = MNU.getNavHeader();
SFM.getMarkdownFileContents("prototypes.md",SFMsecPrototypes);
OHCsecMenuRepoFilesFolders.innerHTML = OHC.getMenuRepoFilesFolders();
FOBsecFileOpenBasic.innerHTML = FOB.getMenuFileOpenBasic( divContents, divPopUpData );
THMsecMenuThemeSelect.innerHTML = THM.getMenuThemeSelect();
TMPsecMenuTemplate.innerHTML = TMP.getMenuTemplate();
MNUdivFooter.innerHTML = MNU.getNavFooter(); // not essential
THM.init();
OHC.onHashChange();
//change to custom event with data passing via event details
//OHC.xhr.addEventListener( 'load', test, false );
//FOB.reader.addEventListener( 'load', test, false );
//document.body.addEventListener( 'onZipFileParse', test, false );
}
function test(){
//onsole.log( '', 6623 );
}
</script>
</body>
</html>