MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Die Chroniken von Samay
Wechseln zu: Navigation, Suche
K (Der Seiteninhalt wurde durch einen anderen Text ersetzt: „Das folgende JavaScript wird für alle Benutzer geladen.: $(function () { $('#mw-mywiki-example').html('var map = L.map('map'…“)
K
Zeile 1: Zeile 1:
/* Das folgende JavaScript wird für alle Benutzer geladen. */
 
 
$(function () {
 
$(function () {
   $('#mw-mywiki-example').html('var map = L.map('map').setView([51.505, -0.09], 13);
+
 
 +
   var myElement = document.getElementById('samaymap');
 +
  myElement.innerHTML = 'var map = L.map('map').setView([51.505, -0.09], 13);
  
 
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
 
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
Zeile 9: Zeile 10:
 
L.marker([51.5, -0.09]).addTo(map)
 
L.marker([51.5, -0.09]).addTo(map)
 
     .bindPopup('A pretty CSS3 popup.<br> Easily customizable.')
 
     .bindPopup('A pretty CSS3 popup.<br> Easily customizable.')
     .openPopup();
+
     .openPopup();';
');
+
 
 
}());
 
}());

Version vom 31. August 2019, 15:02 Uhr

$(function () {

  var myElement = document.getElementById('samaymap');
  myElement.innerHTML = 'var map = L.map('map').setView([51.505, -0.09], 13);

L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);

L.marker([51.5, -0.09]).addTo(map)
    .bindPopup('A pretty CSS3 popup.<br> Easily customizable.')
    .openPopup();';

}());