Widget:Css: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) (Test) |
(sinlosedit TEST 4) |
||
| (11 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | <includeonly><style type="text/css">@import "http://kamelopedia. | + | <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 TEST 4 | ||
| + | importedCSS[src] = true; | ||
| + | mw.loader.load( 'http://kamelopedia.net/index.php?title=MediaWiki:Skin/' + | ||
| + | decodeURIComponent(src) + '.css&action=raw&ctype=text/css', 'text/css' ); | ||
| + | } | ||
| + | |||
| + | importCSS("<!--{$src}-->"); | ||
| + | /* ]]> */ | ||
| + | </script> | ||
| + | <noscript> | ||
| + | <style type="text/css">@import "http://kamelopedia.net/index.php?title=MediaWiki:Skin/<!--{$src|escape:'urlpathinfo'}-->.css&action=raw&ctype=text/css";</style> | ||
| + | </noscript> | ||
| + | </includeonly> | ||