Widget:Script: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
WiMu (Diskussion | Beiträge) K auakopf |
Änderung 530049 von Nachteule (Diskussion) rückgängig gemacht. |
||
| (7 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<includeonly><script> | <includeonly><script> | ||
/* <![CDATA[ */ | /* <![CDATA[ */ | ||
if(typeof(importedJS) == 'undefined') importedJS = {}; | |||
function importJS(src) { | function importJS(src) { | ||
// prüfen,ob JS bereits imprtiert wurde,falls ja --> return | // prüfen,ob JS bereits imprtiert wurde,falls ja --> return | ||
| Zeile 8: | Zeile 10: | ||
// wird jetzt importiert,deshalb auf true setzen | // wird jetzt importiert,deshalb auf true setzen | ||
importedJS[src] = true; | importedJS[src] = true; | ||
mw.loader.load( 'http://kamelopedia. | mw.loader.load( 'http://kamelopedia.net/index.php?title=MediaWiki:Skin/' + | ||
encodeURIComponent(src) + '&action=raw&ctype=text/javascript', 'text/javascript' ); | encodeURIComponent(src) + '.js&action=raw&ctype=text/javascript', 'text/javascript' ); | ||
} | } | ||
importJS("<!--{$src}-->"); | |||
/* ]]> */ | /* ]]> */ | ||
</script></includeonly> | </script></includeonly> | ||