I worked a bit on adding shading to the buttons to indicate which page you're on. This involved making edits to index.html in order to add classes to each of the pages, and then edits to biomaj.js in order to actually process and manipulate the color/backgroundColor of the buttons depending on the current page.
So, say you just open Biomaj-Watcher. The banner at the top looks like:
If you press on Banks, it opens the page and highlights the button:
Stats:
Schedule:
About:
Originally, Biomaj-Watcher has a similar effect when you click on one of the links; it highlights it. But when you press away from it (pressing on things on the page) the button becomes unhighlighted. This script keeps the button highlighted as long as you're in the page, regardless of pressing on other things within that page.
Hope you guys like the style and if you have any questions/suggestions please let me know.
Hey guys,
I worked a bit on adding shading to the buttons to indicate which page you're on. This involved making edits to index.html in order to add classes to each of the pages, and then edits to biomaj.js in order to actually process and manipulate the color/backgroundColor of the buttons depending on the current page.
So, say you just open Biomaj-Watcher. The banner at the top looks like:![screenshot from 2015-09-10 08 15 03](https://cloud.githubusercontent.com/assets/14098761/9789951/aaa519d8-5798-11e5-866d-03de22b0f3d0.png)
If you press on Banks, it opens the page and highlights the button:![screenshot from 2015-09-10 08 24 06](https://cloud.githubusercontent.com/assets/14098761/9789959/b9521422-5798-11e5-9b4f-457034664c02.png)
Stats:![screenshot from 2015-09-10 08 24 15](https://cloud.githubusercontent.com/assets/14098761/9789967/c2a8deac-5798-11e5-9811-afac7fd60392.png)
Schedule:![screenshot from 2015-09-10 08 24 25](https://cloud.githubusercontent.com/assets/14098761/9789971/c710e28c-5798-11e5-888a-216af654d5ef.png)
About:![screenshot from 2015-09-10 08 24 31](https://cloud.githubusercontent.com/assets/14098761/9789974/cab19760-5798-11e5-8f75-1159f95863bd.png)
Originally, Biomaj-Watcher has a similar effect when you click on one of the links; it highlights it. But when you press away from it (pressing on things on the page) the button becomes unhighlighted. This script keeps the button highlighted as long as you're in the page, regardless of pressing on other things within that page.
Hope you guys like the style and if you have any questions/suggestions please let me know.
Thanks, Mark