2 Commits 359ac48fab ... 0d405d1816

Auteur SHA1 Message Date
  Laurent Peuch 0d405d1816 [enh] dirty hack for embedding the map il y a 9 ans
  Laurent Peuch 43cc3fa2db [fix] anglish il y a 9 ans

+ 3 - 0
ffdnispdb/static/css/style_embed.css

@@ -0,0 +1,3 @@
+html, body {
+    background-color: #111;
+}

+ 1 - 0
ffdnispdb/templates/embed_map.html

@@ -19,6 +19,7 @@
     <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/leaflet.css') }}">
     <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/flags.css') }}">
     <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/style.css') }}">
+    <link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/style_embed.css') }}">
     {%- endblock %}
   </head>
 <body>

+ 3 - 3
ffdnispdb/templates/site_embed.js

@@ -274,9 +274,9 @@ function init_map() {
     legend.onAdd = function (map) {
         var div = L.DomUtil.create('div', 'info legend');
         div.innerHTML  = '<small>'+{{ _('Legend')|js_str }}+'&thinsp;:</small>&nbsp; ';
-        div.innerHTML += '<i style="background: #EAEAEA" title="'+{{ _('Members that might do Internet Cube one day (ask them!)')|js_str }}+'"></i> ';
-        div.innerHTML += '<i style="background: #E5CC17" title="'+{{ _('Members that offers VPN services')|js_str }}+'"></i> ';
-        div.innerHTML += '<i style="background: #D20000" title="'+{{ _('Members that offers Internet Cube')|js_str }}+'"></i> ';
+        div.innerHTML += '<i style="background: #EAEAEA" title="'+{{ _('FFDN members that might do Internet Cube one day (ask them!)')|js_str }}+'"></i> ';
+        div.innerHTML += '<i style="background: #E5CC17" title="'+{{ _('FFDN members providing VPN services')|js_str }}+'"></i> ';
+        div.innerHTML += '<i style="background: #D20000" title="'+{{ _('FFDN members providing Internet Cube')|js_str }}+'"></i> ';
         $(div).children('i').tooltip({container: 'body'});
 
         return div;