diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-10-01 08:42:01 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-10-01 08:42:01 +0200 |
commit | e04b73d516f1cb1e62c5c92ff77f31bdcd268a78 (patch) | |
tree | f50c365c45afd1b6ee273ab33f3e87ef588224b7 /pyaggr3g470r/templates/layout.html | |
parent | Merge branch 'master' of bitbucket.org:cedricbonhomme/pyaggr3g470r (diff) | |
download | newspipe-e04b73d516f1cb1e62c5c92ff77f31bdcd268a78.tar.gz newspipe-e04b73d516f1cb1e62c5c92ff77f31bdcd268a78.tar.bz2 newspipe-e04b73d516f1cb1e62c5c92ff77f31bdcd268a78.zip |
Improved home page with tabs.
Diffstat (limited to 'pyaggr3g470r/templates/layout.html')
-rw-r--r-- | pyaggr3g470r/templates/layout.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 5509cc4d..b02bdf07 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -167,5 +167,18 @@ deployed on Heroku or on a traditional server." /> <script src="{{ url_for('.static', filename = 'js/jquery.js') }}"></script> <script src="{{ url_for('.static', filename = 'js/bootstrap.js') }}"></script> <script src="{{ url_for('.static', filename = 'js/articles.js') }}"></script> + <script type="text/javascript" class="source"> + $(document).ready(function() { + if (window.location.href.indexOf("unread") > -1) { + $("#tab-unread").attr('class', "active"); + } + else if (window.location.href.indexOf("read") > -1) { + $("#tab-read").attr('class', "active"); + } + else { + $("#tab-all").attr('class', "active"); + } + }); + </script> </body> </html> |