MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
document.head.appendChild(script); | document.head.appendChild(script); | ||
}); | }); | ||
function initFotoramaWhenReady() { | |||
if (typeof jQuery !== 'undefined' && jQuery().fotorama) { | |||
jQuery('.fotorama').fotorama(); | |||
} else { | |||
setTimeout(initFotoramaWhenReady, 100); // Wiederhole alle 100 ms | |||
} | |||
} | |||
initFotoramaWhenReady(); |