PageSourceSearch

https://cdn.softairgames.net/modules/blockproductsbycountry//views/js/front.js

js softairgames.net collected 2026-10-01 14:15:39 UTC 4,718 bytes, 98 lines download raw bytes

1/**
2* NOTICE OF LICENSE
3*
4* This file is licenced under the Software License Agreement.
5* With the purchase or the installation of the software in your application
6* you accept the licence agreement.
7*
8* You must not modify, adapt or create derivative works of this source code.
9*
10*  @author    Active Design <[email protected]>
11*  @copyright 2017 Active Design
12*  @license   LICENSE.txt
13*/
14
15$(document).ready(function() {
16    if ($('body').attr('id') == 'product') {
17        if (typeof bpbc_blocked !== 'undefined' && bpbc_blocked && bpbc_blocked_text) {
18            if ($(document).find('.product-add-to-cart .add-to-cart').length) {
19                if (!$(document).find('.product-add-to-cart .add-to-cart').attr('data-has-tooltip')) {
20                    $(document).find('.product-add-to-cart .add-to-cart').tooltipster({
21                        animation: 'fade',
22                        delay: 200,
23                        theme: 'tooltipster-borderless',
24                        content: bpbc_blocked_text,
25                        maxWidth: 350,
26                    });
27                }
28                $(document).find('.product-add-to-cart .add-to-cart').tooltipster('open');
29                $(document).find('.product-add-to-cart .add-to-cart').attr('data-has-tooltip', true);
30            }
31            if ($(document).find('.box-cart-bottom').length) {
32                setTimeout(function() {
33                    if (!$(document).find('.box-cart-bottom').attr('data-has-tooltip')) {
34                        $(document).find('.box-cart-bottom').tooltipster({
35                            animation: 'fade',
36                            delay: 200,
37                            theme: 'tooltipster-borderless',
38                            content: bpbc_blocked_text,
39                            maxWidth: 350,
40                        });
41                    }
42                    $(document).find('.box-cart-bottom').tooltipster('open');
43                    $(document).find('.box-cart-bottom').attr('data-has-tooltip', true);
44                }, 500);
45            }
46        }
47    }
48    $(document).on('hover', '.ajax_block_product', function(e) {
49        var $this = $(this);
50        if ($this.find('.bpbc_product_list[data-message]').length && !$this.find('.product-image-container').attr('data-has-tooltip')) {
51            $this.find('.product-image-container').tooltipster({
52                animation: 'fade',
53                delay: 200,
54                theme: 'tooltipster-borderless',
55                content: '',
56                maxWidth: 350,
57                functionBefore: function(instance, helper) {
58                    instance.content($(helper.origin).closest('.ajax_block_product').find('.bpbc_product_list[data-message]').data('message'));
59                }
60            });
61            $this.find('.product-image-container').tooltipster('open');
62            $this.find('.product-image-container').attr('data-has-tooltip', true);
63        }
64    });
65    $(document).on('mouseleave', '.ajax_block_product', function(e) {
66        var $this = $(this);
67        if ($this.find('.bpbc_product_list[data-message]').length) {
68            $this.find('.product-image-container').tooltipster('close');
69        }
70    });
71    $(document).on('mouseover', '.modal-content .product-add-to-cart', function(e) {
72        var $this = $(this);
73        if ($this.closest('.modal-content').find('.bpbc_product_list[data-message]').length) {
74            if (!$this.closest('.modal-content').find('.add-to-cart').attr('data-has-tooltip')) {
75                $this.closest('.modal-content').find('.add-to-cart').tooltipster({
76                    animation: 'fade',
77                    delay: 200,
78                    theme: 'tooltipster-borderless',
79                    content: '',
80                    maxWidth: 350,
81                    functionBefore: function(instance, helper) {
82                        instance.content($(helper.origin).closest('.modal-content').find('.bpbc_product_list[data-message]').data('message'));
83                    }
84                });
85                $this.closest('.modal-content').find('.add-to-cart').tooltipster('open');
86                $this.closest('.modal-content').find('.add-to-cart').attr('data-has-tooltip', true);
87            } else {
88                $this.closest('.modal-content').find('.add-to-cart').tooltipster('open');
89            }
90        }
91    });
92    $(document).on('mouseleave', '.modal-content .product-add-to-cart', function(e) {
93        var $this = $(this);
94        if ($this.closest('.modal-content').find('.bpbc_product_list[data-message]').length) {
95            $this.closest('.modal-content').find('.add-to-cart').tooltipster('close');
96        }
97    });
98});

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.