MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/public_html/me/wp-content/plugins/ajax-load-more/admin/js/libs/jquery.drops.js
var drops = drops || {};

jQuery(document).ready(function($) {
   "use strict"; 
    
    drops.dropdown = function(e) {
        var el = e.parent();
        var dropdown = $('.alm-dropdown', el);
        var text = $('input[type="text"]', el);
        
        if($(el).hasClass('active')){//If is currently active, hide it
            el.removeClass('active');
            $('.alm-dropdown', el).removeClass('active');
            return false;
        }
        else if($('.alm-dropdown').hasClass('active')){
            $('.alm-dropdown').each(function(i){
                $(this).removeClass('active');
                $(this).parent().removeClass('active');
            });
        }    
        
        $('.alm-dropdown').removeClass('active');//remove active states from currently open dropdowns
        el.addClass('active');
        $('.alm-dropdown', el).addClass('active');
        text.focus(); //Focus on input boxes
        
        $(window).unbind('click').bind('click', drops.closeDropDown); // Bind click event to site container   
        
        dropdown.unbind('click').bind('click', function(event){
            //event.stopPropagation(); 
        }); 
        //http://stackoverflow.com/questions/10439779/closing-modal-popup-by-clicking-away-from-it
    };
    drops.closeDropDown = function() {
        $('.alm-dropdown').each(function(i) {
            $(this).removeClass('active');
            $(this).parent().removeClass('active');
        });
    };    
    
    //Dropdown links
    $(document).on('click', '.alm-drop-btn a.target', function(){
         var e = $(this);
         drops.dropdown(e);
         return false;
    });
    
    
    
    
});