PageSourceSearch

https://hbcycle.com/sitesTmp/1001650/e7034a2c2f7fe28c300871a830dcf86d-js.js?_=1791336306

js hbcycle.com collected 2026-10-07 01:25:20 UTC 6,651 bytes, 197 lines download raw bytes

1var TBID = "80261b15db497f1a2a11b1450f47ed05";
2		  if("" !== TBID) {
3		  	setCookie( "TBID", TBID,(60*60) ); 
4			console.log("setting TBID:"+TBID);
5		  };
6function allFormsCallback(){
7		  	console.log("allFormsCallback");
8		  	push_brp_gtag_userAction("form submit", "get_a_quote|regular", "from dealer");
9		  };
10document.addEventListener('click', function(event) {
11    var targetElement = event.target.closest('a');
12    var eventNameToSend = null;
13    if (targetElement && targetElement.href) {
14      var linkUrl = targetElement.href;
15      var linkText = (targetElement.innerText || targetElement.textContent).trim();
16      if (linkUrl.startsWith('tel:')) {
17        eventNameToSend = 'phone_click';
18      }
19    
20    }
21  });
22function formCallBack_form_6ac59f72189b7(){ console.log('Form CallBack Called'); push_brp_gtag_userAction("form submit", "contact us", "from dealer")}
23	$(function(){
24
25        if($('input.date').size() > 0){ 
26        $('input.date').datepicker({ dateFormat: 'yy/mm/dd' , altFormat: 'yy/mm/dd',changeMonth: true,changeYear: true,yearRange: '1930:2028'}); 
27        }
28	
29        window.isSubmitting = false;
30		
31    	$('#form_6ac59f72189b7').validate({ 
32		submitHandler:function(e){
33		if($("[data-size='invisible']").length > 0 ) {
34			grecaptcha.execute();
35		} 
36	setTimeout(function(){	
37		var g_recaptcha_response = $('#form_6ac59f72189b7 .g-recaptcha-response').val();			
38	   if (!g_recaptcha_response && 1 ) {
39			Swal.fire({icon: 'warning',title:'You must verfiy the CAPTCHA'});
40			return false;
41		} else {
42			if (typeof ga === 'function') {
43			console.log('fffff');
44			 ga('send', 'event', { eventCategory: 'form', eventAction: 'submit'});
45			} else if (typeof gtag === 'function') {
46			console.log('ddddd');
47                        gtag('event', 'submit', {
48                          'event_category': 'form',
49                          'event_label': 'Form Submit',
50						  'send_to': window.send_to['GAGT']
51                        });
52						gtag('event', 'conversion', {'send_to': window.send_to['GT']}); 
53			}
54			var comId = $('#form_6ac59f72189b7').find('.comp_id').val();
55			
56		var data = new FormData(document.getElementById('form_6ac59f72189b7'));
57		data.append('href',  location.href);
58
59		if(window.AttachmentArray !== undefined && window.AttachmentArray.length > 0 ) {
60			data.append('attachmentArray',window.AttachmentArray.map(o=>[ (o.FileName +'|'+ o.MimeType +'|'+ o.Content) ])); 
61		}
62
63	
64Swal.showLoading();
65		$.ajax({
66			type: 'POST',
67			url:'/helper/form-mailer',
68			data: data,
69			dataType: 'text',
70			contentType: false,
71			cache: false,
72			usecaptcha:1,
73			processData:false,
74			success: function(data){ 
75			formCallBack_form_6ac59f72189b7();
76			Swal.close();
77			if(typeof data =='string') {
78				data =  JSON.parse(data.trim());
79			}
80				if(data.error == 0){
81					 Swal.fire({
82                          icon: 'success',
83                          showClass: {
84                            popup: `
85                              form-thank-you
86                            `
87                          },
88                          title: 'Sent Successfully',
89                          timerProgressBar: true,
90						  showConfirmButton: true,
91						  allowOutsideClick: true,
92                          timer: 8000
93                        }).then(function() {
94							location.reload(); /*window.location = '/';*/
95						});
96
97				} else{
98					Swal.fire({icon: 'error',title:data.msg,  showConfirmButton: true,});
99					grecaptcha.reset(); 
100				}
101			}
102		});
103			
104			
105			} 
106			
107			},500);
108		}})
109			
110
111	
112	});
113$(function(){
114		//To save an array of attachments 
115				window.AttachmentArray = [];
116				//counter for attachment array
117				window.arrCounter = 0;
118
119				//to make sure the error message for number of files will be shown only one time.
120				window.filesCounterAlertStatus = false;
121
122				window.startUpload = 0;
123				//console.log($('#images').size());
124			$(document).on('change','#images',function(e){	
125				handleFileSelect(e);
126			})
127		})
128        
129
130        //the handler for file upload event
131		function handleFileSelect(e) {
132		
133            //to make sure the user select file/files
134			console.log(1);
135            if (!e.target.files) 
136			{
137				return;
138			}
139			console.log(2);
140			Swal.showLoading();
141			window.startUpload = 1;
142
143            var files = e.target.files;
144console.log(files);
145            // Loop through the FileList and then to render image files as thumbnails.
146            for (var i = 0, f; f = files[i]; i++) {
147/*				if(i === 0) {
148				 Swal.showLoading();
149				}*/
150                //instantiate a FileReader object to read its contents into memory
151                var fileReader = new FileReader();
152
153                // Closure to capture the file information and apply validation.
154                fileReader.onload = (function (readerEvt) {
155                    return function (e) {
156                         //$("#overlay").fadeIn(300); 
157						
158                        //Apply the validation rules for attachments upload
159                        //ApplyFileValidationRules(e,readerEvt)
160
161                        //Render attachments thumbnails.
162                        //RenderThumbnail(e, readerEvt);
163
164                        //Fill the array of attachment
165                        FillAttachmentArray(e, readerEvt)
166                    };
167                })(f);
168
169                // Read in the image file as a data URL.
170                // readAsDataURL: The result property will contain the file/blob's data encoded as a data URL.
171                // More info about Data URI scheme https://en.wikipedia.org/wiki/Data_URI_scheme
172                fileReader.readAsDataURL(f);
173            }
174            //document.getElementById('images').addEventListener('change', handleFileSelect, false);
175			Swal.close();
176			window.startUpload = 0;
177			// $("#overlay").fadeOut(300); 
178        };
179
180        //Fill the array of attachment
181        function FillAttachmentArray(e, readerEvt)
182        {
183            window.AttachmentArray[window.arrCounter] =
184            {
185                AttachmentType: 1,
186                ObjectType: 1,
187                FileName: readerEvt.name,
188                FileDescription: "Attachment",
189                NoteText: "",
190                MimeType: readerEvt.type,
191                Content: e.target.result.split("base64,")[1],
192                FileSizeInBytes: readerEvt.size,
193            };
194            window.arrCounter = window.arrCounter + 1;
195        };
196window.WebsiteModal = false;
197		window.PageModal = false;

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.