Source

omw / omw / templates / trip.html

Full commit
{% extends "base.html" %}
{% block id %}trip{% endblock %}

{% block head %}
    <script type="text/javascript"
            src="http://maps.google.com/maps/api/js?sensor=false">
    </script>

    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

    <style type="text/css">
      html { height: 100% }
      body { height: 100%; margin: 0px; padding: 0px }
      #map_canvas { height: 100% }
    </style>

    <script type="text/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);
      }

    </script>
{% endblock %}

{% block onload %}initialize(){% endblock %}

{% block content %}
    <p>{{ trip['description'] }}</p>
    <div id="map_canvas">Fuck</div>
{% endblock %}