PageSourceSearch

https://uogauoga.lt/res/js/frontend/country_popup.js?v=2026042111

js uogauoga.lt collected 2026-09-26 18:20:39 UTC 1,719 bytes, 54 lines download raw bytes

1
2/* PROJECT */
3//country popup
4// $(function () {
5//
6//     if( $("#countryModal").length > 0) {
7//         setTimeout(
8//             function () {
9//                 $("#countryModal").modal('show');
10//                 // $("#countryModal")
11//             },
12//             2000
13//         );
14//     }
15// });
16
17$(function() {
18    $(document).on('keyup', '#countryFilterListInput', function() {
19        var input, filter, ul, li, a, i, txtValue;
20        input = document.getElementById("countryFilterListInput");
21        filter = input.value.toUpperCase();
22        ul = document.getElementById("countryFilterList");
23        li = ul.getElementsByTagName("li");
24
25        for (i = 0; i < li.length; i++) {
26            a = li[i].getElementsByTagName("a")[0];
27            txtValue = a.textContent || a.innerText;
28            if (txtValue.toUpperCase().trim().indexOf(filter) === 0) { // from first letter
29            // if (txtValue.toUpperCase().indexOf(filter) > -1) {
30                li[i].style.display = "";
31            } else {
32                li[i].style.display = "none";
33            }
34        }
35    });
36
37    $(document).on('click', '.change-country', function(e) {
38        e.preventDefault();
39
40        var country_iso = $(this).data('country');
41        var country_name = $(this).text();
42
43        $('.change-country').removeClass('active');
44        $(this).addClass('active');
45
46        if (country_iso) {
47            $('#countryModal form input[name="country"]').val(country_iso);
48            $('#countryModal .act-country-select-btn').text(country_name);
49
50            $('#countryModal form input[type="submit"]').removeAttr('disabled');
51        }
52    });
53
54});

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.