First Commit
This commit is contained in:
+6312
File diff suppressed because it is too large
Load Diff
Executable
+1
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
Executable
+1
File diff suppressed because one or more lines are too long
+4447
File diff suppressed because it is too large
Load Diff
Executable
+1
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
Executable
+1
File diff suppressed because one or more lines are too long
+4494
File diff suppressed because it is too large
Load Diff
Executable
+1
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
Executable
+1
File diff suppressed because one or more lines are too long
Executable
+49
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* SysCMS - Content Management System
|
||||
*
|
||||
* Copyright (c) 2025 Marco Costa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Author: Marco Costa
|
||||
* Email: contato@syspanel.com.br
|
||||
* Project: SysCMS
|
||||
*
|
||||
* This software is licensed, not sold.
|
||||
* Permission is granted to use this software
|
||||
* subject to the terms of the SysCMS Commercial License.
|
||||
*
|
||||
* Redistribution, sublicensing, resale, or
|
||||
* disclosure of this software, in whole or in part,
|
||||
* is strictly prohibited without prior written permission.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
||||
*/
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Auto-hide sidebar on mobile
|
||||
const sidebarToggle = document.getElementById('sidebarToggle');
|
||||
const layoutSidenav = document.getElementById('layoutSidenav');
|
||||
const content = document.getElementById('layoutSidenav_content');
|
||||
|
||||
if (sidebarToggle && layoutSidenav && content) {
|
||||
sidebarToggle.addEventListener('click', function() {
|
||||
layoutSidenav.classList.toggle('sb-sidenav-toggled');
|
||||
|
||||
// Adjust content margin on mobile
|
||||
if (window.innerWidth < 768) {
|
||||
content.style.marginLeft = '0';
|
||||
} else {
|
||||
content.style.marginLeft = '250px';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Handle window resize
|
||||
window.addEventListener('resize', function() {
|
||||
if (window.innerWidth < 768) {
|
||||
content.style.marginLeft = '0';
|
||||
} else {
|
||||
content.style.marginLeft = '250px';
|
||||
}
|
||||
});
|
||||
});
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
/*!
|
||||
* Start Bootstrap - SB Admin v7.0.7 (https://startbootstrap.com/template/sb-admin)
|
||||
* Copyright 2013-2023 Start Bootstrap
|
||||
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-sb-admin/blob/master/LICENSE)
|
||||
*/
|
||||
//
|
||||
// Scripts
|
||||
//
|
||||
|
||||
window.addEventListener('DOMContentLoaded', event => {
|
||||
|
||||
// Toggle the side navigation
|
||||
const sidebarToggle = document.body.querySelector('#sidebarToggle');
|
||||
if (sidebarToggle) {
|
||||
// Uncomment Below to persist sidebar toggle between refreshes
|
||||
// if (localStorage.getItem('sb|sidebar-toggle') === 'true') {
|
||||
// document.body.classList.toggle('sb-sidenav-toggled');
|
||||
// }
|
||||
sidebarToggle.addEventListener('click', event => {
|
||||
event.preventDefault();
|
||||
document.body.classList.toggle('sb-sidenav-toggled');
|
||||
localStorage.setItem('sb|sidebar-toggle', document.body.classList.contains('sb-sidenav-toggled'));
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user