diff --git a/.DS_Store b/.DS_Store
index ef70ba5..dfa0ca3 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/index.html b/index.html
index 4ee2d48..b8c88a2 100644
--- a/index.html
+++ b/index.html
@@ -107,8 +107,6 @@ https://pad.xpub.nl/p/HTML_Finale
-
-
- The origin of "archive" is complex, and its meaning has constantly been evolving since it first arose.
@@ -150,6 +148,8 @@ https://pad.xpub.nl/p/HTML_Finale
+
+
Arkeion:
@@ -2978,8 +2978,9 @@ popup_button.addEventListener("click", function (e) {
}
async function buildTOC() {
-
- class handlers extends window.Paged.Handler {
+ try {
+ console.log("toc");
+ class handlers extends window.Paged.Handler {
constructor(chunker, polisher, caller) {
super(chunker, polisher, caller);
}
@@ -2994,17 +2995,35 @@ popup_button.addEventListener("click", function (e) {
}
window.Paged.registerHandlers(handlers);
+
+ }
+ catch(err) {
+ }
+
+
}
/* If you want to put a loading content, it's here. It will show the print prompt when it's done loading */
async function preview() {
- await window.PagedPolyfill.preview();
- window.print();
+ try {
+ console.log("preview");
+ await window.PagedPolyfill.preview();
+ window.print();
+
+ }
+ catch(err) {
+ }
+ }
+ async function load_pagedjs() {
+ await $.getScript("https://unpkg.com/pagedjs/dist/paged.polyfill.js", function(data, textStatus, jqxhr) {});
+ preview();
+ buildTOC();
}
var printbutton = document.getElementById("printbutton");
printbutton.onclick = function(){
+ console.log("bla");
var boxes = document.getElementsByName("print");
for (var i=0; i