Megjegyzés: közzététel után frissítened kell a böngésződ gyorsítótárát, hogy lásd a változásokat.

  • Firefox / Safari: tartsd lenyomva a Shift gombot és kattints a Frissítés gombra a címsorban, vagy használd a Ctrl–F5 vagy Ctrl–R (Macen ⌘–R) billentyűkombinációt
  • Google Chrome: használd a Ctrl–Shift–R (Macen ⌘–Shift–R) billentyűkombinációt
  • Internet Explorer / Edge: tartsd nyomva a Ctrl-t, és kattints a Frissítés gombra, vagy nyomj Ctrl–F5-öt
  • Opera: Nyomj Ctrl–F5-öt
/* Embed an OSM map on div id="osmEmbed" exists
 * This script is loaded by https://tools.wmflabs.org/geohack/, see also [[Template:GeoTemplate]]
 */
function embedOpenStreetMap() {
    var osmTarget = document.getElementById('osmEmbed');
    if(osmTarget && osmTarget.dataset.geo){
        iframe = document.createElement('iframe');
        iframe.frameBorder = 0; // IE 6
        iframe.scrolling = 'no';
        iframe.src = '//tools.wmflabs.org/wiwosm/osm-on-ol/kml-on-ol.php'
            +'?lang=hu'
            +'&uselang=hu'
            +'&params=' + osmTarget.dataset.geo
            +(osmTarget.dataset.title ? '&title=' + osmTarget.dataset.title : '')
            +(window.location.protocol === 'https:' ? '&secure=1' : '');
        iframe.height = '100%';
        iframe.width = '100%';
        iframe.style.position = "relative";
        osmTarget.appendChild(iframe);
    }
}

function addStyle(text) {
	var s = document.createElement('style');
	s.type = 'text/css';
	s.rel = 'stylesheet';
	if (s.styleSheet) s.styleSheet.cssText = text //IE
	else s.appendChild(document.createTextNode(text + '')) //Safari sometimes borks on null
	document.getElementsByTagName('head')[0].appendChild(s);
}

window.onload = function() {

	/* Add row hover effect */
	addStyle("\n"+	".directory tr:hover		{background:#fdc !important;}\n" +
			".directory tr:nth-child(2n)	{background:#f5f5f5;}\n" +
			"@media screen and (min-width: 1220px) {\n"+
			"	#sidebar {width:460px !important;} #osmEmbed{height:460px !important}\n"+
			"}\n"
		);

	embedOpenStreetMap();
}