embed_map.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% macro menu_item(name, endpoint=None) -%}
  2. <li{% if request.endpoint == endpoint %} class="active"{% endif %}><a href="{{ url_for(endpoint) if endpoint else "#" }}">{{ name }}</a></li>
  3. {%- endmacro -%}
  4. <!doctype html>
  5. <html lang="fr">
  6. <head>
  7. {% block head -%}
  8. <meta charset="utf-8">
  9. <title>FFDN ISP Database</title>
  10. <!-- meta -->
  11. <link type="text/plain" rel="author" href="/../humans.txt" />
  12. <!-- icon
  13. <link rel="shortcut icon" href="favicon.ico"> -->
  14. <!-- css -->
  15. <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/bootstrap.css') }}">
  16. <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/bootstrap-responsive.css') }}">
  17. <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/jquery.ui.all.css') }}">
  18. <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/bootstrap-select.min.css') }}">
  19. <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/leaflet.css') }}">
  20. <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/flags.css') }}">
  21. <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/style.css') }}">
  22. <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/style_embed.css') }}">
  23. <script type="text/javascript" src="{{ url_for('static', filename='js/ol.js') }}"></script>
  24. {%- endblock %}
  25. </head>
  26. <body>
  27. <div id="wrap">
  28. <div id="map">
  29. <script type="text/javascript">
  30. var map = new ol.Map({
  31. target: 'map',
  32. layers: [
  33. new ol.layer.Tile({
  34. source: new ol.source.OSM()
  35. })
  36. ],
  37. view: new ol.View({
  38. center: ol.proj.fromLonLat([37.41, 8.82]),
  39. zoom: 4
  40. })
  41. });
  42. </script>
  43. </div>
  44. {% block script -%}
  45. <script type="text/javascript" src="{{ url_for('static', filename='js/jquery.js') }}"></script>
  46. <script type="text/javascript" src="{{ url_for('static', filename='js/bootstrap.js') }}"></script>
  47. <script type="text/javascript" src="{{ url_for('static', filename='js/bootstrap-select.min.js') }}"></script>
  48. <script type="text/javascript" src="{{ url_for('ispdb.site_embed_js') }}"></script>
  49. {%- endblock %}
  50. </body>
  51. </html>