1/*IF THIS MESSAGE IS NOT REMOVED SERVERMANAGER MAY OVERRIDE THE FILE*/ 2 3document.addEventListener("DOMContentLoaded", function () { 4 document.getElementsByTagName("head")[0].insertAdjacentHTML( 5 "beforeend", 6 "<link rel=\"alternate stylesheet\" type=\"text/css\" media=\"screen\" href=\"./fileadmin/templates/css/contrast.css\" />"); 7 8 var style = readCookie("style"); 9 if (style) { 10 setActiveStyleSheet(style); 11 } 12 else { 13 setActiveStyleSheet("normal.css"); 14 } 15 16}); 17 18 19function createCookie(name, value, days) { 20 if (days) { 21 var date = new Date(); 22 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 23 var expires = "; expires=" + date.toGMTString(); 24 } else { 25 expires = ""; 26 } 27 28 document.cookie = name + "=" + value + expires + "; path=/"; 29} 30 31function readCookie(name) { 32 var nameEQ = name + "="; 33 var ca = document.cookie.split(';'); 34 35 for (var i = 0; i < ca.length; i++) { 36 var c = ca[i]; 37 while (c.charAt(0) == ' ') { 38 c = c.substring(1, c.length); 39 } 40 if (c.indexOf(nameEQ) == 0) { 41 return c.substring(nameEQ.length, c.length); 42 } 43 } 44 return null; 45} 46 47function toggleContrastMode() { 48 console.log("style"); 49 var style = readCookie("style"); 50 if (style == "contrast.css") { 51 setActiveStyleSheet("normal.css"); 52 } 53 else { 54 setActiveStyleSheet("contrast.css"); 55 } 56} 57 58function setActiveStyleSheet(title) { 59 if (title == "contrast.css") { 60 $('link[href*="contrast.css"]').attr('rel', 'stylesheet'); 61 createCookie("style", "contrast.css", 365); 62 } 63 if (title == "normal.css") { 64 $('link[href*="contrast.css"]').attr('rel', 'alternate stylesheet'); 65 createCookie("style", "normal.css", 365); 66 } 67}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.