MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Die Chroniken von Samay
Wechseln zu: Navigation, Suche
K
K
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
$(function () {
 
$(function () {
  
   var myElement = document.getElementById('samaymap');
+
   var myElement = document.getElementById('mw-mywiki-example');
   myElement.innerHTML = 'var map = L.map('map').setView([51.505, -0.09], 13);
+
   myElement.innerHTML = '<table>
 
+
<tr><td style="text-align: center; border: none">
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
+
<iframe src="example-basic.html" width="616" height="416"></iframe>
    attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
+
</td></tr>
}).addTo(map);
+
<tr><td style="text-align: center; border: none">
 
+
<small><a href="example-basic.html">See this example stand-alone.</a></small>
L.marker([51.5, -0.09]).addTo(map)
+
</td></tr></table>';
    .bindPopup('A pretty CSS3 popup.<br> Easily customizable.')
 
    .openPopup();';
 
  
 
}());
 
}());

Aktuelle Version vom 31. August 2019, 14:22 Uhr

$(function () {

  var myElement = document.getElementById('mw-mywiki-example');
  myElement.innerHTML = '<table>
<tr><td style="text-align: center; border: none">
<iframe src="example-basic.html" width="616" height="416"></iframe>
</td></tr>
<tr><td style="text-align: center; border: none">
<small><a href="example-basic.html">See this example stand-alone.</a></small>
</td></tr></table>';

}());