403Webshell
Server IP : 66.29.153.156  /  Your IP : 216.73.216.151
Web Server : LiteSpeed
System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User : lastyfjz ( 1521)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/lastyfjz/dermalaserclinic.co.uk/wp-content/plugins/wp-maintenance-mode/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/lastyfjz/dermalaserclinic.co.uk/wp-content/plugins/wp-maintenance-mode/assets/js/scripts.js
jQuery(function($) {
    /**
     * COUNTDOWN
     */
    var countdown_el = $('.countdown');

    if (countdown_el.length > 0) {
        var countDate = new Date(countdown_el.data('end'));

        countdown_el.countdown({
            until: countDate,
            compact: true,
            layout: '<span class="day">{dn}</span> <span class="separator">:</span> <span class="hour">{hnn}</span> <span class="separator">:</span> <span class="minutes">{mnn}</span> <span class="separator">:</span> <span class="seconds">{snn}</span>'
        });
    }

    /**
     * SOCIAL LINKS
     */
    var social_el = $('.social');

    if (social_el.length > 0) {
        var link_target = social_el.data('target');

        if (link_target == 1) {
            social_el.find('a').attr('target', '_blank');
        }
    }

    /**
     * SUBSCRIBE FORM
     */
    var subscribe_form = $('.subscribe_form');

    if (subscribe_form.length > 0) {
        // validate form
        subscribe_form.validate({
            submitHandler: function(form) {
                var subscribe_form_data = 'action=wpmm_add_subscriber&' + subscribe_form.serialize();

                $.post(wpmmVars.ajaxURL, subscribe_form_data, function(response) {
                    if (!response.success) {
                        alert(response.data);
                        return false;
                    }

                    $('.subscribe_wrapper').html(response.data);
                    
                }, 'json');

                return false;
            }
        });
    }

    /**
     * CONTACT FORM
     */
    if ($('.contact').length > 0) {
        // show form
        $('body').on('click', '.contact_us', function() {
            var open_contact = $(this).data('open'),
                    close_contact = $(this).data('close');

            $('.contact').fadeIn(700);
            $('.' + open_contact).addClass(close_contact);
        });

        // validate form
        var contact_form = $('.contact_form');

        contact_form.validate({
            submitHandler: function(form) {
                var contact_form_data = 'action=wpmm_send_contact&' + contact_form.serialize();

                $.post(wpmmVars.ajaxURL, contact_form_data, function(response) {
                    if (!response.success) {
                        alert(response.data);
                        return false;
                    }

                    contact_form.parent().append('<div class="response">' + response.data + '</div>');
                    contact_form.hide();

                    setTimeout(function() {
                        $('.contact').hide();
                        contact_form.parent().find('.response').remove();
                        contact_form.trigger('reset');
                        contact_form.show();
                    }, 2000);
                }, 'json');

                return false;
            }
        });

        // hide form
        $('.close-contact_form').on('click', function(e) {
            $('.contact').fadeOut(200);
        });

        $('body').on('click', '.contact', function(e) {
            if ($(e.target).hasClass('contact')) {
                var close_contact = $('.contact_us').data('close');
                $('.form', $(this)).removeClass(close_contact);

                $(this).fadeOut(200);
            }
        });
    }
    
    /**
     * RESPONSIVE VIDEO EMBEDS
     */
    $('.wrap h2').fitVids({
        customSelector: 'iframe[src*="dailymotion.com"]'
    });
});

Youez - 2016 - github.com/yon3zu
LinuXploit