1//Links in den Kursdetails in einem neuen Tab öffnen 2jQuery(document).ready(function () { 3 jQuery(".k-info a").filter(function () { 4 return this.hostname && this.hostname !== location.hostname; 5 }).each(function () { 6 jQuery(this).attr({ 7 target: "_blank", 8 }); 9 }); 10}); 11 12 13jQuery(document).ready(function () { 14 const $itemsWithDatepicker = jQuery("#katbeginndatvonfilter, #katbeginndatbisfilter"); 15 if (typeof $itemsWithDatepicker.datepicker == 'function') { 16 $itemsWithDatepicker.datepicker({dateFormat: 'dd.mm.yy'}); 17 } 18 19}); 20 21//Warenkorb - Badge mit Kursanzahl aktualisieren 22document.addEventListener("DOMContentLoaded", function () { 23 24 const xhr = new XMLHttpRequest(); 25 xhr.open("GET", window.location.origin + "/wp-content/kuferweb/webbasys/index.php?ajaxAction=wkCount", true); 26 xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); 27 28 xhr.onreadystatechange = function () { 29 if (xhr.readyState === 4 && xhr.status === 200) { 30 const responseXML = xhr.responseXML; 31 if (responseXML) { 32 const wkCounts = responseXML.getElementsByTagName("wkcount"); 33 if (wkCounts && wkCounts[0]) { 34 const count = wkCounts[0].textContent; 35 const elements = document.querySelectorAll(".kw-wk-b.badge"); 36 elements.forEach(element => { 37 element.innerHTML = count; 38 }); 39 } 40 } else { 41 console.log('no response for wkCount - check kufer.js'); 42 } 43 } 44 }; 45 xhr.send(); 46}); 47 48 49/* Kurs in den Warenkorb legen */ 50jQuery(document).ready(function () { 51 jQuery('#after-kurs-in-wk').modal('show'); //show modal 52 /* Animation Warenkorb */ 53 if (jQuery(".kw-wk-animation-trigger").is(":visible")) { //bei xs und sm ausschalten. 54 jQuery('.kw-add-to-cart').click(function (event) { 55 event.preventDefault(); 56 let link = jQuery(this).attr('href'); 57 ; 58 let btn_position = jQuery(this).offset(); 59 //let cart_position = jQuery(".wk-menu").position(); 60 let cart_position = jQuery(".wk-menu").offset(); 61 jQuery("body").append('<div class="kw-floating-cart"></div>'); 62 let floating_cart = jQuery('.kw-floating-cart'); 63 jQuery(floating_cart).css({ 64 'top': btn_position.top + 'px', 65 "left": btn_position.left + 'px' 66 }).fadeIn("slow").addClass('moveToCart'); //einblenden 67 jQuery(floating_cart).css({ 68 'top': cart_position.top + 10 + 'px', 69 "left": cart_position.left + 10 + 'px' 70 }); //animate 71 jQuery('html, body').animate({ 72 scrollTop: 0 73 }, 800); 74 setTimeout(function () { 75 jQuery('.kw-floating-cart').remove(); 76 location.href = link; 77 }, 900); 78 79 }); 80 } 81}); 82 83/** 84 * Ãffnet das Bootstrap-Collapse-Element mit der ID "kw-filter-kategorienvalues" 85 * automatisch beim Laden der Seite, sofern es existiert. 86 */ 87document.addEventListener("DOMContentLoaded", function () { 88 var element = document.getElementById("kw-filter-kategorienvalues"); 89 if (element && element.classList.contains("collapse")) { 90 new bootstrap.Collapse(element, { 91 toggle: false 92 }).show(); 93 } 94});
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.