Widget:AdventureStyle: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
function makeAdventureStyle() {
 
function makeAdventureStyle() {
         var styles = <!--{$style=|escape:javascript}-->.text().split("|");
+
         var styles = <!--{$style|escape:'javascript'}-->.text().split("|");
 
         for (s in styles)
 
         for (s in styles)
 
         {
 
         {

Version vom 22. Juni 2012, 07:42 Uhr

<script type="text/javascript"> function makeAdventureStyle() {

       var styles = .text().split("|");
       for (s in styles)
       {
           var style = styles[s];
           if (/[A-Za-z]/.test(style))
                $(document.body).addClass("adventure-style-"+style);
       }

}

makeAdventureStyle(); </script>