PageSourceSearch

https://blinkvisa.com/web/js/developer.js?v=1.003

js blinkvisa.com collected 2026-10-01 11:51:04 UTC 26,555 bytes, 777 lines download raw bytes

1
2(function ($) {
3    'use strict';
4
5    if ($(".js-example-basic-single").length) {
6        $(".js-example-basic-single").select2();
7    }
8    if ($(".js-example-basic-multiple").length) {
9        $(".js-example-basic-multiple").select2();
10    }
11})(jQuery);
12
13$('.ajax-form').submit(function (event) {
14    event.preventDefault();
15});
16
17$('.home-slider').slick({
18    vertical     : true,
19    autoplay     : true,
20    autoplaySpeed: 3000,
21    speed        : 300
22});
23
24$(document).ready(function () {
25    var form       = $('#newsletter');
26    var newsLetter = form.validate({
27        submitHandler: function () {
28            newsLetter.destroy();
29            form.submit();
30        }
31    });
32    if ($('#newsletter_popup').length > 0) {
33        $('#newsletter_popup').modal('show');
34    }
35});
36
37$(document).ready(function () {
38
39    
40    $( ".signup_btn" ).click(function() {
41        $('#sign_in_popup').modal('hide');
42    });
43    $( ".login_btn" ).click(function() {
44        $('#sign_up_popup').modal('hide');
45    });
46    
47    hash = window.location.hash;
48    if (hash == "#sign-in") {
49        $("#signotp").show();
50        $("#f_paswrd").hide();
51        $("#signin").hide();
52        $("#reset_password").hide();
53        $('#sign_in_popup').modal('show');
54        window.location.hash = '';
55    }
56    
57    params               = (new URL(document.location)).searchParams;
58    if (params.get("reset-password-token") !== null) {
59        $("#signotp").hide();
60        $("#f_paswrd").hide();
61        $("#signin").hide();
62        $("#reset_password").show();
63        $('#reset_password').modal('show');
64    }
65    if (params.get("order") !== null) {
66        viewid = "#ViewApplicants-"+params.get("order");
67        $(viewid).click();
68    }
69});
70
71$.validator.addMethod("letters", function (value, element) {
72    return this.optional(element) || value == value.match(/^[a-zA-Z\s\.]*$/);
73});
74
75$.validator.addMethod("cusemail", function(value, element) {
76    // allow any non-whitespace characters as the host part
77    return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@(?:\S{1,63})+\.(?:\S{1,6})$/.test( value );
78}, "Please enter a valid email address");
79$.validator.addMethod("zipcode", function (value, element) {
80    return this.optional(element) || value == value.match(/^[0-9]{5}(?:-[0-9]{4})?$/);
81});
82$.validator.addMethod("onlyspace", function (value, element) {
83    return this.optional(element) || value.trim().length != 0;
84});
85$.validator.addMethod("isname", function (value, element) {
86    return /[a-zA-Z\s\.]+$/.test(value);
87}, 'Enter valid name');
88$.validator.addMethod("isnumber", function (value, element) {
89    return /^[0-9]+$/.test(value);
90}, 'Enter number only');
91$.validator.addMethod("otp", function (value, element) {
92    return this.optional(element) || value == value.match(/^[0-9]{4}$/);
93});
94$('.on_key_press_validate').keypress(function(e){
95    $('.on_key_press_validate').valid();
96});
97var $formSignInEmail = $("#signin-form");
98var validFormSignIn  = $formSignInEmail.validate({
99    submitHandler: function () {
100        // validFormSignIn.destroy();
101        $.ajax({
102            type   : "POST",
103            url    : $formSignInEmail.attr("action"),
104            data   : $("#signin-form input").serialize(),   //only input
105            success: function (response) {
106                if (response.status == true) {
107                    if (response.success == true) {
108                        //Email login
109                        if(response.redirect != null) {
110                            window.location.href = response.redirect 
111                         }else{
112                            window.location.reload(); 
113                         }
114                    } else {
115                        $("#signin-form .error").show();
116                    }
117                }
118            }
119        });
120    }
121});
122
123var $formForgot = $("#forgot-form");
124$formForgot.validate({
125    submitHandler: function () {
126        // validFormSignIn.destroy();
127        $.ajax({
128            type   : "POST",
129            url    : $formForgot.attr("action"),
130            data   : $("#f_paswrd input").serialize(),   //only input
131            success: function (response) {
132                $("#f_paswrd button[type=submit]").prop('disabled', true);
133                if (response.status == true) {
134                    if (response.success == true) {
135                        $('#sign_in_popup').modal('hide');
136                        showToast('Success', response.message, 'success');
137                    } else {
138                       // $('#sign_in_popup').modal('hide');
139                        showToast('Error', response.message, 'error');
140                        $('#frgt-pass-send-btn').prop('disabled', false);
141                    }
142                    $("#f_paswrd button[type=submit]").prop('disabled', false);
143                }
144            }
145        });
146    }
147});
148
149
150var $formReset = $("#reset-password-form");
151$formReset.validate({
152    submitHandler: function () {
153        formReset.destroy();
154        $("#reset-password-form").submit();
155    }
156});
157
158
159$(document).ready(function(){
160    /* Sign Up */
161    var inputSignUp = document.querySelector("#sign-up-form-phone");
162    // var itiSignup = $("#sign-up-form-phone").intlTelInput({
163    var itiSignup = window.intlTelInput(inputSignUp,({
164
165        geoIpLookup: function(callback) {
166            $.get("https://ipinfo.io", function() {}, "jsonp").always(function(resp) {
167                var countryCode = "in";//(resp && resp.country) ? resp.country : "in";
168                callback(countryCode);
169            });
170        },
171        hiddenInput: "sign_up_number",
172        initialCountry: "auto",
173        separateDialCode: true,
174        formatOnDisplay: false,
175        customPlaceholder: function(selectedCountryPlaceholder, selectedCountryData) {
176            return selectedCountryPlaceholder.replace(/[0-9]/g,"x");
177        }, 
178    }));
179
180    // });
181    inputSignUp.addEventListener("countrychange", function() {
182        $country_code = $('#sign-up-form .selected-dial-code').text();
183        $('#sign_up_country_code').val($country_code);
184    });
185    $.validator.addMethod("signupmobile", function(value, element) {
186        return itiSignup.isValidNumber();
187    });
188    if(visa_form_country_phone != ''){
189        itiSignup.setNumber(visa_form_country_phone);
190        $country_data = itiSignup.getSelectedCountryData();
191        $('#sign_up_country_code').val($country_data['dialCode']);
192    }
193});
194
195    /* Sign In */
196$(document).ready(function(){
197    var input = document.querySelector("#sign-in-form-phone");
198    // $("#sign-in-form-phone").intlTelInput({
199        var itiSignin = window.intlTelInput(input,({
200        autoPlaceholder: "polite",
201        geoIpLookup: function(callback) {
202            $.get("https://ipinfo.io", function() {}, "jsonp").always(function(resp) {
203                var countryCode = "in";//(resp && resp.country) ? resp.country : "in";
204                callback(countryCode);
205            });
206        },
207        initialCountry: "auto",
208        hiddenInput: "phone_number",
209        separateDialCode: true,
210        formatOnDisplay: false,
211        utilsScript: "{{asset('/frontend/js/utils.js')}}",
212        customPlaceholder: function(selectedCountryPlaceholder, selectedCountryData) {
213            return selectedCountryPlaceholder.replace(/[0-9]/g,"x");
214        }
215    }));
216
217    // });
218    input.addEventListener("countrychange", function(e) {
219        $country_code = $('#sign-in-form .selected-dial-code').text();
220        $('#sign-in-form [name=country_code]').val($country_code);
221    });
222    if(visa_form_country_phone != ''){
223        itiSignin.setNumber(visa_form_country_phone);
224        $country_data = itiSignin.getSelectedCountryData();
225        $('#sign_in_country_code').val($country_data['dialCode']);
226    }
227    $.validator.addMethod("signinmobile", function(value, element) {
228        return itiSignin.isValidNumber();
229    });
230});
231
232/* Update Phone Number */
233$(document).ready(function(){
234    if($("#update-user-phoneno-phone").length > 0){
235        var inputUpdate = document.querySelector("#update-user-phoneno-phone");
236            window.itiUpdate = window.intlTelInput(inputUpdate,({
237            autoPlaceholder: "polite",
238            geoIpLookup: function(callback) {
239                $.get("https://ipinfo.io", function() {}, "jsonp").always(function(resp) {
240                    var countryCode = "in";//(resp && resp.country) ? resp.country : "in";
241                    callback(countryCode);
242                });
243            },
244            initialCountry: "auto",
245            hiddenInput: "phone_number",
246            separateDialCode: true,
247            formatOnDisplay: false,
248            utilsScript: "{{asset('/frontend/js/utils.js')}}",
249            customPlaceholder: function(selectedCountryPlaceholder, selectedCountryData) {
250                return selectedCountryPlaceholder.replace(/[0-9]/g,"x");
251            }
252        }));
253
254        inputUpdate.addEventListener("countrychange", function(e) {
255            $country_code = $('#update-user-phoneno .selected-dial-code').text();
256            $('#update-user-phoneno [name=country_code]').val($country_code);
257        });
258        if(visa_form_country_phone != ''){
259            itiUpdate.setNumber(visa_form_country_phone);
260            $country_data = itiUpdate.getSelectedCountryData();
261            $('#update_user_phoneno_country_code').val($country_data['dialCode']);
262        }
263        $.validator.addMethod("updatemobile", function(value, element) {
264            return itiUpdate.isValidNumber();
265        });
266    }
267});
268    
269var $formSignUp     = $("#sign-up-form");
270var validformSignUp = $formSignUp.validate({
271    submitHandler: function () {
272        $.ajax({
273            type   : "POST",
274            url    : $formSignUp.attr("action"),
275            data   : $("#sign-up-form input").serialize(),   //only input
276            success: function (response) {
277                if (response.status == true) {
278                    if (response.status == true) {
279                        window.location.reload();
280                    } else {
281                        $("#sign-up-form .error").removeClass('hidden');
282                        $("#sign-up-form .error").html(response.message);
283                        setTimeout(function () {
284                            $("#sign-up-form .error").addClass('hidden');
285                        }, 4000);
286                    }
287                }
288            },
289            error: function (request, status, error) {
290                var validator = $( "#sign-up-form" ).validate();
291                var errors;
292                if(request.responseJSON.errors.hasOwnProperty('name')){
293                    errors = { "name": request.responseJSON.errors.name[0] };
294                    validator.showErrors(errors);
295                }
296                if(request.responseJSON.errors.hasOwnProperty('phone')){
297                    errors = { "phone": request.responseJSON.errors.phone[0] };
298                    validator.showErrors(errors);
299                }
300                if(request.responseJSON.errors.hasOwnProperty('phone')){
301                    errors = { "phone": request.responseJSON.errors.phone[0] };
302                    validator.showErrors(errors);
303                }
304                if(request.responseJSON.errors.hasOwnProperty('otp')){
305                    errors = { "otp": request.responseJSON.errors.otp[0] };
306                    validator.showErrors(errors);
307                }
308                if(request.responseJSON.errors.hasOwnProperty('email')){
309                    errors = { "email": request.responseJSON.errors.email[0] };
310                    validator.showErrors(errors);
311                }
312            },
313        });
314    }
315});
316var $formSignIn     = $("#sign-in-form");
317var validformSignIn = $formSignIn.validate({
318    submitHandler: function () {
319    $("#siginin_btn").prop('disabled', true);
320        $.ajax({
321            type   : "POST",
322            url    : $formSignIn.attr("action"),
323            data   : $("#sign-in-form input").serialize(),   //only input
324            success: function (response) {
325              //  alert('A'+response.status);
326                $("#siginin_btn").prop('disabled', false);
327                if (response.status == true) {
328                    if (response.success == true) {
329                        //OTP login
330                         if(response.redirect != null) {
331                            window.location.href = response.redirect 
332                         }else{
333                            window.location.reload(); 
334                         }
335                       
336                        $("#sign-in-form .success").html(response.message);
337                        $("#sign-in-form .error").addClass('hidden');
338                        // setTimeout(function () {
339                        //     $("#sign-in-form .error").addClass('hidden');
340                        // }, 4000);
341                    }else{
342                        $("#sign-in-form .error").removeClass('hidden');
343                    }
344                }else{
345                    $("#sign-in-form .error").removeClass('hidden');
346                }
347            }
348        });
349    }
350});
351
352var $formupdatephno     = $("#update-user-phoneno");
353var validformupdatephno = $formupdatephno.validate({
354    submitHandler: function () {
355    $("#update_phno_button").prop('disabled', true);
356        $.ajax({
357            type   : "POST",
358            url    : $formupdatephno.attr("action"),
359            data   : $("#update-user-phoneno input").serialize(),   //only input
360            success: function (response) {
361                $("#update_phno_button").prop('disabled', false);
362                if (response.status == true) {
363                    if (response.success == true) {
364                        $("#update-user-phoneno .success").removeClass('hidden');
365                        $("#update-user-phoneno .success").html(response.message);
366                        setTimeout(function () {
367                            $("#update-user-phoneno .success").addClass('hidden');
368                        }, 7000);
369                        setTimeout(function () {
370                            $('#update-user-phone').modal('hide');
371                        }, 4000);
372                        itiUpdate.setNumber(response.userphno);
373                        window.location.reload();                        
374                    } else {
375                        $("#update-user-phoneno .error").removeClass('hidden');
376                        $("#update-user-phoneno .error").html(response.message);
377                        setTimeout(function () {
378                            $("#update-user-phoneno .error").addClass('hidden');
379                        }, 4000);
380                    }
381                }
382            }
383        });
384    }
385});
386
387function get_otp(id){
388    window.eid = id;
389    var validatorSignUp = $(id).validate();
390    var $formGetOTP = $(id);
391    if(validatorSignUp.element( id+"-phone")){
392        $.ajax({
393            type   : "POST",
394              //url    : route('users.otp_sent'),
395              url    : '/users/otp-sent',
396            data   : $formGetOTP.serialize(),   //only input
397            success: function (response) {
398                $(id+" "+id+"-otp").val('');
399                $(id+" "+id+"-otp").text('');
400
401                if(response.message){
402                    $(id+" .success").html("OTP sent successfully");
403                    $(id+" .success").removeClass('hidden');
404                    setTimeout(function () {
405                        $( id+" .success").addClass('hidden');
406                    }, 4000);
407                }else{
408                    $(id+" .error").html(response.error_message);
409                    $(id+" .error").removeClass('hidden');
410                    setTimeout(function () {
411                        $(id+" .error").addClass('hidden');
412                    }, 4000);
413                }
414            }
415        });
416    }
417}
418//Select2 placeholder 
419$(document).ready(function () {
420    $(".js-example-placeholder-country").select2({
421       placeholder: "Select Country",
422        allowClear: false,
423    });    
424});
425$(document).ready(function () {
426    $(".js-example-placeholder-req-callback").select2({
427        placeholder: "I need visa a for? (Country)",
428        allowClear: true
429    });
430});
431
432
433//Flash message
434
435$(document).ready(function () {
436    // Success popup message
437    if(flash_success != ''){
438        showToast('Success', flash_success, 'success');
439    }
440
441    // Error popup message
442    if(flash_error != ''){
443        showToast('Error', flash_error, 'error');
444    }
445});
446
447$(document).submit(function () {
448
449    if($('.schedule-form .form-group').find('.error') == undefined){
450            console.log("here");
451    }
452
453});
454
455$(function() {
456    setTimeout(
457      function(){
458          $('#appoinment-form  input[name=country_code]').val($('#appoinment-form  .selected-dial-code').text())
459      },500
460    );
461});
462//For Banner image Change
463$(document).ready(function () {
464    if($(window).width() >= 1024){
465        $("span.custom-select-trigger").on('DOMSubtreeModified', function () {
466            Visa_type = $("div.custom-select").find("span.custom-select-trigger").text();
467            $('#home_banner').removeAttr('class');
468            switch (Visa_type) {
469                case "Tourist Visa":
470                // console.log("Tourist Visa");
471                //$('#home_banner').css('background-image', 'url(' + TouristImageUrl + ')');
472                $('#home_banner').addClass("touristtype");
473                    break;
474                case "Student Visa":
475                // console.log("Student Visa");
476                //$('#home_banner').css('background-image', 'url(' + StudentImageUrl + ')');
477                $('#home_banner').addClass("studenttype");
478                    break;
479                case "Business Visa":
480                // console.log("Business Visa");
481                //$('#home_banner').css('background-image', 'url(' + BusinessImageUrl + ')');
482                $('#home_banner').addClass("bussinesstype");
483                    break;
484            }
485        });
486    }
487});
488
489// $(window).resize(function(e){
490//     if($(window).width() >= 1024){
491//         $("span.custom-select-trigger").on('DOMSubtreeModified', function () {
492//             Visa_type = $("div.custom-select").find("span.custom-select-trigger").text();
493//             switch (Visa_type) {
494//                 case "Tourist Visa":
495//                 // console.log("Tourist Visa");
496//                 $('#home_banner').css('background-image', 'url(' + TouristImageUrl + ')');
497//                     break;
498//                 case "Student Visa":
499//                 // console.log("Student Visa");
500//                 $('#home_banner').css('background-image', 'url(' + StudentImageUrl + ')');
501//                     break;
502//                 case "Business Visa":
503//                 // console.log("Business Visa");
504//                 $('#home_banner').css('background-image', 'url(' + BusinessImageUrl + ')');
505//                     break;
506//             }
507//         });
508//     }else{
509//         $("span.custom-select-trigger").on('DOMSubtreeModified', function () {
510//             $('#home_banner').attr('style', '');
511//         });
512//     }
513// });
514//image Preview finction
515$(document).ready(function () {
516    
517    function imagePreview(input) {
518        if (input.files && input.files[0]) {
519            var reader = new FileReader();
520    
521            reader.onload = function (e) {
522                $('#imgOutput').attr('src', e.target.result);
523            }
524    
525            reader.readAsDataURL(input.files[0]);
526        }
527    }
528    
529    $("#imgInput").change(function(){
530        imagePreview(this);
531    });
532    
533});
534
535
536/* Show Success Message*/
537showToast = function(heading, text, icon, background) {
538    resetToastPosition();
539    $.toast({
540        heading: (heading == '')?'Success':heading,
541        text: text,
542        showHideTransition: 'slide',
543        icon: (icon == '')? 'success':icon,
544        loaderBg: (background == '')?'#f96868':background,
545        position: 'top-right'
546    });
547};
548
549
550/* Toaster Reset Position*/
551resetToastPosition = function() {
552  $('.jq-toast-wrap').removeClass('bottom-left bottom-right top-left top-right mid-center'); // to remove previous position class
553  $(".jq-toast-wrap").css({
554    "top": "",
555    "left": "",
556    "bottom": "",
557    "right": ""
558  }); //to remove previous position style
559}
560
561/* Copy input */
562function copy_input(source, destination){
563    $(source).keyup(function(e){
564        $(destination).val($(source).val());
565    });
566}
567
568function guidGenerator() {
569    var S4 = function() {
570       return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
571    };
572    return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());
573}
574
575/* Cashback  logout*/
576 if(logged_out_wallet_key != ''){
577    url = cashback_url+'user/wallet_key_logout'
578    data = { wallet_key: logged_out_wallet_key}
579    $.ajax({
580        type: "POST",
581        url: url,
582        data: data,
583        success: function(res){
584        }
585    });
586}
587
588$(function(){
589    if ( $( ".hnavbar" ).length ){
590        height = $('.top_header').height();
591        $('nav.navbar').attr('style','padding-top:'+(height+3)+'px !important');
592    }
593});
594$(window).resize(function(e){
595    if ( $( ".hnavbar" ).length ){
596        height = $('.top_header').height();
597        $('nav.navbar').attr('style','padding-top:'+(height+3)+'px !important');
598    }
599});
600
601$("script[type='text/twig']").each(function() {
602    var id = $(this).attr("id"),
603        data = $(this).text();
604    twig({
605        id: id,
606        data: data,
607        allowInlineIncludes: true
608    });
609});
610
611var getrating = function(rate){
612    var result = "";
613    for(i = 1; i <= 5; i++){
614        if(i <= rate){
615            result += '<span class="fa fa-star checked"></span>';
616        }else{
617            //result += '<span class="fa fa-star"></span>';
618        }
619            
620    }
621    return result;
622}
623
624//Number Format 
625const COUNT_ABBRS = [ '', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y' ];
626
627var FormatCount = function(count, withAbbr, decimals) {
628    if(withAbbr == undefined){
629        withAbbr = false;
630    }
631    if(decimals == undefined){
632        decimals = 2;
633    }
634
635    const i     = 0 === parseFloat(count) ? parseFloat(count) : Math.floor(Math.log(count) / Math.log(1000));
636    var result  = parseFloat((count / Math.pow(1000, i)).toFixed(decimals));
637    if(withAbbr) {
638        result += COUNT_ABBRS[i];
639    }
640    return result;
641}
642
643function makeTimer(Time) {       
644    var endTime = (Date.parse(Time) / 1000);
645
646    var now = new Date();
647    now = (Date.parse(now) / 1000);
648
649    var timeLeft = endTime - now;
650
651    var days = Math.floor(timeLeft / 86400); 
652    var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
653    var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
654    var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
655
656    if (hours < "10") { hours = "0" + hours; }
657    if (minutes < "10") { minutes = "0" + minutes; }
658    if (seconds < "10") { seconds = "0" + seconds; }
659
660    $("#hours").html(hours);
661    $("#minutes").html(minutes);
662    $("#seconds").html(seconds);          
663}
664
665
666
667function CreateTimeOut (cookieName,cookieValue) {
668 
669
670    var cookie_name = "search_data"
671    // var bkp_cookie_name = "search_backup"
672
673    CreateCookie(cookieName,cookieValue);
674    var cookiestring = GetCookie(cookie_name);
675    if(cookiestring != ""){
676    var cookie = JSON.parse(cookiestring)
677    // var bkpcookiestring = GetCookie(bkp_cookie_name);
678    // var bkpcookie = JSON.parse(bkpcookiestring)
679
680
681        setInterval(function() { 
682            var currentdate = new Date();
683            var experidate = new Date(cookie.cookie_expire_date);
684
685            makeTimer(cookie.cookie_expire_date); 
686            if (currentdate.getTime() > experidate.getTime()) {
687                //DeleteCookie(cookie_name);
688                $('#session-timer-div').hide();
689                $('#sessionModel').modal({ show: true})
690            }
691        }, 1000);
692
693        $( "#backtoflights" ).click(function() {
694            BackToFlightSearch();
695        });
696        $( "#closebtn" ).click(function() {
697            BackToFlightSearch();
698        });
699    }else{
700        $('#sessionModel').modal({ show: true})
701    }
702}
703
704
705function CreateCookie(cookieName,cookieValue){
706    var date = new Date();
707    var bkpdate = new Date();
708
709    date.setMinutes( date.getMinutes() + 18 );
710    bkpdate.setMinutes( bkpdate.getMinutes() + 60 );
711
712    cookieValue['cookie_expire_date'] = date.toGMTString();
713    document.cookie = cookieName + "=" + JSON.stringify(cookieValue) + "; expires=" + date.toGMTString();
714    document.cookie = "search_backup=" + JSON.stringify(cookieValue);
715    // document.cookie = "search_url=" + JSON.stringify(currentUrl) + "; expires=" + bkpdate.toGMTString();
716}
717
718//To store the current url 
719function CreateUrlCookie() {
720    var date = new Date();
721    var currentUrl  = window.location.pathname + window.location.search;
722    date.setMinutes( date.getMinutes() + 60 );
723    document.cookie = "search_url=" + JSON.stringify(currentUrl);
724}
725
726
727function GetCookie (cname) {
728    var name = cname + "=";
729    var decodedCookie = decodeURIComponent(document.cookie);
730    var ca = decodedCookie.split(';');
731    for(var i = 0; i <ca.length; i++) {
732      var c = ca[i];
733      while (c.charAt(0) == ' ') {
734        c = c.substring(1);
735      }
736      if (c.indexOf(name) == 0) {
737        return c.substring(name.length, c.length);
738      }
739    }
740    return "";
741}
742
743function UpdateCookie( name ) {
744    document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
745}
746function DeleteCookie( name ) {
747    document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
748}
749function BackToFlightSearch(){
750    //console.log("BackToFlightSearch");
751    $("#flight_form").submit();
752}
753
754function BackToFlightSearchInstantBooking(){
755
756    var url = GetCookie("search_url");
757        if(url == ""){
758            window.location.href = "/";
759        }else{
760            window.location.href = JSON.parse(url);
761        }
762}
763function testInput() {
764    // console.log(event.target.value);
765    var value = $(this).val($(this).val().toUpperCase());    
766    var pattern = new RegExp(/[A-Z]/i);
767    return pattern.test(value);
768}
769$('#coupon_code').bind('keyup', testInput);
770
771document.addEventListener("wheel", function(event){
772    if(document.activeElement.type === "number" &&
773        document.activeElement.classList.contains("no-scroll-input"))
774    {
775        document.activeElement.blur();
776    }
777});

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.