var dinlOutput = ""; var result; // Ergebnis preg_match, wenn NULL ... var error = false; // ... wird diese Variable WAHR if (typeof dinlSnippetWidth == "undefined") { dinlSnippetWidth = "auto"; var dinlFeedWidth = dinlSnippetWidth; var dinlFeedWidthH1 = dinlSnippetWidth; var dinlFeedWidthH2 = dinlSnippetWidth; var dinlFeedWidthUl = dinlSnippetWidth; }else{ result = dinlSnippetWidth.match(/^[0-9]{1,4}$/i); if(result == null){ error=true; }else{ var dinlFeedWidth = dinlSnippetWidth+"px !important "; var dinlFeedWidthH1=(dinlSnippetWidth-12)+"px !important " var dinlFeedWidthH2=(dinlSnippetWidth-12)+"px !important " var dinlFeedWidthUl=(dinlSnippetWidth-22)+"px !important " } } if (typeof dinlBorder == "undefined") { dinlBorder = "#0b0257"; }else{ result = dinlBorder.match(/^#{1}[0-9a-f]{6}$/i); if(result == null){error=true;} } if (typeof dinlBackground == "undefined") { dinlBackground = "#fff6f1"; }else{ result = dinlBackground.match(/^#{1}[0-9a-f]{6}$/i); if(result == null){error=true;} } if (typeof dinlHeading == "undefined") { dinlHeading = "#0b0257"; }else{ result = dinlHeading.match(/^#{1}[0-9a-f]{6}$/i); if(result == null){error=true;} } if (typeof dinlCategory == "undefined") { dinlCategory = "#b03900"; }else{ result = dinlCategory.match(/^#{1}[0-9a-f]{6}$/i); if(result == null){error=true;} } if (typeof dinlFont == "undefined") { dinlFont = "#0b0257"; }else{ result = dinlFont.match(/^#{1}[0-9a-f]{6}$/i); if(result == null){error=true;} } if(error!=true){ dinlOutput += ""; dinlOutput += '
Please use only numbers for lengths without unit (it's always converted to pixel)
or hexadecimal colourcodes (with trailing '#' followed by six hexadecimal values for the red, green, and blue part of the color).