From 5cc459cd687a8bf5ac9a260dcf2ac66ca61805e5 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Tue, 7 Oct 2014 11:49:54 +0530 Subject: updated venue page --- static/data/iitb_map.pdf | Bin 0 -> 3788979 bytes static/website/css/main.css | 51 ++++++++++++++++++++++++ static/website/images/map-loader.gif | Bin 0 -> 847 bytes static/website/js/venue.js | 73 +++++++++++++++++++++++++++++++++++ static/website/templates/base.html | 2 + static/website/templates/venue.html | 61 ++++++++++++++++++++++++++--- 6 files changed, 182 insertions(+), 5 deletions(-) create mode 100644 static/data/iitb_map.pdf create mode 100644 static/website/images/map-loader.gif create mode 100644 static/website/js/venue.js diff --git a/static/data/iitb_map.pdf b/static/data/iitb_map.pdf new file mode 100644 index 0000000..e3d9a4e Binary files /dev/null and b/static/data/iitb_map.pdf differ diff --git a/static/website/css/main.css b/static/website/css/main.css index 7bfcebc..18c9087 100644 --- a/static/website/css/main.css +++ b/static/website/css/main.css @@ -257,3 +257,54 @@ body { #proposal-form textarea { height: 100px; } + +/* venue css */ +#reach-iitb{ + height: 400px; + margin-bottom: 25px; +} +#reach-iitb .side-nav{ + height: 455px; + overflow: hidden; + background: #ffffff; +} +#reach-iitb .nav-pills>li>a { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; +} +#reach-iitb #fare{ + overflow-x: hidden; + overflow-y: scroll; + padding:5px; + height: 150px; + margin-top: 15px; + font-size: .8em; + background: #f5f5f5; + text-align: justify; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + -o-border-radius: 5px; + border-radius: 5px; +} +#reach-iitb #map{ + height: 455px; + padding: 0; + background: #ffffff; + border: 1px solid #f5f5f5; +} +#map-loader{ + display: block; + margin: 220px auto 0; +} +#map { + position: relative; +} +#mappy{ + position: absolute; + top: 0; + right: 0; + left: 0; + bottom: 0; +} diff --git a/static/website/images/map-loader.gif b/static/website/images/map-loader.gif new file mode 100644 index 0000000..b13cbd1 Binary files /dev/null and b/static/website/images/map-loader.gif differ diff --git a/static/website/js/venue.js b/static/website/js/venue.js new file mode 100644 index 0000000..742727c --- /dev/null +++ b/static/website/js/venue.js @@ -0,0 +1,73 @@ +$(document).ready(function(){ + +var airport = ''; +var airport_description = 'Convenient way to reach IITB from airport is to BEST buses running on route no. 382 or 409. Alternatively you may take an auto directly to IIT which would cost you around 90 rs.(depending on traffic) or a taxi which would cost around 100 Rs.'; + +var dadar = ''; +var dadar_description = 'Go to Dadar central line (typically on platform 6 of central line). Buy a ticket to Kanjurmarg at the ticket counter located on a level above the platform. Board a ‘slow’ local train (typically from platforms 3-5) which goes atleast upto Thane. Get down at Kanjurmarg Station (exit from platform No.1 to Kanjurmarg west). Take an auto rickshaw to IITB (Fare ~ Rs. 30).'; + +var thane = ''; +var thane_description = 'Buy a ticket to Kanjurmarg (central line) at the local train ticket counter. Come to platform 1, 3 or 4. Board a ‘slow’ local train which goes atleast upto Dadar/CST. Get down at Kanjurmarg Station (exit from platform No.1 to Kanjurmarg west). Take an auto rickshaw to IITB (Fare ~ Rs. 30).'; + +var bandra = ''; +var bandra_description = 'Go to the Bandra terminus (BDTS), take an auto rickshaw to the Kurla Station (Fare ~ Rs. 40). Buy a ticket to Kanjurmarg (central line) at the local train ticket counter. Board a ‘slow’ local train (typically from platform No.1) which goes atleast upto Thane. Get down at Kanjurmarg Station (exit from platform No.1 to Kanjurmarg west). Take an auto rickshaw to IITB (Fare ~ Rs. 30).'; + +var tilak = ''; +var tilak_description = 'The most convenient way to reach IITB is to take an auto rickshaw (Fare ~ Rs. 80).'; + +var central = ''; +var central_description = 'Go to the Bombay Central Terminus (BCT) and walk to the Bombay Central local train. Buy a ticket to Kanjurmarg (central line) at the local train ticket counter. Board a ‘slow’ local train that halts at all stations on the line to Andheri/Borivali. Get down at Dadar (western line). Walk over to Dadar (central line) using an over-bridge. Further, kindly follow the instructions given earlier for Dadar (central line) to IITB.'; + +var shivaji = ''; +var shivaji_description = 'Buy a ticket to Kanjurmarg (central line) at the local train ticket counter. Come to the local train terminus (platforms 1-8, right of the long distance terminal). Board a ‘slow’ local train (typically from platforms 3-5) which goes atleast upto Thane. Get down at Kanjurmarg Station (exit from platform No.1 to Kanjurmarg west). Take an auto rickshaw to IITB (Fare ~ Rs. 30).'; + + /* Load map on link click */ + $(".side-nav li a").click(function(e){ + + var clicked = $(this).attr("id"); + var from = ''; + switch(clicked){ + case "airport": + clicked = airport; + from = 'From Airport'; + description = airport_description; + break; + case "dadar": + clicked = dadar; + from = 'From Dadar Station'; + description = dadar_description; + break; + case "thane": + clicked = thane; + from = 'From Thane Station'; + description = thane_description; + break; + case "bandra": + clicked = bandra; + from = 'From Bandra Terminus'; + description = bandra_description; + break; + case "tilak": + clicked = tilak; + from = 'From Lokmanya Tilak Terminus'; + description = tilak_description; + break; + case "central": + clicked = central; + from = 'From Mumbai Central'; + description = central_description; + break; + case "shivaji": + clicked = shivaji; + from = 'From Chhatrapati Shivaji Terminus'; + description = shivaji_description; + break; + } + $(".side-nav li").removeClass("active"); + $(this).closest('li').addClass("active"); + $("#from").html(from); + $("#description").html(description); + $("#mappy").html(clicked); + e.preventDefault(); + }); +}); diff --git a/static/website/templates/base.html b/static/website/templates/base.html index 64febfd..2faf94f 100755 --- a/static/website/templates/base.html +++ b/static/website/templates/base.html @@ -106,6 +106,8 @@ {% compress js %} +{% block javascript %} +{% endblock %} {% endcompress %} {% endblock %} -- cgit