PageSourceSearch

https://bikingman.com/contenu/plugins/wpbot-pro-master/js/qcld-wp-chatbot-click-events.js?ver=15.6.7

js bikingman.com collected 2026-09-24 22:40:50 UTC 4,205 bytes, 111 lines download raw bytes

1jQuery(document).ready(function($) {
2        //bargain initiate function
3        $(document).on('click', '.woo_minimum_accept_price-bargin', function(e){
4
5    
6
7            var product_id = $(this).attr('product_id');
8            var variation_id = '';
9    
10            var variable_check = $('.woo_minimum_accept_price-bargin').parent().parent().find('.variation_id');
11    
12            if($( variable_check ).hasClass( "variation_id" )){
13    
14                var variation_id = $('.variation_id').val();
15    
16                if( variation_id == '0' || variation_id == '' ) {
17                    alert('Please select some product options before adding this product to your cart.');
18                    return false;
19                }
20    
21            }
22            
23            globalwpw.wildCard = 9;
24            globalwpw.bargainStep = 'welcome';
25            globalwpw.bargainId = product_id;
26            globalwpw.bargainVId = variation_id;
27            globalwpw.bargainPrice = '';
28            localStorage.setItem("wildCard",  globalwpw.wildCard);
29            localStorage.setItem("wildCard",  globalwpw.bargainStep);
30            localStorage.setItem("wildCard",  globalwpw.bargainId);
31            localStorage.setItem("wildCard",  globalwpw.bargainPrice);
32            localStorage.setItem("bargainVId",  globalwpw.bargainVId);
33            
34            if(!localStorage.getItem('shopper')){
35                $.cookie("shopper", "Guest", { expires : 365 });
36                localStorage.setItem('shopper',"Guest");
37            }
38            globalwpw.ai_step==1;
39            
40            
41            if($('.active-chat-board').length>0){
42                wpwTree.bargain();
43        
44            }else{
45                $('#wp-chatbot-ball').trigger('click');
46                
47                setTimeout(function(){
48                    wpwTree.bargain('');
49                }, globalwpw.settings.preLoadingTime)
50                    
51                
52            }
53            
54        });
55    
56        $(document).on( 'click', '.qcld-goodbye-transcript-confirm', function(e) {
57           
58            e.preventDefault();
59            var shopperChoice=$(this).text();
60            wpwTree.goodbye(shopperChoice)
61            wpwMsg.shopper_choice(shopperChoice);
62            wpwAction.bot( shopperChoice );
63        } );
64    
65        // bargain confirm ...
66        $(document).on('click','.qcld-chatbot-bargin-confirm-btn',function (e) {
67            e.preventDefault();
68            var shopperChoice=$(this).text();
69            wpwMsg.shopper_choice(shopperChoice);
70            var actionType=$(this).attr('confirm-data');
71            if(actionType=='yes'){
72    
73                globalwpw.bargainStep = 'confirm';
74                localStorage.setItem("wildCard",  globalwpw.bargainStep);
75                wpwTree.bargain();
76            } else if(actionType=='no'){
77                globalwpw.bargainStep = 'disagree';
78                localStorage.setItem("wildCard",  globalwpw.bargainStep);
79                globalwpw.bargainLoop = 0;
80                localStorage.setItem("wildCard",  globalwpw.bargainLoop);
81                wpwTree.bargain();
82            }
83        });
84    
85        $(document).on('click','.qcld-bargin-bot-confirm-add-to-cart',function (e) {
86            e.preventDefault();
87            var shopperChoice=$(this).text();
88            wpwMsg.shopper_choice(shopperChoice);
89    
90            globalwpw.bargainId = localStorage.getItem('bargainId');
91            globalwpw.bargainVId = localStorage.getItem('bargainVId');
92            globalwpw.bargainPrice = localStorage.getItem('bargainPrice');
93    
94            globalwpw.bargainStep = 'add_to_cart';
95            localStorage.setItem("bargainStep",  globalwpw.bargainStep);
96            wpwTree.bargain();
97    
98        });
99    
100    
101    
102        $(document).on('click','.qcld-modal-bargin-bot-confirm-exit-intent',function (e) {
103            e.preventDefault();
104            var shopperChoice=$(this).text();
105            wpwMsg.shopper_choice(shopperChoice);
106            var actionType=$(this).attr('confirm-data');
107            if(actionType=='yes'){
108                $('.woo_minimum_accept_price-bargin').trigger('click');
109            }
110        });
111});

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.