summaryrefslogtreecommitdiff
path: root/_.erb.html
diff options
context:
space:
mode:
Diffstat (limited to '_.erb.html')
-rw-r--r--_.erb.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/_.erb.html b/_.erb.html
new file mode 100644
index 0000000..0af9e10
--- /dev/null
+++ b/_.erb.html
@@ -0,0 +1,57 @@
+<!doctype html>
+<title>On Point - Scholastic Bowl Flashcards</title>
+<meta charset=utf8>
+<link rel=manifest href=manifest.json>
+
+<style>
+section:nth-of-type(2) {
+ width: 19em;
+ display: flex;
+ justify-content: space-between;
+}
+
+<%= style %>
+</style>
+
+<body>
+
+<template>
+<section>
+<%= card[:html] %>
+<%= reviewer[:html] %>
+</section>
+
+<hr>
+
+<section>
+<%= deck[:html] %>
+</section>
+
+<section>
+<%= settings[:html] %>
+</section>
+
+<section>
+<%= ie[:html] %>
+</section>
+</template>
+
+<script>
+<%= utils[:script] %>
+<%= storage[:script] %>
+
+// Hacks!
+let $loaded_p = (async () => {
+ $deck = await แนก.get("deck") || []
+ $settings = {...$default_settings, ...(await แนก.get("settings"))}
+})().then(() => {
+ let e = document.querySelector("template")
+ e.outerHTML = e.innerHTML
+})
+
+<%= card[:script] %>
+<%= reviewer[:script] %>
+<%= settings[:script] %>
+<%= deck[:script] %>
+<%= ie[:script] %>
+</script>