aboutsummaryrefslogtreecommitdiffstats
path: root/static/js
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-20 16:17:47 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-20 16:17:47 +0800
commitd477d14d624bea299a62199799607155d43a4226 (patch)
treec82c424f77993b7138f01249c99cd3309612d012 /static/js
parent0005d0926d15d9034d8cb47da3861e5ab6dd02f1 (diff)
downloaddjango-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')
-rw-r--r--static/js/index.js17
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");
+ }
+});
+