PageSourceSearch

https://cmbv.fr/sites/all/themes/tssks/js/ssks-commerce-panier.js?tkowhe

js cmbv.fr collected 2026-09-24 18:22:43 UTC 1,190 bytes, 45 lines download raw bytes

1
2(function($) {
3    Drupal.behaviors.ssks_commerce_panier = {
4
5        attach: function(context, settings) {
6
7            var $form = $('form[id*=views-form-commerce-cart]');
8
9            // ECHAPPE
10            // SI PAS de lien généré par le module
11            // QUI recharge l'ajax 
12            if($('.dc-cart-ajax-fake-link').length == 0 ) return ;
13
14            // DELAY - pour keyup
15            function delay(callback, ms) {
16                var timer = 0;
17                return function() {
18                    var context = this, args = arguments;
19                    clearTimeout(timer);
20
21                    timer = setTimeout(function () {
22                        callback.apply(context, args);
23                    }, ms || 0);
24
25                };
26            }
27            
28            var $btn = $form.find('#edit-submit');
29            var $inputs = $form.find('input[type=text]');
30
31            $inputs.on('keyup input', delay(function(){
32                $btn.trigger('mousedown');
33            }, 700 ));
34
35            $inputs.on('touchend', delay(function(){
36                $btn.trigger('mousedown');
37            }, 700 ));
38
39 
40        },
41
42        
43     
44    }
45})(jQuery) ;

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.