PageSourceSearch

https://www.akaoka.fr/wp-content/plugins/wp-travel-pro/inc/modules…/js/front-script.js?ver=7.4.0

js akaoka.fr collected 2026-10-10 00:53:57 UTC 1,646 bytes, 57 lines download raw bytes

1function openCity(evt, tabKey) {
2  var i, tabcontent, tablinks;
3  tabcontent = document.getElementsByClassName("tabcontent");
4  for (i = 0; i < tabcontent.length; i++) {
5    tabcontent[i].style.display = "none";
6  }
7  tablinks = document.getElementsByClassName("tablinks");
8  for (i = 0; i < tablinks.length; i++) {
9    tablinks[i].className = tablinks[i].className.replace(" active", "");
10  }
11  document.getElementById(tabKey).style.display = "block";
12  evt.currentTarget.className += " active";
13}
14
15
16
17jQuery(function ($) {
18    // Rating script starts.
19    $('.rate_label').hover(function () {
20        var rateLabel = $(this).attr('data-id');
21        $('.rate_label').removeClass('fas');
22
23        rate(rateLabel);
24    },
25        function () {
26            var ratedLabel = $('#wp_travel_rate_val').val();
27
28            $('.rate_label').removeClass('fas').addClass('far');
29            if (ratedLabel > 0) {
30                rate(ratedLabel);
31            }
32        });
33
34    function rate(rateLabel) {
35        for (var i = 0; i < rateLabel; i++) {
36            $('.rate_label:eq( ' + i + ' )').addClass('fas').removeClass('far');
37        }
38
39        for (j = 4; j >= i; j--) {
40            $('.rate_label:eq( ' + j + ' )').addClass('far');
41        }
42    }
43
44    // click
45    $('.rate_label').click(function (e) {
46        e.preventDefault();
47        $('#wp_travel_rate_val').val($(this).attr('data-id'));
48    });
49    // Rating script ends.
50
51    $(document).on('click', '.wp-travel-count-info', function (e) {
52        e.preventDefault();
53        $(".wp-travel-review").trigger("click");
54    });
55
56});
57

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.