Skip to content

Commit

Permalink
add dump class
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarchie committed Sep 30, 2023
1 parent 2222dcc commit 125eefb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/_layout.erb.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,12 @@
Made with &#10084; in Colorado<br/>
&copy; <%= Time.now.strftime("%Y") %> <a href="https://github.com/jtarchie/followthesnow">Follow the Snow</a>
</footer>
<script>
document.querySelectorAll("td:not(:first-child)").forEach(function(element) {
if(element.innerText != "0”") {
element.classList.add("dump");
}
})
</script>
</body>
</html>
4 changes: 4 additions & 0 deletions pages/public/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ footer {
nav {
padding-left: var(--spacing);
padding-right: var(--spacing);
}

td.dump {
font-weight: bold;
}

0 comments on commit 125eefb

Please sign in to comment.