| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/injazaat/public_html/assets/js/ |
Upload File : |
(function ($) {
"use strict";
$('.color-trigger').on('click', function () {
$(this).parent().toggleClass('visible-palate');
});
$('.color-palate .colors-list .palate').on('click', function() {
var newThemeColor = $(this).attr('data-theme-file');
var targetCSSFile = $('link[id="theme-color-file"]');
$(targetCSSFile).attr('href',newThemeColor);
$('.color-palate .colors-list .palate').removeClass('active');
$(this).addClass('active');
});
var layoutChangerBtn = $(".color-palate .box-version li");
var body = $("body");
layoutChangerBtn.on("click", function(e) {
var $this = $(this);
if ( $this.hasClass("box") ) {
body.addClass("box-layout");
} else {
body.removeClass("box-layout");
};
});
var directionChanger = $(".color-palate .rtl-version li");
var wrapper = $(".page-wrapper");
directionChanger.on("click", function(e) {
var $this = $(this);
if ( $this.hasClass("rtl") ) {
wrapper.addClass("rtl");
} else {
wrapper.removeClass("rtl");
};
});
}(jQuery));