diff options
author | Jayaram Pai | 2013-10-17 11:30:49 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-10-17 11:30:49 +0530 |
commit | 65768c10a2d099768308dcccac7918d2a637a409 (patch) | |
tree | ae519ac1c347dbceec8d294cfbab6f081823bc6e /website/static | |
parent | e8beb5b9703fba659ed40409e8dde1d1d6293b8e (diff) | |
download | SciPy2013-65768c10a2d099768308dcccac7918d2a637a409.tar.gz SciPy2013-65768c10a2d099768308dcccac7918d2a637a409.tar.bz2 SciPy2013-65768c10a2d099768308dcccac7918d2a637a409.zip |
Adding transit details for reaching_venue
Diffstat (limited to 'website/static')
-rw-r--r-- | website/static/css/main.css | 16 | ||||
-rw-r--r-- | website/static/js/custom.js | 67 |
2 files changed, 67 insertions, 16 deletions
diff --git a/website/static/css/main.css b/website/static/css/main.css index 9af9fb2..be49c88 100644 --- a/website/static/css/main.css +++ b/website/static/css/main.css @@ -24,8 +24,6 @@ display:inline-block; border-bottom: 3px solid #ffffff; } -#first{ -} #first h5, #sponsors h5, #last h5{ padding: 25px 0 0 0; font-weight: lighter; @@ -134,6 +132,20 @@ background: #f5f5f5; padding: 25px; } +#reach-scipy #fare{ + overflow-x: hidden; + overflow-y: scroll; + padding:5px; + height: 150px; + margin-top: 15px; + font-size: .8em; + background: #ffffff; + text-align: justify; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + -o-border-radius: 5px; + border-radius: 5px; +} #reach-scipy #map{ height: 400px; padding: 0; diff --git a/website/static/js/custom.js b/website/static/js/custom.js index 4fc7e08..31aaf27 100644 --- a/website/static/js/custom.js +++ b/website/static/js/custom.js @@ -1,36 +1,75 @@ $(document).ready(function(){ -var dadar = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=dadar+station&daddr=IIT+Main+Gate&hl=en&geocode=FZMqIgEdYXRXBCkdh7S_3M7nOzHZNplA5uMmIw%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=&sll=19.037454,72.908363&sspn=0.188885,0.308647&mra=ls&ie=UTF8&ll=19.037454,72.908363&spn=0.112729,0.100371&t=m&output=embed"></iframe>' +var airport = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Chhatrapati+Shivaji+International+Airport,+Andheri+East,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FQFLIwEdg-NXBCGuqHTEYBrMHilHKb2ZUMjnOzGuqHTEYBrMHg%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=4&oq=IIT&sll=19.099667,72.883154&sspn=0.094407,0.154324&mra=pd&ie=UTF8&t=m&ll=19.110379,72.895527&spn=0.029763,0.042183&output=embed"></iframe>'; +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 thane = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Thane+Railway+Station,+Station+Road+Kopri,+Thane,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FY7CJAEd_4BZBCkjQ1Rf37jnOzF9iI2abfvySQ%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=4&oq=IIT&sll=19.155222,72.944412&sspn=0.094375,0.154324&mra=pd&ie=UTF8&ll=19.155222,72.944412&spn=0.06341,0.058068&t=m&output=embed"></iframe>' +var dadar = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=dadar+station&daddr=IIT+Main+Gate&hl=en&geocode=FZMqIgEdYXRXBCkdh7S_3M7nOzHZNplA5uMmIw%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=&sll=19.037454,72.908363&sspn=0.188885,0.308647&mra=ls&ie=UTF8&ll=19.037454,72.908363&spn=0.112729,0.100371&t=m&output=embed"></iframe>'; +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 bandra = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Bandra+Terminus,+Naupada,+Bandra+East,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FWLeIgEdQHdXBCm3sivHGcnnOzF9Gr08r3UTdQ%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=0&oq=Bandra+ter&sll=19.155709,72.945614&sspn=0.094375,0.154324&mra=ls&ie=UTF8&ll=19.155709,72.945614&spn=0.079966,0.075124&t=m&output=embed"></iframe>' +var thane = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Thane+Railway+Station,+Station+Road+Kopri,+Thane,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FY7CJAEd_4BZBCkjQ1Rf37jnOzF9iI2abfvySQ%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=4&oq=IIT&sll=19.155222,72.944412&sspn=0.094375,0.154324&mra=pd&ie=UTF8&ll=19.155222,72.944412&spn=0.06341,0.058068&t=m&output=embed"></iframe>'; +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 tilak = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Lokmanya+Tilak+Terminus,+Pipeline+Road,+Kurla,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FSb7IgEdST5YBCGh8y-GNk5pZinbn-jom8jnOzGh8y-GNk5pZg%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=0&oq=Lokmany&sll=19.101053,72.879009&sspn=0.094406,0.154324&mra=ls&ie=UTF8&ll=19.101053,72.879009&spn=0.063015,0.045739&t=m&output=embed"></iframe>' +var bandra = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Bandra+Terminus,+Naupada,+Bandra+East,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FWLeIgEdQHdXBCm3sivHGcnnOzF9Gr08r3UTdQ%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=0&oq=Bandra+ter&sll=19.155709,72.945614&sspn=0.094375,0.154324&mra=ls&ie=UTF8&ll=19.155709,72.945614&spn=0.079966,0.075124&t=m&output=embed"></iframe>'; +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 central = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Mumbai+Central+station,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FVt4IQEd3SJXBCFssj0JqjsoWSmzxd6Nbs7nOzFssj0JqjsoWQ%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=&sll=19.0472,72.879606&sspn=0.188874,0.308647&mra=ls&ie=UTF8&t=m&ll=19.0472,72.879606&spn=0.163085,0.117661&output=embed"></iframe>' +var tilak = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Lokmanya+Tilak+Terminus,+Pipeline+Road,+Kurla,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FSb7IgEdST5YBCGh8y-GNk5pZinbn-jom8jnOzGh8y-GNk5pZg%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=0&oq=Lokmany&sll=19.101053,72.879009&sspn=0.094406,0.154324&mra=ls&ie=UTF8&ll=19.101053,72.879009&spn=0.063015,0.045739&t=m&output=embed"></iframe>'; +var tilak_description = 'The most convenient way to reach IITB is to take an auto rickshaw (Fare ~ Rs. 80).'; -var shivaji = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Chhatrapati+Shivaji+International+Airport,+Andheri+East,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FQFLIwEdg-NXBCGuqHTEYBrMHilHKb2ZUMjnOzGuqHTEYBrMHg%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=4&oq=IIT&sll=19.099667,72.883154&sspn=0.094407,0.154324&mra=pd&ie=UTF8&t=m&ll=19.110379,72.895527&spn=0.029763,0.042183&output=embed"></iframe>' +var central = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Mumbai+Central+station,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FVt4IQEd3SJXBCFssj0JqjsoWSmzxd6Nbs7nOzFssj0JqjsoWQ%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=&sll=19.0472,72.879606&sspn=0.188874,0.308647&mra=ls&ie=UTF8&t=m&ll=19.0472,72.879606&spn=0.163085,0.117661&output=embed"></iframe>'; +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 airport = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Chhatrapati+Shivaji+International+Airport,+Andheri+East,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FQFLIwEdg-NXBCGuqHTEYBrMHilHKb2ZUMjnOzGuqHTEYBrMHg%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=4&oq=IIT&sll=19.099667,72.883154&sspn=0.094407,0.154324&mra=pd&ie=UTF8&t=m&ll=19.110379,72.895527&spn=0.029763,0.042183&output=embed"></iframe>' +var shivaji = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?f=d&source=s_d&saddr=Chhatrapati+Shivaji+International+Airport,+Andheri+East,+Mumbai,+Maharashtra&daddr=IIT+Main+Gate&hl=en&geocode=FQFLIwEdg-NXBCGuqHTEYBrMHilHKb2ZUMjnOzGuqHTEYBrMHg%3BFRrUIwEdep5YBCldyp4n8sfnOzFZy8ueURQugA&aq=4&oq=IIT&sll=19.099667,72.883154&sspn=0.094407,0.154324&mra=pd&ie=UTF8&t=m&ll=19.110379,72.895527&spn=0.029763,0.042183&output=embed"></iframe>'; +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(){ var clicked = $(this).attr("id"); + var from = ''; switch(clicked){ - case "airport": clicked = airport; break; - case "dadar": clicked = dadar; break; - case "thane": clicked = thane; break; - case "bandra": clicked = bandra; break; - case "tilak": clicked = tilak; break; - case "central": clicked = central; break; - case "shivaji": clicked = shivaji; break; + 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); + /* Map loading display */ }); |