MediaWiki:Common.js: Unterschied zwischen den Versionen

Bei mehreren Navigationsleisten alle einklappen
Peter (Diskussion | Beiträge)
GMaps-Header
Zeile 126: Zeile 126:


  // END Dynamic Navigation Bars
  // END Dynamic Navigation Bars
// ============================================================
// ============================================================
// BEGIN Google Map für die Hauptseite
// Die GoogleMap-Skripte und Daten der Hauptseite sollen nur
// geladen werden, wenn die Hauptseite angeigt wird.
// Andernfalls kann es zu Performance-Beeinträchtigungen kommen.
var gmapsKey = "ABQIAAAAYl5x5zfH0-8RfVDbO2GleRQ5ntLEe5HLxwMlJNQ7SiutAfT6jRRGruDiBfvvl5Cdf4NbijxRi5aYBA";
// für skipperguide.de
if (document.URL.indexOf("Hauptseite") > 0 ) {
  document.write('<script src="http://maps.google.com/maps?v=2&file=api&key='+gmapsKey+'" type="text/javascript"></script>');
document.write('    <style type="text/css">');
document.write('    v\:* {');
document.write('      behavior:url(#default#VML);');
document.write('    }');
document.write('    </style>');
document.write('    <script type="text/javascript"> ');
document.write('  ');
document.write('    var map;');
document.write('    var geoXml = new document.write('GGeoXml("http://www.skipperguide.de/extension/GoogleEarthIntegration.php");');
document.write('    var toggleState = 1;');
document.write('');
document.write('function onLoad() {');
document.write('  if (GBrowserIsCompatible()) {');
document.write('    map = new GMap2(document.getElementById("map")); ');
document.write('    map.addControl(new GLargeMapControl());');
document.write('    map.addControl(new GMapTypeControl());');
document.write(' map.setCenter(new GLatLng(36,-20), 3);');
document.write('    map.addControl(new GLargeMapControl());');
document.write('    map.addOverlay(geoXml); ');
document.write('  }');
document.write('} ');
document.write('');
document.write('</script> ');
} // if Frontpage
// END import Onlyifediting-functions
  // ============================================================
  // ============================================================