ROOTPLOIT
Server: LiteSpeed
System: Linux in-mum-web1878.main-hosting.eu 5.14.0-570.21.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 11 07:22:35 EDT 2025 x86_64
User: u435929562 (435929562)
PHP: 7.4.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: /home/u435929562/domains/events.peacockindia.in/public_html/js/scripts.js
( function( $ ) {
    $(document).ready(function (){
      
      // Live Search
        $('#live-search-faux-input').on('click', function() {
            $('.live-search-modal').fadeIn(500);
            $('input#live-search-input').focus();
            $('#live-search-input').addClass('live-search-to-show');
        });
        $('input#live-search-input').on('input', function() {
            if ( this.value.length >= 3 ) {
                $.ajax({
                    url: live_search.ajax_url, // use the globally declared variable
                    type: 'POST',
                    data: {
                        action: 'live_search', // Call the PHP function
                        keyword: $('#live-search-input').val()
                    },
                    success: function(data) {
                        $('.live-search-reset-btn').fadeIn(500);
                        $('.live-search-results').delay(500).slideDown(400).html(data);
                        $('.live-search-result').each(function(index) {
                            $(this).delay(500*index).fadeTo(400, 1);
                        });
                    }
                });
            } else {
                $('.live-search-results').html('');
            }
        });
        $('.live-search-reset-btn').on('click', function() {
            $('.live-search-results').html('').slideUp();
        });
        $('.live-search-close').on('click', function() {
            $('.live-search-modal').fadeOut(500);
            $('#live-search-input').removeClass('live-search-to-show').val('');
        });
      
    });
} )( jQuery );