PageSourceSearch

https://droitne.ch/js/droitne/interaction.js?v=9cbdcddbc3eb105ffabd860ca9709b09

js droitne.ch collected 2026-10-09 01:27:37 UTC 1,655 bytes, 61 lines download raw bytes

1!function ($) {
2    $(function(){
3
4        function acceptTermsAndConditions(){
5
6            // Terms and conditions have to be checked
7            if( !$('input[id=termsAndConditions]').is(':checked'))
8            {
9                Swal.fire({
10                    title: "Attention",
11                    text : 'Vous devez accepter les conditions générales',
12                    type : "warning",
13                    showConfirmButton: true
14                });
15
16                return false;
17            }
18
19            return true;
20        };
21
22        /*****************************************************************
23         *   Delete confirm action
24         *****************************************************************/
25        $('body').on('click','.doAction',function(event){
26
27            var $this  = $(this);
28            var checked = $this.data('checked');
29
30            if(checked && !acceptTermsAndConditions()){
31                return false;
32            }
33
34            return true;
35        });
36
37        /*****************************************************************
38         *   Choose payment
39         *****************************************************************/
40        $('input[class=paymentType]').click(function() {
41
42            var type = $(this).attr('id');
43
44            $('.btn-commande').hide();
45            $('#btn-'+type).show();
46
47        });
48
49        $('#payment-stripe').on('show.bs.modal', function (event)
50        {
51            if(!acceptTermsAndConditions())
52            {
53                $('#payment-stripe').modal('hide');
54                return false;
55            }
56        })
57
58    });
59
60}(window.jQuery);
61

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.