403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/themes/education-zone/inc/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/themes/education-zone/inc/js/customize.js
(function (api) {

    // Extends our custom "example-1" section.
    api.sectionConstructor['pro-section'] = api.Section.extend({

        // No events for this type of section.
        attachEvents: function () { },

        // Always make the section active.
        isContextuallyActive: function () {
            return true;
        }
    });

})(wp.customize);

jQuery(document).ready(function ($) {

    // Scroll to Home section starts
    $('body').on('click', '#sub-accordion-panel-education_zone_home_page_settings .control-subsection .accordion-section-title', function (event) {
        var section_id = $(this).parent('.control-subsection').attr('id');
        scrollToSection(section_id);
    });

    function scrollToSection(section_id) {
        var preview_section_id = "slider";

        var $contents = jQuery('#customize-preview iframe').contents();

        switch (section_id) {

            case 'accordion-section-header_image':
                preview_section_id = "slider";
                break;

            case 'accordion-section-education_zone_information_settings':
                preview_section_id = "info";
                break;

            case 'accordion-section-education_zone_welcome_section_settings':
                preview_section_id = "welcome";
                break;

            case 'accordion-section-education_zone_featured_courses_section_settings':
                preview_section_id = "courses";
                break;

            case 'accordion-section-education_zone_extra_info_section_settings':
                preview_section_id = "extra_info";
                break;

            case 'accordion-section-education_zone_choose_us_section_settings':
                preview_section_id = "choose";
                break;

            case 'accordion-section-education_zone_testimonials_section_settings':
                preview_section_id = "testimonials";
                break;

            case 'accordion-section-education_zone_blog_section_settings':
                preview_section_id = "blog";
                break;

            case 'accordion-section-education_zone_gallery_section_settings':
                preview_section_id = "gallery";
                break;

            case 'accordion-section-education_zone_search_section_settings':
                preview_section_id = "search";
                break;

        }

        if ($contents.find('#' + preview_section_id).length > 0 && $contents.find('.home').length > 0) {
            $contents.find("html, body").animate({
                scrollTop: $contents.find("#" + preview_section_id).offset().top
            }, 1000);
        }
    }

    $('body').on('click', '.flush-it', function (event) {
        $.ajax({
            url: education_zone_cdata.ajax_url,
            type: 'post',
            data: {
                action: 'flush_local_google_fonts',
                nonce: education_zone_cdata.nonce
            },
            success: function (results) {
                //results can be appended in needed
                $('.flush-it').val(education_zone_cdata.flushit);
            },
        });
    });

});

Youez - 2016 - github.com/yon3zu
LinuXploit