diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-02-16 23:29:02 -0600 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-02-16 23:36:39 -0600 |
commit | ca51ae66c40c0f040b81a5ed7b39602eb30c4ad2 (patch) | |
tree | 01546304cf59582de29fd12e3c639e3aa1174397 /_.erb.html | |
download | onpoint-0.1.tar.gz onpoint-0.1.zip |
Add version 0.1v0.1
Diffstat (limited to '_.erb.html')
-rw-r--r-- | _.erb.html | 57 |
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> |