Skip to content

Commit

Permalink
Fixed bug in navigation button
Browse files Browse the repository at this point in the history
  • Loading branch information
midstar committed Jan 26, 2020
1 parent dc05604 commit 797802e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
z-index: 1; /* Sit on top */
}

#navigator div {
.navigation-button {
display:inline-block;
color: white;
font-weight: bold;
Expand All @@ -54,8 +54,8 @@
border-radius: 3px;
}

#navigator:hover div {
transform: scale(1.1);
.navigation-button:hover {
transform: scale(1.05);
cursor: pointer;
}

Expand Down Expand Up @@ -414,7 +414,7 @@
// No navigator on top level
if (parts.length > 0) {
var navigator = document.getElementById("navigator");
var links = "<div onclick='setLocation(\"\")'>&#8962;</div>";
var links = "<div class='navigation-button' onclick='setLocation(\"\")'>&#8962;</div>";
var url = "";
for (var i = 0 ; i < parts.length ; i++) {
part = parts[i];
Expand All @@ -423,7 +423,7 @@
// Last element is no link
links += " / " + part
} else {
links += " / <div setLocation(\"" + url + "\")" + part + "</div>";
links += " / <div class='navigation-button' onclick='setLocation(\"" + url + "\")''>" + part + "</div>";
}
}
navigator.insertAdjacentHTML("beforeend", links);
Expand Down

0 comments on commit 797802e

Please sign in to comment.