1/** 2 * @author Jules Weigel, Karo3.de 3 * @copyright Copyright (C) Jules Weigel, Karo3.de 4 * @license Jules Weigel, Karo3.de 5 * 6 */ 7 8 9document.addEventListener('DOMContentLoaded', function () { 10 11 /*----------------------------------------------------Lösung für Double Click Problem beim iOS----------------------------------------------------*/ 12 let rsEventDetailsAs = document.querySelectorAll('.rs_event_detail a'); 13 rsEventDetailsAs.forEach(function (rsEventDetailsA){ 14 rsEventDetailsA.addEventListener('click', function (){ 15 window.location = rsEventDetailsA.getAttribute('href'); 16 }); 17 }); 18 19 /*----------------------------------------------------Nachricht schlieÃen----------------------------------------------------*/ 20 let messages = document.querySelectorAll('.alert'); 21 messages.forEach(function (message) { 22 let closes = message.querySelectorAll('.close'); 23 closes.forEach(function (close) { 24 close.addEventListener('click', function (){ 25 message.remove(); 26 }); 27 }); 28 }); 29 30 /*----------------------------------------------------active setzen von Elementen z.B. Suche----------------------------------------------------*/ 31 32 let activeBtns = document.querySelectorAll('.fx-active-btn'), 33 activateItem; 34 35 activeBtns.forEach(function (activeBtn){ 36 37 activeBtn.addEventListener('click', function (){ 38 39 if (activeBtn.hasAttribute('data-activate')) { 40 41 activateItem = document.querySelector('.' + activeBtn.getAttribute('data-activate') ); 42 43 if(typeof (activateItem) === 'undefined' && activateItem === null){ 44 activateItem = document.querySelector('[data-activate-item="' + activeBtn.getAttribute('data-activate') + '"]' ); 45 } 46 47 } else { 48 49 let nxtItem = activeBtn.nextElementSibling; 50 51 while (nxtItem) { 52 53 if (nxtItem.classList.contains('fx-active-item')) { 54 activateItem = nxtItem; 55 break; 56 } 57 58 nxtItem = nxtItem.nextElementSibling; 59 } 60 61 } 62 63 if(typeof (activateItem) != 'undefined' && activateItem != null){ 64 65 if (activateItem.classList.contains('active')) { 66 activateItem.classList.remove('active'); 67 } else { 68 activateItem.classList.add('active'); 69 } 70 71 } 72 73 }); 74 75 }); 76 77});
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.