403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/tripstring.com/public/js/backup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/tripstring.com/public/js/backup/car.js
setTimeout(function() {
    $.getJSON(SITEURL + 'public/data/dynamic/carcitymaster.json', function(source) {
        $(".airport_searchsdd").autocomplete({
            minLength: 3,
            autoFocus: true,
            source: function(request, response) {
                var term = $.ui.autocomplete.escapeRegex(request.term),
                    startsWithMatcher = new RegExp("^" + term, "i"),
                    startsWith = $.grep(source, function(value) {
                        //  alert(value.label);
                        return startsWithMatcher.test(value.label);

                    }),

                    containsMatcher = new RegExp(term, "i"),
                    contains = $.grep(source, function(value) {
                        return $.inArray(value, startsWith) < 0 &&
                            containsMatcher.test(value.label);
                    });
                //console.log(startsWith.concat(contains));
                response(startsWith.concat(contains));
            },
            response: function(e) {
                //console.log(e);
            },
            select: function(event, ui) {
                var index = $(this).attr('index');
                var value = ui.item.label;
                var dddd = value.split(',');
                ui.item.value = dddd[0] + '(' + ui.item.label + ')';
                $('.apendn_' + index).val(dddd[0]);
                $('.fromText_' + index).html(dddd[1]);
                $('#mytrip_city_' + index).val(dddd[1]);
                $('#search_city_' + index).val(ui.item.label);
            }
        });

    });
}, 1000);


