diff options
author | root | 2014-04-10 10:33:04 +0530 |
---|---|---|
committer | root | 2014-04-10 10:33:04 +0530 |
commit | 9f1f14fbf1c50179ff0f4f2aa0975616ed4044e6 (patch) | |
tree | 95b90612cda885fe86061cfe77e0ca191e995f2d /js | |
parent | a37654c53a9c2ccf4980f65f9398c23688f089bd (diff) | |
download | scilab_textbook_companion-9f1f14fbf1c50179ff0f4f2aa0975616ed4044e6.tar.gz scilab_textbook_companion-9f1f14fbf1c50179ff0f4f2aa0975616ed4044e6.tar.bz2 scilab_textbook_companion-9f1f14fbf1c50179ff0f4f2aa0975616ed4044e6.zip |
major changes done, updating to github
Diffstat (limited to 'js')
-rwxr-xr-x | js/textbook_companion.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/textbook_companion.js b/js/textbook_companion.js index de0bbec..7602bdc 100755 --- a/js/textbook_companion.js +++ b/js/textbook_companion.js @@ -90,6 +90,24 @@ $('#edit-version').change(function() { } }); + +/* highlighting current filter [A-Z] of book search pages */ +var pathname = window.location.pathname; +var filter = pathname.charAt(pathname.length-1); +$filters = $("#filter-links a"); +$filters.each(function() { + + var current = $(this).attr("href"); + var current = current.charAt(current.length-1); + if(current == filter) { + $(this).css({ + "padding": "0 2px", + "color": "#000000", + "font-weight": "bolder", + "background-color": "#f5f5f5" + }); + } +}); }); |