Parcourir la source

Fixed issue where urls were fetched in http while website was in https.

Harmonized policy : links and ressources are using same URL scheme as the website.
Jocelyn Delande il y a 10 ans
Parent
commit
1e831dbdfb
5 fichiers modifiés avec 8 ajouts et 11 suppressions
  1. 3 3
      assets/form.js
  2. 2 2
      assets/map.js
  3. 1 1
      views/base.tpl
  4. 1 4
      views/thanks.tpl
  5. 1 1
      views/wifi-form.tpl

+ 3 - 3
assets/form.js

@@ -9,8 +9,8 @@ $( document ).ready(function() {
 
     // Create map
     var map = L.map('map', {scrollWheelZoom: false}).setView([defaults.lat,defaults.lng], defaults.zoom);
-    L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
-        attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>',
+    L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
+        attribution: 'Map data &copy; <a href="//openstreetmap.org">OpenStreetMap</a> contributors, <a href="//creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="//mapbox.com">Mapbox</a>',
         maxZoom: 18
     }).addTo(map);
 
@@ -48,7 +48,7 @@ $( document ).ready(function() {
 
         // Geocoding
         var searchString = $('#search').val();
-        $.getJSON('http://nominatim.openstreetmap.org/search?limit=5&format=json&q='+searchString, function(data){
+        $.getJSON('//nominatim.openstreetmap.org/search?limit=5&format=json&q='+searchString, function(data){
 
             var items = [];
             $.each(data, function(key, val) {

+ 2 - 2
assets/map.js

@@ -28,8 +28,8 @@ $( document ).ready(function() {
 
     // Create map
     var map = L.map('map', {scrollWheelZoom: false}).setView([defaults.lat,defaults.lng], defaults.zoom);
-    L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
-        attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>',
+    L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
+        attribution: 'Map data &copy; <a href="//openstreetmap.org">OpenStreetMap</a> contributors, <a href="//creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="//mapbox.com">Mapbox</a>',
         maxZoom: 18
     }).addTo(map);
 

+ 1 - 1
views/base.tpl

@@ -48,7 +48,7 @@
 	à les consulter et les étudier : ne fournissez pas de données si vous n'avez
 	pas confiance en FAImaison.
         <br>
-        <a href="https://www.faimaison.net" target="_blank">FAImaison.net</a> -
+        <a href="//www.faimaison.net" target="_blank">FAImaison.net</a> -
         <a href="./legal">Vos droits d'accès et de rectification de vos données
 	personnelles</a>
     </p>

+ 1 - 4
views/thanks.tpl

@@ -9,13 +9,10 @@ Votre contribution a bien été enregistrée.
 Si vous voulez <strong>rester en
 contact</strong> avec l'association, nous rencontrer ou vous tenir informé, ça
 se passe sur
-<a href="https://www.faimaison.net/pages/contact.html">la page contact</a> de
+<a href="//www.faimaison.net/pages/contact.html">la page contact</a> de
 l'association.
 </p>
 
 <p>
 Vous pouvez consulter la <a href="../map">carte publique avec tous les autres contributions</a>.
 </p>
-
-
-

+ 1 - 1
views/wifi-form.tpl

@@ -19,7 +19,7 @@
 
 %else:
     <p>
-L'association <a href="http://faimaison.net">FAIMaison</a> expérimente à
+L'association <a href="//www.faimaison.net">FAIMaison</a> expérimente à
 grande échelle (Nantes et environs) la création d'un réseau sans-fil à
 longue portée à des fins, entre autres, de <em>partage</em> et
 <em>fourniture</em> d'<strong>accès à internet</strong>.