aboutsummaryrefslogtreecommitdiffstats
path: root/static/js
diff options
context:
space:
mode:
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");
+ }
+});
+