mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Commit realizando cambios en los roles de los usuarios
This commit is contained in:
1
httpdocs/themes/focus2/js/custom.min.js
vendored
Normal file
1
httpdocs/themes/focus2/js/custom.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
jQuery(window).on("load",function(){$("#preloader").fadeOut(500),$("#main-wrapper").addClass("show")}),function($){"use strict";$("#menu").metisMenu(),$("#checkAll").change(function(){$("td input:checkbox").prop("checked",$(this).prop("checked"))}),$(".nav-control").on("click",function(){$("#main-wrapper").toggleClass("menu-toggle"),$(".hamburger").toggleClass("is-active"),new PerfectScrollbar(".quixnav-scroll")}),$(function(){for(var b=window.location,a=$("ul#menu a").filter(function(){return this.href==b}).addClass("mm-active").parent().addClass("mm-active");a.is("li");)a=a.parent().addClass("mm-show").parent().addClass("mm-active");$("ul#menu>li").on("click",function(){let a=$("body").attr("data-sidebar-style");"mini"===a&&(console.log($(this).find("ul")),$(this).find("ul").stop())})}),$(function(){var a=(window.outerHeight,window.outerHeight);(a>0?a:screen.height)&&$(".content-body").css("min-height",a+60+"px")}),$('a[data-action="collapse"]').on("click",function(a){a.preventDefault(),$(this).closest(".card").find('[data-action="collapse"] i').toggleClass("mdi-arrow-down mdi-arrow-up"),$(this).closest(".card").children(".card-body").collapse("toggle")}),$('a[data-action="expand"]').on("click",function(a){a.preventDefault(),$(this).closest(".card").find('[data-action="expand"] i').toggleClass("icon-size-actual icon-size-fullscreen"),$(this).closest(".card").toggleClass("card-fullscreen")}),$('[data-action="close"]').on("click",function(){$(this).closest(".card").removeClass().slideUp("fast")}),$('[data-action="reload"]').on("click",function(){var a=$(this);a.parents(".card").addClass("card-load"),a.parents(".card").append('<div class="card-loader"><i class=" ti-reload rotate-refresh"></div>'),setTimeout(function(){a.parents(".card").children(".card-loader").remove(),a.parents(".card").removeClass("card-load")},2e3)});let a=$(".header").innerHeight();$(window).scroll(function(){"horizontal"===$("body").attr("data-layout")&&"static"===$("body").attr("data-header-position")&&"fixed"===$("body").attr("data-sidebar-position")&&($(this.window).scrollTop()>=a?$(".quixnav").addClass("fixed"):$(".quixnav").removeClass("fixed"))}),window.addEventListener("resize",function(d){let a=document.querySelector("body"),b=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=document.getElementById("main-wrapper");b>=1216?(a.setAttribute("data-sidebar-style","full"),a.setAttribute("data-sidebar-position","fixed"),a.setAttribute("data-header-position","fixed"),c.classList.remove("menu-toggle")):b<1216&&b>=768?(a.setAttribute("data-sidebar-style","mini"),c.classList.add("menu-toggle"),a.setAttribute("data-sidebar-position","fixed"),a.setAttribute("data-header-position","fixed")):(a.setAttribute("data-sidebar-style","overlay"),c.classList.remove("menu-toggle"))})}(jQuery),$("hamburger").attr("is-active")?$(".quixnav").removeClass("ps"):new PerfectScrollbar(".quixnav-scroll"),$(".btn-number").on("click",function(c){c.preventDefault(),fieldName=$(this).attr("data-field"),type=$(this).attr("data-type");var a=$("input[name='"+fieldName+"']"),b=parseInt(a.val());isNaN(b)?a.val(0):"minus"==type?a.val(b-1):"plus"==type&&a.val(b+1)})
|
||||
9
httpdocs/themes/focus2/js/layout-compact-nav.js
Normal file
9
httpdocs/themes/focus2/js/layout-compact-nav.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
new quixSettings({
|
||||
sidebarStyle: "compact"
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
9
httpdocs/themes/focus2/js/layout-dark.js
Normal file
9
httpdocs/themes/focus2/js/layout-dark.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
new quixSettings({
|
||||
version: "dark"
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
9
httpdocs/themes/focus2/js/layout-fixed-header.js
Normal file
9
httpdocs/themes/focus2/js/layout-fixed-header.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
new quixSettings({
|
||||
headerPosition: "fixed",
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
9
httpdocs/themes/focus2/js/layout-fixed-nav.js
Normal file
9
httpdocs/themes/focus2/js/layout-fixed-nav.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
new quixSettings({
|
||||
sidebarPosition: "fixed"
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
9
httpdocs/themes/focus2/js/layout-full-nav.js
Normal file
9
httpdocs/themes/focus2/js/layout-full-nav.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
new quixSettings({
|
||||
sidebarStyle: "full",
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
9
httpdocs/themes/focus2/js/layout-light.js
Normal file
9
httpdocs/themes/focus2/js/layout-light.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
new quixSettings({
|
||||
version: "light"
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
9
httpdocs/themes/focus2/js/layout-mini-nav.js
Normal file
9
httpdocs/themes/focus2/js/layout-mini-nav.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
new quixSettings({
|
||||
sidebarStyle: "mini"
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
9
httpdocs/themes/focus2/js/layout-rtl.js
Normal file
9
httpdocs/themes/focus2/js/layout-rtl.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
new quixSettings({
|
||||
direction: "rtl"
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
19
httpdocs/themes/focus2/js/quixnav-init.js
Normal file
19
httpdocs/themes/focus2/js/quixnav-init.js
Normal file
@ -0,0 +1,19 @@
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
new quixSettings({
|
||||
typography: "roboto",
|
||||
version: "light",
|
||||
layout: "vertical",
|
||||
headerBg: "color_1",
|
||||
navheaderBg: "color_1",
|
||||
sidebarBg: "color_1",
|
||||
sidebarStyle: "full",
|
||||
sidebarPosition: "fixed",
|
||||
headerPosition: "fixed",
|
||||
containerLayout: "wide",
|
||||
direction: "ltr"
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
345
httpdocs/themes/focus2/js/settings.js
Normal file
345
httpdocs/themes/focus2/js/settings.js
Normal file
@ -0,0 +1,345 @@
|
||||
|
||||
var body = $('body');
|
||||
var html = $('html');
|
||||
|
||||
function quixSettings({typography, version, layout, navheaderBg, headerBg, sidebarStyle, sidebarBg, sidebarPosition, headerPosition, containerLayout, direction}) {
|
||||
"use strict";
|
||||
this.typography = typography || "roboto";
|
||||
this.version = version || "light";
|
||||
this.layout = layout || "vertical";
|
||||
this.navheaderBg = navheaderBg || "color_1";
|
||||
this.headerBg = headerBg || "color_1";
|
||||
this.sidebarStyle = sidebarStyle || "full";
|
||||
this.sidebarBg = sidebarBg || "color_1";
|
||||
this.sidebarPosition = sidebarPosition || "static";
|
||||
this.headerPosition = headerPosition || "static";
|
||||
this.containerLayout = containerLayout || "wide";
|
||||
this.direction = direction || "ltr";
|
||||
|
||||
this.manageVersion();
|
||||
this.manageLayout();
|
||||
this.manageNavHeaderBg();
|
||||
this.manageHeaderBg();
|
||||
this.manageSidebarStyle();
|
||||
this.manageSidebarBg();
|
||||
this.manageSidebarPosition();
|
||||
this.manageHeaderPosition();
|
||||
this.manageContainerLayout();
|
||||
this.manageRtlLayout();
|
||||
this.manageResponsiveSidebar();
|
||||
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageVersion = function() {
|
||||
"use strict";
|
||||
switch(this.version) {
|
||||
case "light":
|
||||
body.attr("data-theme-version", "light");
|
||||
break;
|
||||
case "dark":
|
||||
body.attr("data-theme-version", "dark");
|
||||
break;
|
||||
case "transparent":
|
||||
body.attr("data-theme-version", "transparent");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-theme-version", "light");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageTypography = function() {
|
||||
"use strict";
|
||||
switch(this.version) {
|
||||
case "poppins":
|
||||
body.attr("data-typography", "poppins");
|
||||
break;
|
||||
case "roboto":
|
||||
body.attr("data-typography", "roboto");
|
||||
break;
|
||||
case "opensans":
|
||||
body.attr("data-typography", "opensans");
|
||||
break;
|
||||
case "helvetica":
|
||||
body.attr("data-typography", "helvetica");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-typography", "roboto");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageLayout = function() {
|
||||
"use strict";
|
||||
switch(this.layout) {
|
||||
case "horizontal":
|
||||
this.sidebarStyle === "overlay" ? body.attr("data-sidebar-style", "full") : body.attr("data-sidebar-style", `${this.sidebarStyle}`);
|
||||
body.attr("data-layout", "horizontal");
|
||||
break;
|
||||
case "vertical":
|
||||
body.attr("data-layout", "vertical");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-layout", "vertical");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageNavHeaderBg = function() {
|
||||
"use strict";
|
||||
switch(this.navheaderBg) {
|
||||
case "color_1":
|
||||
body.attr("data-nav-headerbg", "color_1");
|
||||
break;
|
||||
case "color_2":
|
||||
body.attr("data-nav-headerbg", "color_2");
|
||||
break;
|
||||
case "color_3":
|
||||
body.attr("data-nav-headerbg", "color_3");
|
||||
break;
|
||||
case "color_4":
|
||||
body.attr("data-nav-headerbg", "color_4");
|
||||
break;
|
||||
case "color_5":
|
||||
body.attr("data-nav-headerbg", "color_5");
|
||||
break;
|
||||
case "color_6":
|
||||
body.attr("data-nav-headerbg", "color_6");
|
||||
break;
|
||||
case "color_7":
|
||||
body.attr("data-nav-headerbg", "color_7");
|
||||
break;
|
||||
case "color_8":
|
||||
body.attr("data-nav-headerbg", "color_8");
|
||||
break;
|
||||
case "color_9":
|
||||
body.attr("data-nav-headerbg", "color_9");
|
||||
break;
|
||||
case "color_10":
|
||||
body.attr("data-nav-headerbg", "color_10");
|
||||
break;
|
||||
case "image_1":
|
||||
body.attr("data-nav-headerbg", "image_1");
|
||||
break;
|
||||
case "image_2":
|
||||
body.attr("data-nav-headerbg", "image_2");
|
||||
break;
|
||||
case "image_3":
|
||||
body.attr("data-nav-headerbg", "image_3");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-nav-headerbg", "color_1");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageHeaderBg = function() {
|
||||
"use strict";
|
||||
switch(this.headerBg) {
|
||||
case "color_1":
|
||||
body.attr("data-headerbg", "color_1");
|
||||
break;
|
||||
case "color_2":
|
||||
body.attr("data-headerbg", "color_2");
|
||||
break;
|
||||
case "color_3":
|
||||
body.attr("data-headerbg", "color_3");
|
||||
break;
|
||||
case "color_4":
|
||||
body.attr("data-headerbg", "color_4");
|
||||
break;
|
||||
case "color_5":
|
||||
body.attr("data-headerbg", "color_5");
|
||||
break;
|
||||
case "color_6":
|
||||
body.attr("data-headerbg", "color_6");
|
||||
break;
|
||||
case "color_7":
|
||||
body.attr("data-headerbg", "color_7");
|
||||
break;
|
||||
case "color_8":
|
||||
body.attr("data-headerbg", "color_8");
|
||||
break;
|
||||
case "color_9":
|
||||
body.attr("data-headerbg", "color_9");
|
||||
break;
|
||||
case "color_10":
|
||||
body.attr("data-headerbg", "color_10");
|
||||
break;
|
||||
case "transparent":
|
||||
body.attr("data-headerbg", "transparent");
|
||||
break;
|
||||
case "gradient_1":
|
||||
body.attr("data-headerbg", "gradient_1");
|
||||
break;
|
||||
case "gradient_2":
|
||||
body.attr("data-headerbg", "gradient_2");
|
||||
break;
|
||||
case "gradient_3":
|
||||
body.attr("data-headerbg", "gradient_3");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-headerbg", "color_1");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageSidebarStyle = function() {
|
||||
"use strict";
|
||||
switch(this.sidebarStyle) {
|
||||
case "full":
|
||||
body.attr("data-sidebar-style", "full");
|
||||
break;
|
||||
case "mini":
|
||||
body.attr("data-sidebar-style", "mini");
|
||||
break;
|
||||
case "compact":
|
||||
body.attr("data-sidebar-style", "compact");
|
||||
break;
|
||||
case "modern":
|
||||
body.attr("data-sidebar-style", "modern");
|
||||
break;
|
||||
case "icon-hover":
|
||||
body.attr("data-sidebar-style", "icon-hover");
|
||||
|
||||
$('.quixnav').on('hover', function () {
|
||||
$('#main-wrapper').addClass('icon-hover-toggle');
|
||||
}, function() {
|
||||
$('#main-wrapper').removeClass('icon-hover-toggle');
|
||||
});
|
||||
break;
|
||||
case "overlay":
|
||||
this.layout === "horizontal" ? body.attr("data-sidebar-style", "full") : body.attr("data-sidebar-style", "overlay");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-sidebar-style", "full");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageSidebarBg = function() {
|
||||
"use strict";
|
||||
switch(this.sidebarBg) {
|
||||
case "color_1":
|
||||
body.attr("data-sibebarbg", "color_1");
|
||||
break;
|
||||
case "color_2":
|
||||
body.attr("data-sibebarbg", "color_2");
|
||||
break;
|
||||
case "color_3":
|
||||
body.attr("data-sibebarbg", "color_3");
|
||||
break;
|
||||
case "color_4":
|
||||
body.attr("data-sibebarbg", "color_4");
|
||||
break;
|
||||
case "color_5":
|
||||
body.attr("data-sibebarbg", "color_5");
|
||||
break;
|
||||
case "color_6":
|
||||
body.attr("data-sibebarbg", "color_6");
|
||||
break;
|
||||
case "color_7":
|
||||
body.attr("data-sibebarbg", "color_7");
|
||||
break;
|
||||
case "color_8":
|
||||
body.attr("data-sibebarbg", "color_8");
|
||||
break;
|
||||
case "color_9":
|
||||
body.attr("data-sibebarbg", "color_9");
|
||||
break;
|
||||
case "color_10":
|
||||
body.attr("data-sibebarbg", "color_10");
|
||||
break;
|
||||
case "image_1":
|
||||
body.attr("data-sibebarbg", "image_1");
|
||||
break;
|
||||
case "image_2":
|
||||
body.attr("data-sibebarbg", "image_2");
|
||||
break;
|
||||
case "image_3":
|
||||
body.attr("data-sibebarbg", "image_3");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-sibebarbg", "color_1");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageSidebarPosition = function() {
|
||||
"use strict";
|
||||
switch(this.sidebarPosition) {
|
||||
case "fixed":
|
||||
this.sidebarStyle === "overlay" && this.layout === "vertical" || this.sidebarStyle === "modern" ? body.attr("data-sidebar-position", "static") : body.attr("data-sidebar-position", "fixed");
|
||||
break;
|
||||
case "static":
|
||||
body.attr("data-sidebar-position", "static");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-sidebar-position", "static");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageHeaderPosition = function() {
|
||||
"use strict";
|
||||
switch(this.headerPosition) {
|
||||
case "fixed":
|
||||
body.attr("data-header-position", "fixed");
|
||||
break;
|
||||
case "static":
|
||||
body.attr("data-header-position", "static");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-header-position", "static");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageContainerLayout = function() {
|
||||
"use strict";
|
||||
switch(this.containerLayout) {
|
||||
case "boxed":
|
||||
if(this.layout === "vertical" && this.sidebarStyle === "full") {
|
||||
body.attr("data-sidebar-style", "overlay");
|
||||
}
|
||||
body.attr("data-container", "boxed");
|
||||
break;
|
||||
case "wide":
|
||||
body.attr("data-container", "wide");
|
||||
break;
|
||||
case "wide-boxed":
|
||||
body.attr("data-container", "wide-boxed");
|
||||
break;
|
||||
default:
|
||||
body.attr("data-container", "wide");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageRtlLayout = function() {
|
||||
"use strict";
|
||||
switch(this.direction) {
|
||||
case "rtl":
|
||||
html.attr("dir", "rtl");
|
||||
html.addClass('rtl');
|
||||
body.attr("direction", "rtl");
|
||||
break;
|
||||
case "ltr":
|
||||
html.attr("dir", "ltr");
|
||||
html.removeClass('rtl');
|
||||
body.attr("direction", "ltr");
|
||||
break;
|
||||
default:
|
||||
html.attr("dir", "ltr");
|
||||
body.attr("direction", "ltr");
|
||||
}
|
||||
}
|
||||
|
||||
quixSettings.prototype.manageResponsiveSidebar = function() {
|
||||
"use strict";
|
||||
const innerWidth = $(window).innerWidth();
|
||||
if(innerWidth < 1200) {
|
||||
body.attr("data-layout", "vertical");
|
||||
body.attr("data-container", "wide");
|
||||
}
|
||||
|
||||
if(innerWidth > 767 && innerWidth < 1200) {
|
||||
body.attr("data-sidebar-style", "mini");
|
||||
}
|
||||
|
||||
if(innerWidth < 768) {
|
||||
body.attr("data-sidebar-style", "overlay");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
122
httpdocs/themes/focus2/js/styleSwitcher.js
Normal file
122
httpdocs/themes/focus2/js/styleSwitcher.js
Normal file
@ -0,0 +1,122 @@
|
||||
|
||||
(function($) {
|
||||
"use strict"
|
||||
|
||||
const body = $('body');
|
||||
const html = $('html');
|
||||
|
||||
//get the DOM elements from right sidebar
|
||||
const typographySelect = $('#typography');
|
||||
const versionSelect = $('#theme_version');
|
||||
const layoutSelect = $('#theme_layout');
|
||||
const sidebarStyleSelect = $('#sidebar_style');
|
||||
const sidebarPositionSelect = $('#sidebar_position');
|
||||
const headerPositionSelect = $('#header_position');
|
||||
const containerLayoutSelect = $('#container_layout');
|
||||
const themeDirectionSelect = $('#theme_direction');
|
||||
|
||||
//change the theme typography controller
|
||||
typographySelect.on('change', function() {
|
||||
body.attr('data-typography', this.value);
|
||||
});
|
||||
|
||||
//change the theme version controller
|
||||
versionSelect.on('change', function() {
|
||||
body.attr('data-theme-version', this.value);
|
||||
});
|
||||
|
||||
//change the sidebar position controller
|
||||
sidebarPositionSelect.on('change', function() {
|
||||
this.value === "fixed" && body.attr('data-sidebar-style') === "modern" && body.attr('data-layout') === "vertical" ?
|
||||
alert("Sorry, Modern sidebar layout dosen't support fixed position!") :
|
||||
body.attr('data-sidebar-position', this.value);
|
||||
});
|
||||
|
||||
//change the header position controller
|
||||
headerPositionSelect.on('change', function() {
|
||||
body.attr('data-header-position', this.value);
|
||||
});
|
||||
|
||||
//change the theme direction (rtl, ltr) controller
|
||||
themeDirectionSelect.on('change', function() {
|
||||
html.attr('dir', this.value);
|
||||
html.attr('class', '');
|
||||
html.addClass(this.value);
|
||||
body.attr('direction', this.value);
|
||||
});
|
||||
|
||||
//change the theme layout controller
|
||||
layoutSelect.on('change', function() {
|
||||
if(body.attr('data-sidebar-style') === 'overlay') {
|
||||
body.attr('data-sidebar-style', 'full');
|
||||
body.attr('data-layout', this.value);
|
||||
return;
|
||||
}
|
||||
|
||||
body.attr('data-layout', this.value);
|
||||
});
|
||||
|
||||
//change the container layout controller
|
||||
containerLayoutSelect.on('change', function() {
|
||||
if(this.value === "boxed") {
|
||||
|
||||
if(body.attr('data-layout') === "vertical" && body.attr('data-sidebar-style') === "full") {
|
||||
body.attr('data-sidebar-style', 'overlay');
|
||||
body.attr('data-container', this.value);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
body.attr('data-container', this.value);
|
||||
});
|
||||
|
||||
//change the sidebar style controller
|
||||
sidebarStyleSelect.on('change', function() {
|
||||
if(body.attr('data-layout') === "horizontal") {
|
||||
if(this.value === "overlay") {
|
||||
alert("Sorry! Overlay is not possible in Horizontal layout.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(body.attr('data-layout') === "vertical") {
|
||||
if(body.attr('data-container') === "boxed" && this.value === "full") {
|
||||
alert("Sorry! Full menu is not available in Vertical Boxed layout.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(this.value === "modern" && body.attr('data-sidebar-position') === "fixed") {
|
||||
alert("Sorry! Modern sidebar layout is not available in the fixed position. Please change the sidebar position into Static.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
body.attr('data-sidebar-style', this.value);
|
||||
|
||||
if(body.attr('data-sidebar-style') === 'icon-hover') {
|
||||
$('.quixnav').on('hover', function () {
|
||||
$('#main-wrapper').addClass('icon-hover-toggle');
|
||||
}, function() {
|
||||
$('#main-wrapper').removeClass('icon-hover-toggle');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
//change the nav-header background controller
|
||||
$('input[name="navigation_header"]').on('click', function() {
|
||||
body.attr('data-nav-headerbg', this.value);
|
||||
});
|
||||
|
||||
//change the header background controller
|
||||
$('input[name="header_bg"]').on('click', function() {
|
||||
body.attr('data-headerbg', this.value);
|
||||
});
|
||||
|
||||
//change the sidebar background controller
|
||||
$('input[name="sidebar_bg"]').on('click', function() {
|
||||
body.attr('data-sibebarbg', this.value);
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user