PageSourceSearch

https://airsofter.world/js/view_market.js

js airsofter.world collected 2026-10-01 13:07:30 UTC 3,463 bytes, 100 lines download raw bytes

1jQuery(document).ready(function ($) {
2    $('.button-show-more').click(function(e){
3        buttonUrl = $(this).attr('data-showMore-url');
4        buttonOffset = $(this).attr('data-showMore-offset');
5        buttonLimit = $(this).attr('data-showMore-limit');
6        dependentElement = $( $(this).attr('data-showMore-dependent-element') );
7        $.ajax({
8            url: buttonUrl,
9            type: 'POST',
10            data:{
11                offset: buttonOffset,
12                limit: buttonLimit,
13            },
14            success: function (data) {
15                //append result
16                dependentElement.append(data);
17                if( data.length ) {
18                    $('.button-show-more').attr('data-showMore-offset', parseInt(buttonOffset) + parseInt(buttonLimit) );
19                    if( dependentElement.find('li:last-child .place').text() != $('.button-show-more').attr('data-showMore-offset') ){
20                        $('.button-show-more').hide();
21                    }
22                }
23            },
24        });
25    });
26    if( $('.accordion').length ) {
27        $('.accordion').accordion({
28            heightStyle: "content",
29            active: true,
30            collapsible: true,
31            icons: { "header": "iconOpen", "activeHeader": "iconClosed" }
32        });
33    }
34
35    if( $('#selected_types').length ){
36        $('#selected_types input[type="checkbox"]').iCheck();
37    }
38
39    $('#selected_types input[value="low"]').on('ifChecked', function(event){
40        $('#selected_types input[value="high"]').iCheck('uncheck');
41        // alert(event.type + ' callback');
42    });
43    $('#selected_types input[value="high"]').on('ifChecked', function(event){
44        $('#selected_types input[value="low"]').iCheck('uncheck');
45    });
46
47    // $('#selected_types input[value="15"]').on('ifChecked', function(event){
48    //     $('#selected_types input[value="20"]').iCheck('uncheck');
49    // });
50    // $('#selected_types input[value="20"]').on('ifChecked', function(event){
51    //     $('#selected_types input[value="15"]').iCheck('uncheck');
52    // });
53
54    $("#search-remove").click(function(){
55        $('#productsearch-name').val('');
56        $('#selected_types').find('.icheckbox').removeClass('checked');
57        $('.search-box-product').hide();
58        $('.fount1').hide();
59        $.ajax({
60            url: $(this).attr('data-url'),
61            type: 'POST',
62            data:{},
63            success: function (data) {
64                //append result
65                console.log(data);
66            },
67        })
68
69    });
70    $("#shop-filter").click(function() {
71        $('#shop-filter').addClass('active-filter');
72        $('#shop-filter').tooltip('hide');
73        $('#airsoft-filter').removeClass('active-filter');
74    });
75    $("#airsoft-filter").click(function() {
76        $('#shop-filter').removeClass('active-filter');
77        $('#airsoft-filter').tooltip('hide');
78        $('#airsoft-filter').addClass('active-filter');
79    });
80
81    $(".airsofters-filter").click(function(){
82        $.ajax({
83            url: $(this).attr('data-url'),
84            type: 'GET',
85            data:{},
86            dataType: 'json',
87            success: function (data) {
88                //append result
89                if(data.html){
90                    $('.main-list-products').html(data.html);
91                }
92            },
93        })
94
95    });
96    $(function () {
97        $('[data-toggle="tooltip"]').tooltip()
98    });
99
100});

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.