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
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;