Skip to content

Commit

Permalink
Improve function name, add link to the main website
Browse files Browse the repository at this point in the history
  • Loading branch information
WUOTE committed May 9, 2024
1 parent 59b69b8 commit d622253
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
11 changes: 11 additions & 0 deletions public/assets/runfast-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,12 @@ body.toggle-hidden a#overlayVisibilityToggleButton {
body.toggle-hidden div.osOverlayHighlight {
display: none !important; /* overwrite the style="" element */
}

.icon-runfast {
background-image: url(/assets/runfast-logo.svg);
background-size: cover;
display: inline-block;
height: 15px;
width: 76px;
margin-top: 8%;
}
5 changes: 4 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@
</div>
<nav class="navbar nav bg-body-tertiary nav-wrapper navbar-dark bg-dark fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="#" onclick="goHome();"><img src="/assets/NoitamapLogo.svg" alt="Noitamap Logo"
<a class="navbar-brand" href="#" onclick="resetZoom();"><img src="/assets/NoitamapLogo.svg" alt="Noitamap Logo"
class="d-inline-block align-text-middle" /><span id="currentMapName">Noita map</span></a>
<a id="goToMainWebsiteButton" tabindex="0" href="https://runfast.stream" target="\_blank"
class="btn btn-outline-warning text-nowrap" data-bs-trigger="focus" role="button"><i
class="icon-runfast"></i></a>
<a id="overlayVisibilityToggleButton" tabindex="0" class="btn btn-outline-info text-nowrap"
data-bs-trigger="focus" role="button"><i class="bi bi-layers"></i> Toggle overlays</a>
<a id="shareButton" tabindex="0" class="btn btn-outline-success text-nowrap" data-bs-trigger="focus"
Expand Down
2 changes: 1 addition & 1 deletion public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ const appendAlert = (message, type) => {
};

// Reset zoom level upon click on the logo
function goHome() {
function resetZoom() {
os.viewport.goHome();
}

Expand Down

0 comments on commit d622253

Please sign in to comment.