aboutsummaryrefslogtreecommitdiffstats
path: root/page/static
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-06-23 23:38:55 +0800
committerWeitian LI <liweitianux@gmail.com>2014-06-23 23:38:55 +0800
commita64eb136b0d8710ff132551f149a39b3a45da1f9 (patch)
treefdfbbd1900a70a88c7dcf2c8d1d2e55b6a14faca /page/static
parent232743f73148e0f2f5b32cb1e049643bb0f281d2 (diff)
downloaddjango-skaschool-a64eb136b0d8710ff132551f149a39b3a45da1f9.tar.bz2
Updated traffic and introduction pages.
* Small updates to introduction page. * Updated traffic page: - traffic routes - new metro map * Used bootstrap modal plugin to view images for traffic page - traffic.js - traffic.css
Diffstat (limited to 'page/static')
-rw-r--r--page/static/css/traffic.css16
-rw-r--r--page/static/images/map-dongchuan-route.pngbin0 -> 569035 bytes
-rw-r--r--page/static/images/shmetro_map2014.jpgbin0 -> 529992 bytes
-rw-r--r--page/static/js/traffic.js25
4 files changed, 41 insertions, 0 deletions
diff --git a/page/static/css/traffic.css b/page/static/css/traffic.css
new file mode 100644
index 0000000..8b21f7a
--- /dev/null
+++ b/page/static/css/traffic.css
@@ -0,0 +1,16 @@
+/*
+ * traffic.css
+ * used with 'traffic.html' page
+ *
+ * 2014/06/23
+ */
+
+img.modal-images {
+ cursor: pointer;
+}
+
+// modal style
+@media (min-width: 768px) {
+ //
+}
+
diff --git a/page/static/images/map-dongchuan-route.png b/page/static/images/map-dongchuan-route.png
new file mode 100644
index 0000000..bca9a0c
--- /dev/null
+++ b/page/static/images/map-dongchuan-route.png
Binary files differ
diff --git a/page/static/images/shmetro_map2014.jpg b/page/static/images/shmetro_map2014.jpg
new file mode 100644
index 0000000..59756a4
--- /dev/null
+++ b/page/static/images/shmetro_map2014.jpg
Binary files differ
diff --git a/page/static/js/traffic.js b/page/static/js/traffic.js
new file mode 100644
index 0000000..34400c5
--- /dev/null
+++ b/page/static/js/traffic.js
@@ -0,0 +1,25 @@
+/*
+ * traffic.js
+ * used with 'traffic.html' page
+ *
+ * 2014/06/23
+ */
+
+/* bootstrap 3 built-in modal plugin */
+$(document).ready(function() {
+ $("img.modal-images").on("click", function() {
+ var src = $(this).attr('src');
+ var img_html = '<img src="'+src+'" class="img-responsive">';
+ var orig_html = $('#imageviewer-modal .modal-body').html();
+ // modal
+ $('#imageviewer-modal').modal('toggle');
+ // action
+ $('#imageviewer-modal').on('shown.bs.modal', function() {
+ $('#imageviewer-modal .modal-body').html(img_html);
+ });
+ $('#imageviewer-modal').on('hidden.bs.modal', function() {
+ $('#imageviewer-modal .modal-body').html(orig_html);
+ });
+ });
+});
+