Skip to content

Commit

Permalink
navigation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
camillobruni committed Jan 25, 2024
1 parent 4d9914c commit 030b95a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 3 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,29 +194,27 @@ <h2>General Instructions</h2>
<li>Close other browser windows and tabs.</li>
<li>Use a fresh browser profile and a single window.</li>
</ul>
<li>While running Speedometer: </li>
<li>While running Speedometer:</li>
<ul>
<li>Keep the browser window in the foreground.</li>
<li>Do not use any other applications while Speedometer runs.</li>
</ul>
</ol>

<!-- TODO: fill in detailed instructions
<!-- TODO: fill in detailed instructions
<h2>Detailed browser-specific instructions</h2>
<h3>Chrome</h3>
<h3>Edge</h3>
<h3>Firefox</h3>
<h3>Safari</h3>
-->
</div>
--></div>
<div class="buttons section-footer">
<div class="button-row">
<a class="button" href="#home" title="Show main section.">Home</a>
</div>
</div>
</div>
</section>

</main>
</body>
</html>
3 changes: 2 additions & 1 deletion resources/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ section#details h1 {
margin-bottom: 10px;
}

section#about h1, section#instructions h1 {
section#about h1,
section#instructions h1 {
margin-top: 10px;
margin-bottom: 0px;
font-size: 25px;
Expand Down
3 changes: 2 additions & 1 deletion resources/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ class MainBenchmarkClient {
return;
}
} else {
if (hash === "#summary" || hash === "#details") {
// Redirect invalid views to #home directly.
if (hash === "#running" || hash === "#summary" || hash === "#details") {
this._setLocationHash("#home");
return;
}
Expand Down

0 comments on commit 030b95a

Please sign in to comment.