aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/resources
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-02-03 08:42:32 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-04 14:42:44 +0100
commit8a354b5d9156088b35031d861fd8a7ff31c55d9b (patch)
treed7ed029b4ec2fdb8e4a1ede36415a7ffed94b308 /core/src/main/resources
parentd68c95e31878acb01b93070ddd9014cd1ed70b26 (diff)
downloaddokka-8a354b5d9156088b35031d861fd8a7ff31c55d9b.tar.gz
dokka-8a354b5d9156088b35031d861fd8a7ff31c55d9b.tar.bz2
dokka-8a354b5d9156088b35031d861fd8a7ff31c55d9b.zip
Implementation of transformable navigation
Diffstat (limited to 'core/src/main/resources')
-rw-r--r--core/src/main/resources/dokka/scripts/navigationLoader.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/src/main/resources/dokka/scripts/navigationLoader.js b/core/src/main/resources/dokka/scripts/navigationLoader.js
index e69de29b..d79203f2 100644
--- a/core/src/main/resources/dokka/scripts/navigationLoader.js
+++ b/core/src/main/resources/dokka/scripts/navigationLoader.js
@@ -0,0 +1,12 @@
+onload = () => {
+ fetch(pathToRoot + "navigation")
+ .then(response => response.text())
+ .then(data => {
+ document.getElementById("sideMenu").innerHTML = data;
+ }).then(() => {
+ document.querySelectorAll(".overview > a").forEach(link => {
+ link.setAttribute("href", pathToRoot + link.getAttribute("href"))
+ console.log(link.attributes["href"])
+ })
+ })
+} \ No newline at end of file