PageSourceSearch

https://fokus-komforta.ru/wp-content/plugins/table_finished_windows/js/finished_windows.js?ver=2.0.1

js fokus-komforta.ru collected 2026-10-08 13:38:27 UTC 1,453 bytes, 37 lines download raw bytes

1function openCity(evt, cityName) {
2    var parentBlock = evt.currentTarget.closest('.finished-window'); // Get the closest parent with class 'finished-window'
3    var tabcontent = parentBlock.getElementsByClassName("tabcontent");
4    var tablinks = parentBlock.getElementsByClassName("tablinks");
5    var tabmobile = parentBlock.getElementsByClassName("tabmobile");
6
7    // Hide all tabcontent elements within the parent block
8    for (var i = 0; i < tabcontent.length; i++) {
9        tabcontent[i].style.display = "none";
10    }
11
12    // Remove the active class from all tablinks within the parent block
13    for (var i = 0; i < tablinks.length; i++) {
14        tablinks[i].className = tablinks[i].className.replace(" active", "");
15    }
16
17    // Show the clicked tab content and add active class to the clicked tab link
18    var elements = parentBlock.getElementsByClassName(cityName);
19    for (var i = 0; i < elements.length; i++) {
20        elements[i].style.display = "block";
21    }
22    evt.currentTarget.className += " active";
23
24    // Remove the active class from all tabmobile within the parent block
25    for (var i = 0; i < tabmobile.length; i++) {
26        tabmobile[i].className = tabmobile[i].className.replace(" active", "");
27    }
28}
29
30
31// Select all elements with the class "defaultOpen"
32var elements = document.querySelectorAll('.defaultOpen');
33
34// Trigger a click event on each element
35elements.forEach(function(element) {
36  element.click();
37});

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.