1/*Zum Seitenanfang*/ 2window.addEventListener('scroll', function () { 3 var backToTop = document.querySelector(".backToTop"); 4 if (window.scrollY > 200) { 5 if (backToTop) { 6 backToTop.style.display = 'block'; 7 } 8 } else { 9 if (backToTop) { 10 backToTop.style.display = 'none'; 11 } 12 } 13}); 14 15/*Boxeninhalte ein/ausklappen*/ 16function toggleContentLayoutBox(onr, head) { 17 var box = document.querySelector('#templateContentLayoutBox' + onr); 18 19 if (head.classList.contains('templateContentLayoutHeaderSelected')) { 20 head.classList.remove('templateContentLayoutHeaderSelected'); 21 box.style.display = 'none'; 22 } else { 23 head.classList.add('templateContentLayoutHeaderSelected'); 24 box.style.display = 'block'; 25 } 26} 27 28 29document.addEventListener('DOMContentLoaded', function () { 30 toggleResponsiveSite(false); 31}); 32 33function toggleResponsiveSite(click) { 34 var boxResponsive = document.querySelector(".boxresponsive"); 35 if (boxResponsive) { 36 if (!click) { 37 var hasCookie = getCookieTemplate("rismobiledesktopversion") !== ""; 38 document.querySelector(".boxresponsivemoblitiyon").style.display = hasCookie ? "none" : ""; 39 document.querySelector(".boxresponsivemoblitiyoff").style.display = hasCookie ? "" : "none"; 40 } 41 if (click) { 42 setCookieTemplate("rismobiledesktopversion", "true", document.querySelector(".boxresponsivemoblitiyon").offsetParent !== null ? 365 : -1); 43 location.reload(); 44 } 45 } 46} 47 48function setCookieTemplate(cname, cvalue, exdays) { 49 var d = new Date(); 50 d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); 51 var expires = "expires=" + d.toGMTString(); 52 document.cookie = cname + "=" + cvalue + "; " + expires; 53} 54function getCookieTemplate(cname) { 55 var name = cname + "="; 56 var ca = document.cookie.split(';'); 57 for (var i = 0; i < ca.length; i++) { 58 var c = ca[i]; 59 while (c.charAt(0) == ' ') c = c.substring(1); 60 if (c.indexOf(name) == 0) return c.substring(name.length, c.length); 61 } 62 return ""; 63} 64 65/*Veranstaltung ein/ausklappen*/ 66function toggleVeranstaltungBox(box, head) { 67 if (head.classList.contains('boxVeranstaltungFilterListHeaderSelected')) { 68 head.classList.remove('boxVeranstaltungFilterListHeaderSelected'); 69 box.style.display = 'none'; 70 } else { 71 head.classList.add('boxVeranstaltungFilterListHeaderSelected'); 72 box.style.display = 'block'; 73 } 74} 75 76/*Filtert die Veranstaltungsliste*/ 77function toggleVeranstaltungList(box, id) { 78 var entriesGroup = '.boxVeranstaltungFilterListGroup'; 79 var entries = '.boxVeranstaltungFilterEntry'; 80 var headers = '.boxVeranstaltungFilterListHeader'; 81 var selectedButtonsClass = 'boxVeranstaltungFilterButtonSelected'; 82 var selectedButtons = '.' + selectedButtonsClass; 83 84 if (box.classList.contains(selectedButtonsClass)) { 85 box.classList.remove(selectedButtonsClass); 86 } else { 87 box.classList.add(selectedButtonsClass); 88 } 89 90 var selectedButtonsElements = document.querySelectorAll(selectedButtons); 91 var entriesElements = document.querySelectorAll(entries); 92 var headersElements = document.querySelectorAll(headers); 93 94 if (selectedButtonsElements.length > 0) { 95 entriesElements.forEach(function (entry) { 96 entry.style.display = 'none'; 97 }); 98 99 headersElements.forEach(function (header) { 100 header.style.display = 'none'; 101 }); 102 103 selectedButtonsElements.forEach(function (button) { 104 var kategorie = '.' + button.className.split(' ')[1]; 105 document.querySelectorAll(entries + kategorie).forEach(function (entry) { 106 entry.style.display = 'block'; 107 }); 108 }); 109 110 document.querySelectorAll('div' + headers + ' ~ div' + entriesGroup + ' ' + entries + ':visible').forEach(function (entry) { 111 entry.parentElement.previousElementSibling.style.display = 'block'; 112 }); 113 114 } else {
115 entriesElements.forEach(function (entry) { 116 entry.style.display = 'block'; 117 }); 118 119 headersElements.forEach(function (header) { 120 header.style.display = 'block'; 121 }); 122 } 123} 124 125 126 127 128 129function initVATemplate() { 130 document.querySelectorAll(".mehrtext-limiter").forEach(function (element) { 131 if (element.offsetHeight < parseInt(getComputedStyle(element).maxHeight.replace("px", ""))) { 132 element.classList.remove("mehrtext-limiter"); 133 var toggle = element.parentElement.querySelector(".mehrtext-toggle"); 134 if (toggle) { 135 toggle.remove(); 136 } 137 } else { 138 var toggle = element.parentElement.querySelector(".mehrtext-toggle"); 139 if (toggle) { 140 toggle.addEventListener("click", function () { 141 element.classList.remove("mehrtext-limiter"); 142 toggle.remove(); 143 }); 144 } 145 } 146 }); 147 148 document.querySelectorAll(".mehrweniger-termine span").forEach(function (span) { 149 span.addEventListener("click", function () { 150 if (span.classList.contains("mehr-termine")) { 151 span.style.display = "none"; 152 document.querySelectorAll(".termin-hidden").forEach(function (hidden) { 153 hidden.classList.replace("termin-hidden", "termin-show"); 154 }); 155 span.parentElement.querySelector(".weniger-termine").style.display = "inline"; 156 } else if (span.classList.contains("weniger-termine")) { 157 span.style.display = "none"; 158 document.querySelectorAll(".termin-show").forEach(function (show) { 159 show.classList.replace("termin-show", "termin-hidden"); 160 }); 161 span.parentElement.querySelector(".mehr-termine").style.display = "inline"; 162 } 163 }); 164 }); 165} 166function init6629() { 167 document.querySelectorAll(".wzFilter").forEach(function (filter) { 168 var elem = filter.querySelector("input:first-of-type, select:first-of-type"); 169 if (elem) { 170 elem.addEventListener("keydown", function (e) { 171 if (e.keyCode === 13) { 172 filter.closest(".wzFilterList").querySelector("input[type=submit]").click(); 173 } 174 }); 175 } 176 }); 177} 178 179/*ACHTUNG - das ist nur hier damit es immer geladen wird */ 180document.addEventListener('DOMContentLoaded', function () { 181 document.querySelectorAll('.risTabs').forEach(function (tab) { 182 var ul = tab.querySelector('ul'); 183 var lis = ul.querySelectorAll('li'); 184 var divs = tab.querySelector("div > div").children; 185 186 lis.forEach(function (li) { 187 li.classList.remove('risTabsCurrent'); 188 }); 189 190 Array.from(divs).forEach(function (div) { 191 div.style.display = 'none'; 192 }); 193 194 lis[0].classList.add('risTabsCurrent'); 195 divs[0].style.display = 'block'; 196 197 lis.forEach(function (li, index) { 198 li.setAttribute('tabindex', 0); 199 200 li.addEventListener('click', function () { 201 updateTabs(tab, index); 202 }); 203 204 li.addEventListener('keyup', function (e) { 205 if (e.key === 'Enter') { 206 updateTabs(tab, index); 207 } 208 }); 209 }); 210 }); 211 212 function updateTabs(tab, index) { 213 var ul = tab.querySelector('ul'); 214 var lis = ul.querySelectorAll('li'); 215 var divs = tab.querySelector("div > div").children; 216 217 lis.forEach(function (li) { 218 li.classList.remove('risTabsCurrent'); 219 }); 220 221 lis[index].classList.add('risTabsCurrent'); 222 223 Array.from(divs).forEach(function (div, divIndex) { 224 div.style.display = divIndex === index ? 'block' : 'none'; 225 }); 226 } 227}); 228 229/*ACHTUNG - das ist nur hier damit es immer geladen wird */ 230document.addEventListener('DOMContentLoaded', function () { 231 document.querySelectorAll(".risAccordion").forEach(function (accordion) { 232 var activeItems = accordion.querySelectorAll(".risAccordionActiveItem");
233 activeItems.forEach(function (item) { 234 item.children[1].style.display = 'none'; 235 item.classList.remove("risAccordionActiveItem"); 236 }); 237 238 var headers = accordion.querySelectorAll(".risAccordionItem > div:first-of-type"); 239 headers.forEach(function (header) { 240 header.setAttribute("tabindex", 0); 241 var nextElement = header.nextElementSibling; 242 if (nextElement && nextElement.style.display === 'block') { 243 nextElement.style.display = ''; 244 } 245 246 header.addEventListener("click", function () { 247 toggleRisNewsAccordion(accordion, header.closest(".risAccordionItem")); 248 }); 249 250 header.addEventListener("keyup", function (e) { 251 if (e.key === "Enter") { 252 toggleRisNewsAccordion(accordion, header.closest(".risAccordionItem")); 253 } 254 }); 255 }); 256 257 if (!accordion.classList.contains("risAccordionClosedDefault")) { 258 if (activeItems.length > 1) { 259 activeItems.forEach(function (item, index) { 260 if (index > 0) { 261 item.classList.remove('risAccordionActiveItem'); 262 } 263 }); 264 } else if (activeItems.length === 0) { 265 var activeSet = accordion.querySelector(".risAccordionActiveSet"); 266 if (activeSet) { 267 activeSet.classList.add("risAccordionActiveItem"); 268 } else { 269 accordion.querySelector(".risAccordionItem").classList.add("risAccordionActiveItem"); 270 } 271 } 272 273 var firstActiveItem = accordion.querySelector(".risAccordionActiveItem"); 274 if (firstActiveItem) { 275 firstActiveItem.children[1].style.display = 'block'; 276 } 277 } 278 279 accordion.querySelectorAll(".risAccordionItem > div:nth-of-type(2)").forEach(function (element, index) { 280 var sectNumber = index + 1; 281 element.setAttribute("id", randomId(10, "sect" + sectNumber)); 282 element.setAttribute("role", "region"); 283 }); 284 285 accordion.querySelectorAll(".risAccordionItem > div:first-of-type").forEach(function (element, index) { 286 var accordionNumber = index + 1; 287 var closestItem = element.closest(".risAccordionItem"); 288 var bodyId = closestItem.querySelector(".risAccordionBody").id; 289 290 element.setAttribute("aria-controls", bodyId); 291 element.setAttribute("id", randomId(10, "accordion" + accordionNumber)); 292 293 if (closestItem.classList.contains("risAccordionActiveItem")) { 294 element.setAttribute("aria-expanded", "true"); 295 } else { 296 element.setAttribute("aria-expanded", "false"); 297 } 298 }); 299 300 accordion.querySelectorAll(".risAccordionItem > div:nth-of-type(2)").forEach(function (element) { 301 var closestItem = element.closest(".risAccordionItem"); 302 var headerId = closestItem.querySelector(".risAccordionHeader").id; 303 304 element.setAttribute("aria-labelledby", headerId); 305 }); 306 307 function toggleRisNewsAccordion(accordion, accordionItem) { 308 accordion.querySelectorAll("div > div:nth-of-type(2)").forEach(function (element) { 309 element.style.width = accordionItem.querySelector("div:nth-of-type(1)").offsetWidth + 'px'; 310 }); 311 312 accordionItem.classList.toggle("risAccordionActiveItem"); 313 var content = accordionItem.children[1]; 314 if (content.style.display === 'block') { 315 content.style.display = 'none'; 316 } else { 317 content.style.display = 'block'; 318 } 319 320 accordion.querySelectorAll("div > div:nth-of-type(2)").forEach(function (element) { 321 element.style.width = ''; 322 }); 323 324 var header = accordionItem.querySelector(".risAccordionHeader"); 325 if (accordionItem.classList.contains("risAccordionActiveItem")) { 326 header.setAttribute("aria-expanded", "true"); 327 } else { 328 header.setAttribute("aria-expanded", "false"); 329 } 330 } 331 });
332}); 333 334function randomId(length, prefix) { 335 return prefix + "_" + Math.random().toString(36).substring(2, length + 2) 336} 337 338Element.prototype.inlineStyle = function (prop) { 339 var styles = this.getAttribute("style"), 340 value; 341 if (styles) { 342 styles.split(";").forEach(function (e) { 343 var style = e.split(":"); 344 if (style[0].trim() === prop) { 345 value = style[1]; 346 } 347 }); 348 } 349 return value; 350}; 351 352 353 354/*rismodal*/ 355 356var msTextData = {}; 357msTextData["T-304115394"] = "Weiterleitung zur Meine Seite"; 358msTextData["T-304115395"] = "Die Meine Seite findest du ab sofort auf einer externen Seite,<br>aber keine Sorge, deine Zugangsdaten sind dieselben."; 359msTextData["T-304115396"] = "Das Intranet bleibt aber da wo du es gewohnt bist."; 360msTextData["T-304115397"] = "Abbrechen"; 361msTextData["T-304115398"] = "zur Meine Seite"; 362msTextData["T-304115399"] = "zum Intranet"; 363 364const linkToTextHandler = envurl + "system/web/getJsonText.ashx?group=pt_msmodal&sprachid=" + rissprachid; 365 366function transferComplete() { 367 msTextData = JSON.parse(this.responseText); 368} 369 370function showMSModal(deeplink, intranet) { 371 const req = new XMLHttpRequest(); 372 req.addEventListener("load", transferComplete); 373 req.open("GET", linkToTextHandler, false); 374 req.send(); 375 376 //backdrop 377 let modalBackdrop = document.createElement("div"); 378 modalBackdrop.classList.add("modalBackdrop"); 379 document.body.appendChild(modalBackdrop); 380 381 //modal 382 let modal = document.createElement("div"); 383 modal.classList.add("rismodal"); 384 modalBackdrop.appendChild(modal); 385 386 //modal-header 387 let modalheader = document.createElement("div"); 388 modalheader.classList.add("rismodalheader"); 389 modal.appendChild(modalheader); 390 391 //modal-body 392 let modalbody = document.createElement("div"); 393 modalbody.classList.add("rismodalbody"); 394 modal.appendChild(modalbody); 395 396 //modal-footer 397 let modalfooter = document.createElement("div"); 398 modalfooter.classList.add("rismodalfooter"); 399 modal.appendChild(modalfooter); 400 401 //überschrift 402 let ueberschrift = document.createElement("h3"); 403 ueberschrift.innerHTML = msTextData["T-304115394"]; 404 ueberschrift.classList.add("modalheader--text"); 405 modalheader.appendChild(ueberschrift); 406 407 //cancel button 408 let cancel = document.createElement("button"); 409 cancel.innerHTML = msTextData["T-304115397"]; 410 cancel.classList.add("cancelbtn", "modalbtn") 411 cancel.addEventListener("click", function () { 412 document.body.removeChild(modalBackdrop); 413 }); 414 modalfooter.appendChild(cancel); 415 416 //weiter button 417 let weiter = document.createElement("a"); 418 weiter.innerHTML = msTextData["T-304115398"]; 419 weiter.classList.add("weiterbtn", "modalbtn") 420 weiter.href = deeplink; 421 weiter.addEventListener("click", function () { 422 document.body.removeChild(modalBackdrop); 423 424 }); 425 modalfooter.appendChild(weiter); 426 427 //text 428 let infotext = document.createElement("p"); 429 infotext.innerHTML = msTextData["T-304115395"]; 430 infotext.classList.add("modalbody--text"); 431 modalbody.appendChild(infotext); 432 433 if (intranet) { 434 //wenn intranet dann zusätzlichen textblock mit button ausgeben 435 let intranettext = document.createElement("p"); 436 intranettext.innerHTML = msTextData["T-304115396"]; 437 intranettext.classList.add("modalbody--text"); 438 modalbody.appendChild(intranettext); 439 440 let weiterintranet = document.createElement("a"); 441 weiterintranet.innerHTML = msTextData["T-304115399"]; 442 weiterintranet.classList.add("weiterbtn", "modalbtn") 443 weiterintranet.href = "/system/web/intranet_raum.aspx"; 444 weiterintranet.addEventListener("click", function () { 445 document.body.removeChild(modalBackdrop); 446 }); 447 modalfooter.appendChild(weiterintranet); 448 } 449 450} 451 452document.addEventListener("DOMContentLoaded", function () { 453 document.querySelectorAll("a.piwik_download").forEach(function (value) { 454 let text = value.textContent; 455 if (text) { 456 let href = value.getAttribute("href"); 457 if (href) { 458 if (href.indexOf("?") >= 0) { 459 value.setAttribute("href", href + "&name=" + encodeURIComponent(text.trim())); 460 } else { 461 value.setAttribute("href", href + "?name=" + encodeURIComponent(text.trim())); 462 } 463 } 464 } 465 });
vendor: 3 bytes, line 466
466});
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.