HEX
Server: Apache/2.4.49 (FreeBSD) OpenSSL/1.0.2s-freebsd PHP/5.6.36
System: FreeBSD hosting.icon.bg 11.3-RELEASE-p13 FreeBSD 11.3-RELEASE-p13 #0: Tue Sep 1 06:56:51 UTC 2020 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
User: ftpuser (1002)
PHP: 5.6.36
Disabled: NONE
Upload Files
File: /hosting/kak.bg/web/wp-content/themes/vlog/vlog/assets/js/admin/global.js
(function($) {

    "use strict";

    $(document).ready(function() {

        $('.vlog-redux-marker').each(function() {
            var elem = $(this);
            elem.parents('tr:first').css({ display: 'none' }).prev('tr').css('border-bottom', 'none');
            var group = elem.parents('.redux-group-tab:first');
            if (!group.hasClass('sectionsChecked')) {
                group.addClass('sectionsChecked');
                var test = group.find('.redux-section-indent-start h3');
                jQuery.each(
                    test,
                    function(key, value) {
                        jQuery(value).css('margin-top', '20px');
                    }
                );
                
                if (group.find('h3:first').css('margin-top') == "20px") {
                    group.find('h3:first').css('margin-top', '0');
                }
            }

        });

        $("body").on('click', '#vlog_welcome_box_hide', function(e) {
            e.preventDefault();
            $(this).parent().fadeOut(300).remove();
            $.post(ajaxurl, { action: 'vlog_hide_welcome' }, function(response) {});
        });

        $("body").on('click', '#vlog_update_box_hide', function(e) {
            e.preventDefault();
            $(this).parent().remove();
            $.post(ajaxurl, { action: 'vlog_update_version' }, function(response) {});
        });

        $('body').on('click', '.mks-twitter-share-button', function(e) {
            e.preventDefault();
            var data = $(this).attr('data-url');
            vlog_social_share(data);
        });

    });

    function vlog_social_share(data) {
        window.open(data, "Share", 'height=500,width=760,top=' + ($(window).height() / 2 - 250) + ', left=' + ($(window).width() / 2 - 380) + 'resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0');
    }

})(jQuery);