From 9d7f82ff10947f64025787c4f686b91a767c1501 Mon Sep 17 00:00:00 2001 From: relikd Date: Thu, 29 Feb 2024 03:20:02 +0100 Subject: [PATCH] ref: styling --- index.html | 4 ++-- script.js | 6 +++--- style.css | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 7adf0c99..c906a83a 100644 --- a/index.html +++ b/index.html @@ -8,11 +8,12 @@ IPA Archive - + +

IPA Archive

@@ -29,7 +30,6 @@ -
JavaScript disabled?
diff --git a/script.js b/script.js index de6b981d..9cccb600 100644 --- a/script.js +++ b/script.js @@ -189,7 +189,7 @@ function randomIPA(specificId) { } const entry = entryToDict(DB[idx]); const output = document.getElementById('content'); - output.innerHTML = entriesToStr('.full', [idx]); + output.innerHTML = '

Random:

' + entriesToStr('.full', [idx]); output.firstElementChild.className += ' single'; output.innerHTML += renderTemplate(getTemplate('.randomAction'), { $IDX: idx }); @@ -317,11 +317,11 @@ function printIPA(offset) { if (!offset) { offset = 0; } const total = DB_result.length; - var content = '

Results: ' + total; + var content = '

Results: ' + total; if (previousSearch) { content += ' -- Go to: previous search'; } - content += '

'; + content += '

'; const page = Math.floor(offset / PER_PAGE); const pages = Math.ceil(total / PER_PAGE); if (pages > 1) { diff --git a/style.css b/style.css index d9fb4bc7..ad8223b0 100644 --- a/style.css +++ b/style.css @@ -76,8 +76,8 @@ h4 { width: initial; } .randomAction { + text-align: right; margin: 8px 20px; - float: right; } .randomAction button { margin-left: 8px;