diff options
| author | Weitian LI <liweitianux@gmail.com> | 2014-04-20 16:17:47 +0800 | 
|---|---|---|
| committer | Weitian LI <liweitianux@gmail.com> | 2014-04-20 16:17:47 +0800 | 
| commit | d477d14d624bea299a62199799607155d43a4226 (patch) | |
| tree | c82c424f77993b7138f01249c99cd3309612d012 /static/js/index.js | |
| parent | 0005d0926d15d9034d8cb47da3861e5ab6dd02f1 (diff) | |
| download | django-skaschool-d477d14d624bea299a62199799607155d43a4226.tar.bz2 | |
* implemented the index page
  o base.html, navbar.html, favicon.html, index.html
  o added static files related to index page
* performed south migrations
* implemented registration templates
* implemented regiration views and pages
Diffstat (limited to 'static/js/index.js')
| -rw-r--r-- | static/js/index.js | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/static/js/index.js b/static/js/index.js new file mode 100644 index 0000000..1f955a2 --- /dev/null +++ b/static/js/index.js @@ -0,0 +1,17 @@ +/* + * js code for 'index.html' page + * + * Weitian LI + */ + +$(document).ready(function() { +    // add class "skaschool-home" to "body" +    if (! $("body").hasClass("skaschool-home")) { +        $("body").addClass("skaschool-home"); +    } +    // add class "masthead" to "main" +    if (! $("main").hasClass("masthead")) { +        $("main").addClass("masthead"); +    } +}); +  | 
