Permalink
Browse files

A very basic Sinatra app. And a very basic Google Map layout

  • Loading branch information...
DanielVartanov committed Nov 12, 2011
1 parent f17d3b2 commit 7ca5e2c874bddd32a6d8cc7f37d1c90c74e7adef
Showing with 50 additions and 0 deletions.
  1. +4 −0 Gemfile
  2. +19 −0 Gemfile.lock
  3. 0 views/index.haml
  4. +27 −0 views/layout.haml
View
@@ -0,0 +1,4 @@
+source :rubygems
+
+gem "sinatra"
+gem "haml"
View
@@ -0,0 +1,19 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ haml (3.1.3)
+ rack (1.3.5)
+ rack-protection (1.1.4)
+ rack
+ sinatra (1.3.1)
+ rack (>= 1.3.4, ~> 1.3)
+ rack-protection (>= 1.1.2, ~> 1.1)
+ tilt (>= 1.3.3, ~> 1.3)
+ tilt (1.3.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ haml
+ sinatra
View
No changes.
View
@@ -0,0 +1,27 @@
+!!! 5
+%html
+ %head
+ %title Сервис «Кайсы такси?». Показывает лучшее такси для выбранного маршрута.
+ %meta{name:"viewport", content:"width=device-width, initial-scale=1.0, user-scalable=no"}
+ %meta(charset="utf-8")
+ :css
+ html, body, #map_canvas {
+ margin: 0;
+ padding: 0;
+ height: 100%;
+ }
+ %script{type:"text/javascript", src:"http://maps.googleapis.com/maps/api/js?sensor=false"}
+ :javascript
+ function initialize() {
+ var latlng = new google.maps.LatLng(-34.397, 150.644);
+ var myOptions = {
+ zoom: 8,
+ center: latlng,
+ mapTypeId: google.maps.MapTypeId.ROADMAP
+ };
+ var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
+ }
+
+ %body{onload:"initialize()"}
+ #map_canvas
+ = yield

0 comments on commit 7ca5e2c

Please sign in to comment.