summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-04-06 21:45:07 -0700
committerLouie S <louie@example.com>2023-04-06 21:45:07 -0700
commit532515d41a8e2ce914ac7c9e01c41044ebd62452 (patch)
tree8d651a5f0cc0cedd59578bfc450126246b17b592 /frontend
parentcdd588607bc63b65217f87f75ab22bad9fd0fc1c (diff)
Set correct index pagesHEADmaster
Diffstat (limited to 'frontend')
-rw-r--r--frontend/script.js3
-rw-r--r--frontend/style.css1
2 files changed, 3 insertions, 1 deletions
diff --git a/frontend/script.js b/frontend/script.js
index 6f4775e..20f5b08 100644
--- a/frontend/script.js
+++ b/frontend/script.js
@@ -9,7 +9,8 @@ function populateSearchBar(docset_json) {
// Add to docset-table
document.getElementById("docset-table").getElementsByTagName("tbody")[0].innerHTML += "<tr>" +
"<td scope=\"row\">" +
- "<button id=\"docset-" + docset_json["CFBundleIdentifier"] + "-parent\" class=\"docset-parent\" onclick=\"set_embed_page('" + docset_json["docset_root"] + "')\">" +
+ "<button id=\"docset-" + docset_json["CFBundleIdentifier"] + "-parent\" class=\"docset-parent\" onclick=\"set_embed_page('" + docset_json["docset_index"] + "')\">" +
+ "<img class=\"docset-icon\" src=\"" + docset_json["icon.png"] + "\"/>" +
docset_json["CFBundleName"] +
"</button>" +
"</td>" +
diff --git a/frontend/style.css b/frontend/style.css
index d3fa92c..dbaf66b 100644
--- a/frontend/style.css
+++ b/frontend/style.css
@@ -7,6 +7,7 @@ input {
}
.docset-parent {
+ text-align: left;
width: 100%;
}