Skip to content

Commit ab9a4a0

Browse files
EthShawErikBoesen
authored andcommitted
Make [S] menu into magnifying glass and fix week numbers
Change the search/filter menu button to a magnifying glass instead of the letter S Week numbers from TBA are zero-indexed, so add 1 to the index to get the week number.
1 parent 8fdb8a3 commit ab9a4a0

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ a:hover { text-decoration: none; }
6666
background: white url('../img/exit-fullscreen.svg') no-repeat center;
6767
background-size: 70%;
6868
}
69+
#search-menu-button {
70+
background: white url('../img/search.svg') no-repeat center;
71+
background-size: 60%;
72+
}
6973
#about {
7074
position: fixed;
7175
top: 44px;

img/search.svg

Lines changed: 6 additions & 0 deletions
Loading

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<div id="toggles">
2929
<div onclick="toggleAbout()" class="tooltipped tooltipped-sw" aria-label="[Shift] View help and credits">?</div>
30-
<div onclick="toggleSearch()" class="tooltipped tooltipped-sw" aria-label="[S] Open Search/Filter Menu">S</div>
30+
<div onclick="toggleSearch()" id="search-menu-button" class="tooltipped tooltipped-sw" aria-label="[S] Open Search/Filter Menu">&nbsp;</div>
3131
<div onclick="toggleMarkers('team')" class="tooltipped tooltipped-sw" aria-label="[T] Toggle Team Markers">T</div>
3232
<div onclick="toggleMarkers('district')" class="tooltipped tooltipped-sw" aria-label="[D] Toggle District Markers">D</div>
3333
<div onclick="toggleMarkers('regional')" class="tooltipped tooltipped-sw" aria-label="[R] Toggle Regional Markers">R</div>

js/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ async function openInfo(marker) { // Create and show a Marker's InfoWindow
567567
if (parsed.week) {
568568
var weekItem = document.createElement('li');
569569
weekItem.innerHTML += '<strong>Week:</strong> ';
570-
weekItem.appendChild(document.createTextNode(parsed.week));
570+
weekItem.appendChild(document.createTextNode(parsed.week + 1));
571571
list.appendChild(weekItem);
572572
}
573573

0 commit comments

Comments
 (0)