aboutsummaryrefslogtreecommitdiff
path: root/public/main.js
diff options
context:
space:
mode:
authorJoris2023-02-08 10:33:51 +0100
committerJoris2023-02-08 10:33:51 +0100
commit0aa9ef160fe3362a85a6e9b678d1b65756c8e3a0 (patch)
tree7ebbc0ce06ab4c644e1a4045c5cdb6232735a7fc /public/main.js
parent959c28f52e2ac1038f27110c88344fb321ed8e0e (diff)
Filter on read status
Diffstat (limited to 'public/main.js')
-rw-r--r--public/main.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/public/main.js b/public/main.js
deleted file mode 100644
index 29de235..0000000
--- a/public/main.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const sortedBooks = books.sort((a, b) =>
- a.authorsSort == b.authorsSort
- ? a.date > b.date
- : a.authorsSort > b.authorsSort)
-
-const view = h('div',
- { className: 'g-Books' },
- ...sortedBooks.map(book => h('img', { className: 'g-Book', src: book.cover })))
-
-document.body.appendChild(view)
-
-// Helpers
-
-function h(tagName, attrs, ...children) {
- let elem = document.createElement(tagName)
- elem = Object.assign(elem, attrs)
- for (const child of children) elem.append(child)
- return elem
-}