1// jQuery(document).ready(function ($) { 2 3// }); 4 5$(function () { 6 console.log("custom.js - Start"); 7 8 console.log("rivTranslationsCustom: ", rivTranslationsCustom); 9 10 console.log( 11 "rivTranslationsCustom.openInANewWindow: ", 12 rivTranslationsCustom.openInANewWindow 13 ); 14 15 // image captcha 16 console.log("cf7ic-icon-wrapper start 2"); 17 18 $(document).on("focus", "[name='kc_captcha']", function () { 19 console.log("cf7ic-icon-wrapper val: ", $(this).val()); 20 }); 21 22 /** 23 * Mapa centrum 24 */ 25 console.log("MAPPLIC - start v4"); 26 27 // Przeniesione do pliku mapplic-routes.js 28 29 // setTimeout(() => { 30 // $(".mapplic-level-switcher button").each(function () { 31 // $(this).prepend( 32 // "<span class='sr-only'>" + rivTranslationsCustom.goToLevel + "</span>" 33 // ); 34 // }); 35 // $(".mapplic-routes-submit, .mapplic-routes-wheelchair").attr( 36 // "tabindex", 37 // "-1" 38 // ); 39 // }, 1000); 40 41 $(document).on("click", ".mapplic-list-category", function () { 42 $(".mapplic-filter").hide(); 43 }); 44 45 $(document).on("click", ".mapplic-tag", function () { 46 $(".mapplic-filter").show(); 47 }); 48 49 $(document).on("change keyup ", ".mapplic-search-input", function () { 50 console.log("MAPPLIC - .mapplic-search-input val: ", $(this).val()); 51 52 if ($(this).val() == "") { 53 $(".mapplic-filter").show(); 54 } else { 55 $(".mapplic-filter").hide(); 56 } 57 }); 58 59 $(document).on("click", ".mapplic-search-clear", function () { 60 console.log("MAPPLIC - .mapplic-search-input clicked v2"); 61 $(".mapplic-filter").show(); 62 $(".mapplic-search-input").focus(); 63 }); 64 65 /** 66 * WCAG w cf7 67 */ 68 $(".wpcf7-submit").after( 69 '<button class="go-to-first-error">Idź do pierwszego bÅÄdu w formularzu</button>' 70 ); 71 72 $(document).on("click", ".go-to-first-error", function (e) { 73 e.preventDefault(); 74 const $form = $(this).closest("form"); 75 console.log("WCAG w cf7 - $form: ", $form); 76 77 // Znajdź pierwsze pole z bÅÄdem (CF7 5.8+) 78 79 let $firstError = $form.find(".wpcf7-not-valid").first(); 80 console.log("WCAG w cf7 - $firstError: ", $firstError); 81 82 if (!$firstError) return; 83 84 if ($firstError.is("span")) { 85 console.log("WCAG w cf7 - $firstError = span"); 86 87 const $innerField = $firstError 88 .find("input, textarea, select, button") 89 .first(); 90 91 console.log("WCAG w cf7 - $innerField: ", $innerField); 92 93 if ($innerField) { 94 $firstError = $innerField; 95 } 96 } 97 98 console.log("WCAG w cf7 - $firstError 2: ", $firstError); 99 100 if (!$firstError) return; 101 102 $firstError.get(0).scrollIntoView({ behavior: "smooth", block: "center" }); 103 104 $firstError.get(0).focus(); 105 // $firstError.focus(); 106 }); 107 108 // $(document).on("wpcf7invalid", function () { 109 // $(".go-to-first-error").attr("tabindex", "0"); 110 // }); 111 112 // target _blank 113 $('a[target="_blank"]').each(function () { 114 let title = $(this).attr("title"); 115 116 if (title) { 117 title += ", "; 118 } else { 119 title = ""; 120 } 121 122 $(this).attr("title", title + rivTranslationsCustom.openInANewWindow); 123 }); 124});
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.