PageSourceSearch

https://lordsofdetailing.com/assets/frontend/js/myjs.js

js lordsofdetailing.com collected 2026-10-04 11:04:52 UTC 3,091 bytes, 87 lines download raw bytes

1    $(document).on('submit','#contact-form',function(e){    
2        e.preventDefault();
3        $('.section.loader-section').show();          
4        var form = $(this);
5        var url = form.attr('action');
6      
7        $.ajax({
8            type: 'POST',
9            url: url,
10            data: new FormData(this),
11            dataType:'json',
12            contentType: false,
13            processData: false,
14            cache:false,
15            async:true,
16            beforeSend: function()
17            {
18                $("#form-submit").prop('disabled', true);
19                $("#form-submit").text('Submitting...');
20            },
21            success: function(response)
22            {
23                if(response['status']==1)
24                {
25                    $('.section.loader-section').hide();
26                    $('.fname_error').text(response['fname_error']);
27                    $('.lname_error').text(response['lname_error']);
28                    $('.email_error').text(response['email_error']);
29                    $('.phone_error').text(response['phone_error']);
30                    $('.enquiry_error').text(response['enquiry_error']);
31                    $('.message_error').text(response['message']);
32                    $("#form-submit").text('Submited');
33                    $("#contact-form")[0].reset();
34                }
35                else
36                {   
37                    $('.fname_error').text(response['fname_error']);
38                    $('.lname_error').text(response['lname_error']);
39                    $('.email_error').text(response['email_error']);
40                    $('.phone_error').text(response['phone_error']);
41                    $('.enquiry_error').text(response['enquiry_error']);
42                    $('.message_error').text(response['message']);
43                    $("#form-submit").prop('disabled', false);
44                    $("#form-submit").text('Submit');
45                }
46                $('.section.loader-section').hide();    
47            }
48        });
49    }) 
50
51$('.addactive1').click(function(){
52    $('a').removeClass('active')
53    $('.addactive1').addClass('active');
54});
55$('.addactive2').click(function(){
56    $('a').removeClass('active')
57    $('.addactive2').addClass('active');
58});
59$('.addactive3').click(function(){
60    $('a').removeClass('active')
61    $('.addactive3').addClass('active');
62});
63$('.addactive4').click(function(){
64    $('a').removeClass('active')
65    $('.addactive4').addClass('active');
66});
67$('.addactive5').click(function(){
68    $('a').removeClass('active')
69    $('.addactive5').addClass('active');
70});
71$('.addactive6').click(function(){
72    $('a').removeClass('active')
73    $('.addactive6').addClass('active');
74});
75$('.addactive7').click(function(){
76    $('a').removeClass('active')
77    $('.addactive7').addClass('active');
78});
79
80function successAlert(response)
81{
82    if (response['status']==1) {
83       toastr.success(response['message']);
84    } else { 
85       toastr.error(response['message']);
86    }
87}

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.