setTimeout(function() {
    $.getJSON(SITEURL + 'public/data/dynamic/cardestinationmaster.json', function(source) {
        $(".airport_searchdestin").autocomplete({
            minLength: 3,
            autoFocus: true,
            source: function(request, response) {
                var term = $.ui.autocomplete.escapeRegex(request.term),
                    startsWithMatcher = new RegExp("^" + term, "i"),
                    startsWith = $.grep(source, function(value) {
                        //  alert(value.label);
                        return startsWithMatcher.test(value.label);

                    }),

                    containsMatcher = new RegExp(term, "i"),
                    contains = $.grep(source, function(value) {
                        return $.inArray(value, startsWith) < 0 &&
                            containsMatcher.test(value.label);
                    });
                //console.log(startsWith.concat(contains));
                response(startsWith.concat(contains));
            },
            response: function(e) {
                //console.log(e);
            },
            select: function(event, ui) {
                var index = $(this).attr('index');
                var value = ui.item.label;
                var dddd = value.split(',');
                ui.item.value = dddd[0] + '(' + ui.item.label + ')';
                $('.apendn_' + index).val(dddd[0]);
                $('.fromText_' + index).html(dddd[1]);
                $('#mytrip_city_' + index).val(dddd[1]);
                $('#search_city_' + index).val(ui.item.label);
            }
        });

    });
}, 1000);





    function triptypeoption(id){
       
        if(id == 'car_RoundTrip'){
            $('.car-end-Date').show();
        }
       
       if(id == 'car_OneWay'){
            $('.car-end-Date').hide();
        }

        if(id == 'car_MultiWay'){
            $('.car-end-Date').show();
        }

        var triptype = $(this).val();
            if(triptype == 6){
                setTimeout(function() {
                    $.getJSON(SITEURL + 'public/data/dynamic/carairportmaster.json', function(source) {
                        $(".airport_searchsdd").autocomplete({
                            minLength: 3,
                            autoFocus: true,
                            source: function(request, response) {
                                var term = $.ui.autocomplete.escapeRegex(request.term),
                                    startsWithMatcher = new RegExp("^" + term, "i"),
                                    startsWith = $.grep(source, function(value) {
                                      //  alert(value.label);
                                       return startsWithMatcher.test(value.label);

                                    }),

                                    containsMatcher = new RegExp(term, "i"),
                                    contains = $.grep(source, function(value) {
                                        return $.inArray(value, startsWith) < 0 &&
                                            containsMatcher.test(value.label);
                                    });
                                //console.log(startsWith.concat(contains));
                                response(startsWith.concat(contains));
                            },
                            response: function(e) {
                                //console.log(e);
                            },
                            select: function(event, ui) {
                                var index = $(this).attr('index');
                                var value = ui.item.label;
                                var dddd = value.split(',');
                                ui.item.value = dddd[0] + '(' + ui.item.label + ')';
                                $('.apendn_' + index).val(dddd[0]);
                                $('.fromText_' + index).html(dddd[1]);
                                $('#mytrip_city_' + index).val(dddd[1]);
                                $('#search_city_' + index).val(ui.item.label);
                            }
                        });

                    });
                }, 1000);    
            }
            
            if(triptype == 7){
                setTimeout(function() {
                    $.getJSON(SITEURL + 'public/data/dynamic/carrailwaymaster.json', function(source) {
                        $(".airport_searchsdd").autocomplete({
                            minLength: 3,
                            autoFocus: true,
                            source: function(request, response) {
                                var term = $.ui.autocomplete.escapeRegex(request.term),
                                    startsWithMatcher = new RegExp("^" + term, "i"),
                                    startsWith = $.grep(source, function(value) {
                                      //  alert(value.label);
                                       return startsWithMatcher.test(value.label);

                                    }),

                                    containsMatcher = new RegExp(term, "i"),
                                    contains = $.grep(source, function(value) {
                                        return $.inArray(value, startsWith) < 0 &&
                                            containsMatcher.test(value.label);
                                    });
                                //console.log(startsWith.concat(contains));
                                response(startsWith.concat(contains));
                            },
                            response: function(e) {
                                //console.log(e);
                            },
                            select: function(event, ui) {
                                var index = $(this).attr('index');
                                var value = ui.item.label;
                                var dddd = value.split(',');
                                ui.item.value = dddd[0] + '(' + ui.item.label + ')';
                                $('.apendn_' + index).val(dddd[0]);
                                $('.fromText_' + index).html(dddd[1]);
                                $('#mytrip_city_' + index).val(dddd[1]);
                                $('#search_city_' + index).val(ui.item.label);
                            }
                        });

                    });
                }, 1000);
            }
            
            if(triptype == 8){
                setTimeout(function() {
                    $.getJSON(SITEURL + 'public/data/dynamic/carhotelmaster.json', function(source) {
                        $(".airport_searchsdd").autocomplete({
                            minLength: 3,
                            autoFocus: true,
                            source: function(request, response) {
                                var term = $.ui.autocomplete.escapeRegex(request.term),
                                    startsWithMatcher = new RegExp("^" + term, "i"),
                                    startsWith = $.grep(source, function(value) {
                                      //  alert(value.label);
                                       return startsWithMatcher.test(value.label);

                                    }),

                                    containsMatcher = new RegExp(term, "i"),
                                    contains = $.grep(source, function(value) {
                                        return $.inArray(value, startsWith) < 0 &&
                                            containsMatcher.test(value.label);
                                    });
                                //console.log(startsWith.concat(contains));
                                response(startsWith.concat(contains));
                            },
                            response: function(e) {
                                //console.log(e);
                            },
                            select: function(event, ui) {
                                var index = $(this).attr('index');
                                var value = ui.item.label;
                                var dddd = value.split(',');
                                ui.item.value = dddd[0] + '(' + ui.item.label + ')';
                                $('.apendn_' + index).val(dddd[0]);
                                $('.fromText_' + index).html(dddd[1]);
                                $('#mytrip_city_' + index).val(dddd[1]);
                                $('#search_city_' + index).val(ui.item.label);
                            }
                        });

                    });
                }, 1000);
            }


    }

    $( "#car-select" ).change(function() {
        var triptype = $('#car-select').val();
        if(triptype == 1){
            $('.outstaion').show();
            $('.local').hide();
            $('.transfer').hide();

                setTimeout(function() {
                    $.getJSON(SITEURL + 'public/data/dynamic/carcitymaster.json', function(source) {
                        $(".airport_searchsdd").autocomplete({
                            minLength: 3,
                            autoFocus: true,
                            source: function(request, response) {
                                var term = $.ui.autocomplete.escapeRegex(request.term),
                                    startsWithMatcher = new RegExp("^" + term, "i"),
                                    startsWith = $.grep(source, function(value) {
                                      //  alert(value.label);
                                       return startsWithMatcher.test(value.label);

                                    }),

                                    containsMatcher = new RegExp(term, "i"),
                                    contains = $.grep(source, function(value) {
                                        return $.inArray(value, startsWith) < 0 &&
                                            containsMatcher.test(value.label);
                                    });
                                //console.log(startsWith.concat(contains));
                                response(startsWith.concat(contains));
                            },
                            response: function(e) {
                                //console.log(e);
                            },
                            select: function(event, ui) {
                                var index = $(this).attr('index');
                                var value = ui.item.label;
                                var dddd = value.split(',');
                                ui.item.value = dddd[0] + '(' + ui.item.label + ')';
                                $('.apendn_' + index).val(dddd[0]);
                                $('.fromText_' + index).html(dddd[1]);
                                $('#mytrip_city_' + index).val(dddd[1]);
                                $('#search_city_' + index).val(ui.item.label);
                            }
                        });

                    });
                }, 1000);


                setTimeout(function() {
                    $.getJSON(SITEURL + 'public/data/dynamic/cardestinationmaster.json', function(source) {
                        $(".airport_searchdestin").autocomplete({
                            minLength: 3,
                            autoFocus: true,
                            source: function(request, response) {
                                var term = $.ui.autocomplete.escapeRegex(request.term),
                                    startsWithMatcher = new RegExp("^" + term, "i"),
                                    startsWith = $.grep(source, function(value) {
                                      //  alert(value.label);
                                       return startsWithMatcher.test(value.label);

                                    }),

                                    containsMatcher = new RegExp(term, "i"),
                                    contains = $.grep(source, function(value) {
                                        return $.inArray(value, startsWith) < 0 &&
                                            containsMatcher.test(value.label);
                                    });
                                //console.log(startsWith.concat(contains));
                                response(startsWith.concat(contains));
                            },
                            response: function(e) {
                                //console.log(e);
                            },
                            select: function(event, ui) {
                                var index = $(this).attr('index');
                                var value = ui.item.label;
                                var dddd = value.split(',');
                                ui.item.value = dddd[0] + '(' + ui.item.label + ')';
                                $('.apendn_' + index).val(dddd[0]);
                                $('.fromText_' + index).html(dddd[1]);
                                $('#mytrip_city_' + index).val(dddd[1]);
                                $('#search_city_' + index).val(ui.item.label);
                            }
                        });

                    });
                }, 1000);




        }
        
        if(triptype == 2){
            $('.outstaion').hide();
            $('.transfer').hide();
            $('.local').show();

                setTimeout(function() {
                    $.getJSON(SITEURL + 'public/data/dynamic/carcitymaster.json', function(source) {
                        $(".airport_searchsdd").autocomplete({
                            minLength: 3,
                            autoFocus: true,
                            source: function(request, response) {
                                var term = $.ui.autocomplete.escapeRegex(request.term),
                                    startsWithMatcher = new RegExp("^" + term, "i"),
                                    startsWith = $.grep(source, function(value) {
                                      //  alert(value.label);
                                       return startsWithMatcher.test(value.label);

                                    }),

                                    containsMatcher = new RegExp(term, "i"),
                                    contains = $.grep(source, function(value) {
                                        return $.inArray(value, startsWith) < 0 &&
                                            containsMatcher.test(value.label);
                                    });
                                //console.log(startsWith.concat(contains));
                                response(startsWith.concat(contains));
                            },
                            response: function(e) {
                                //console.log(e);
                            },
                            select: function(event, ui) {
                                var index = $(this).attr('index');
                                var value = ui.item.label;
                                var dddd = value.split(',');
                                ui.item.value = dddd[0] + '(' + ui.item.label + ')';
                                $('.apendn_' + index).val(dddd[0]);
                                $('.fromText_' + index).html(dddd[1]);
                                $('#mytrip_city_' + index).val(dddd[1]);
                                $('#search_city_' + index).val(ui.item.label);
                            }
                        });

                    });
                }, 1000);
        }
        
        if(triptype == 3){
           $('.outstaion').hide();
           $('.local').hide();
           $('.transfer').show();
           $("#car_airport").prop("checked", true);
           
           setTimeout(function() {
                    $.getJSON(SITEURL + 'public/data/dynamic/carcitymaster.json', function(source) {
                        $(".airport_searchsdd").autocomplete({
                            minLength: 3,
                            autoFocus: true,
                            source: function(request, response) {
                                var term = $.ui.autocomplete.escapeRegex(request.term),
                                    startsWithMatcher = new RegExp("^" + term, "i"),
                                    startsWith = $.grep(source, function(value) {
                                      //  alert(value.label);
                                       return startsWithMatcher.test(value.label);

                                    }),

                                    containsMatcher = new RegExp(term, "i"),
                                    contains = $.grep(source, function(value) {
                                        return $.inArray(value, startsWith) < 0 &&
                                            containsMatcher.test(value.label);
                                    });
                                //console.log(startsWith.concat(contains));
                                response(startsWith.concat(contains));
                            },
                            response: function(e) {
                                //console.log(e);
                            },
                            select: function(event, ui) {
                                var index = $(this).attr('index');
                                var value = ui.item.label;
                                var dddd = value.split(',');
                                ui.item.value = dddd[0] + '(' + ui.item.label + ')';
                                $('.apendn_' + index).val(dddd[0]);
                                $('.fromText_' + index).html(dddd[1]);
                                $('#mytrip_city_' + index).val(dddd[1]);
                                $('#search_city_' + index).val(ui.item.label);
                            }
                        });

                    });
                }, 1000);


        }

    
    });


Youez - 2016 - github.com/yon3zu
LinuXploit