Widget:Css: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(hmm, so?) |
|||
| Zeile 1: | Zeile 1: | ||
| − | <includeonly>< | + | <includeonly><script> |
| + | /* <![CDATA[ */ | ||
| + | if(typeof(importedCSS) == 'undefined') importedCSS = {}; | ||
| + | |||
| + | function importCSS(src) { | ||
| + | // prüfen,ob CSS bereits imprtiert wurde,falls ja --> return | ||
| + | if ( importedCSS[src] ) { | ||
| + | return; | ||
| + | } | ||
| + | // wird jetzt importiert,deshalb auf true setzen | ||
| + | importedCSS[src] = true; | ||
| + | mw.loader.load( 'http://kamelopedia.net/index.php?title=MediaWiki:Skin/' + | ||
| + | src + '.css&action=raw&ctype=text/css', 'text/css' ); | ||
| + | } | ||
| + | |||
| + | importCSS("<!--{$src}-->"); | ||
| + | /* ]]> */ | ||
| + | </script></includeonly> | ||