403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/chatme24.com/wwwroot/_server/jquery/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/_server/jquery//jquery.locationrefined.js
(function($) {
    $.fn.locationrefined = function (options) {

       return this.each(function() {
            options = $.extend({
                    location: 'ajax.php',
                    elState: '#state',
                    elCity: '#city',
                    elAll: $('#country, #state, #city'),
                    emptyOption: 'Select All',
                    callback: null,
            }, options);

            var container = $(this),
                state = $(options.elState),
                city = $(options.elCity),
                loc = $('#country, #state, #city');

            container
                .on('change', function() {
                    var cmd = $(this).data('location');
                    $.ajax({type: 'POST',
                            url: options.location,
                            cache: false,
                            headers: {'cache-control': 'no-cache'},
                            data: {cmd:cmd,
                                   select_id:this.value,
                                   filter:'1',
                                   list: '0'},
                            //timeout: 5000,
                            beforeSend: function(){
                                loc.prop('disabled', true).parent('.jq-selectbox').addClass('disabled')
                                                          .find('.jq-selectbox__dropdown').remove();

                            },
                            success: function(res){
                                var data=checkDataAjax(res);
                                if (data) {
                                    var option='<option value="0">' + options.emptyOption + '</option>';
                                    switch (cmd) {
                                        case 'geo_states':
                                            state.html(option + data.list);
                                            city.html(option);
                                            break
                                        case 'geo_cities':
                                            city.html(option + data.list);
                                            break
                                    }

                                    if (typeof options.callback === 'function') {
                                        options.callback();
                                    }
                                }
                                loc.prop('disabled', false).trigger('refresh');
                            }
                    });
                })
         });
    };
})(jQuery)

Youez - 2016 - github.com/yon3zu
LinuXploit