diff options
| author | Matthew Kosarek <matthew.kosarek@vention.cc> | 2021-02-21 18:32:04 -0500 |
|---|---|---|
| committer | Matthew Kosarek <matthew.kosarek@vention.cc> | 2021-02-21 18:32:04 -0500 |
| commit | ece2b67aa689aee0b881bac17a62c16e0469bc56 (patch) | |
| tree | d99ac1bc32eea8687c06b28b90f15e08ba05d390 /frontend/index.js | |
| parent | aee81cdf445c02032745f10a1904439e7eecaef7 (diff) | |
Proper support for favicons, rigid body intersections are no longer broken, palinko game
Diffstat (limited to 'frontend/index.js')
| -rw-r--r-- | frontend/index.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/frontend/index.js b/frontend/index.js index 0cbd896..f481bc6 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -1,10 +1,10 @@ /// <reference path="scripts/jquery-3.5.1.min.js"/> -function main() { - console.log('Document ready.'); - const lPathName = window.location.pathname.length > 1 && window.location.pathname.startsWith('/') ? window.location.pathname.substr(1) : window.location.pathname; - console.log(lPathName); - $('nav').find('a[href="' + lPathName + '"').addClass('nav-selected'); -} - -$(document).ready(main);
\ No newline at end of file +(function() { + function main() { + const lPathName = window.location.pathname.length > 1 && window.location.pathname.startsWith('/') ? window.location.pathname.substr(1) : window.location.pathname; + $('nav').find('a[href="' + lPathName + '"').addClass('nav-selected'); + } + + $(document).ready(main); +})()
\ No newline at end of file |
