Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/job-board.corals.io/public/assets/themes/compo/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/job-board.corals.io/public/assets/themes/compo/js/color-switch.js
function clearActiveStyle() {
    $(".compo-theme-style").remove();
}

function activateStyle(style) {
    clearActiveStyle();
    $('<link rel="stylesheet" class="compo-theme-style" type="text/css" href="/assets/themes/compo/css/color-options/' + style + '/components.css">').insertAfter("#color-switcher-style");
    $('<link rel="stylesheet" class="compo-theme-style" type="text/css" href="/assets/themes/compo/css/color-options/' + style + '/style.css">').insertAfter("#color-switcher-style");
    Cookies.set('active-style', style);
}

let activeStyle = Cookies.get('active-style');

if (activeStyle) {
    activateStyle(activeStyle)
}

$(window).on('load', function () {
    $('#open-switch').on("click", function() {
        $("#switch").toggleClass("open-switch");
    });

    stylePath = "css/style.css";
    componentsPath = "css/components.css";

    $(".style-option").on("click", function() {
        activateStyle($(this).data('style'));
    });
});

Spamworldpro Mini