world.html 1.29 KB
Newer Older
1 2
{% extends "base.html" %}
{% load i18n %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
3 4 5 6
{% load staticfiles %}
{% block currentpagetitle %}World{% endblock %}
{% block homepage %}{% endblock %}
{% block hometop %}{% endblock %}
7
{% block world %}active{% endblock %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
8

9

10 11 12
{% block content %}
<h1>{% trans "Eduroam Worldwide" %}</h1>
<hr>
13

14
<div id="map_canvas" data-center-lat="{{ MAP_CENTER.0 }}" data-url="{% url worldPoints %}" data-city="{% static 'img/city.png' %}" data-country="{% static 'img/country.png' %}" data-group="{% static 'img/edugroup.png' %}" data-pin="{% static 'img/edupin.png' %}" data-center-lng="{{ MAP_CENTER.1 }}" style="width:100%; height:600px; overflow: hidden;"></div>
15 16 17
{% endblock %}


18 19 20 21
{% block extrahead %}
<link href="{% static 'css/mapescape.css' %}" rel="stylesheet">
{% endblock %}

22 23
{% block extrajs %}
<script type="text/javascript" src="{% static 'js/markerclusterer.js' %}"></script>
24
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3&amp;region={{COUNTRY_CODE}}{% if GOOGLE_MAPS_API_KEY %}&amp;key={{ GOOGLE_MAPS_API_KEY }}{% endif %}"></script>
25 26
<script type="text/javascript" src="{% static 'js/jquery.adapt_height.js' %}"></script>
<script type="text/javascript" src="{% static 'js/mapescape.js' %}"></script>
27 28
<script type="text/javascript" src="{% static 'js/world-map.js' %}"></script>
{% endblock %}