mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 15:10:22 +00:00
Upgrade bootstrap + sb-admin to latest release versions
This commit is contained in:
parent
4799825738
commit
4f14502bac
10 changed files with 22160 additions and 16912 deletions
16724
dist/bootstrap/css/bootstrap.css
vendored
16724
dist/bootstrap/css/bootstrap.css
vendored
File diff suppressed because it is too large
Load diff
1
dist/bootstrap/css/bootstrap.css.map
vendored
Normal file
1
dist/bootstrap/css/bootstrap.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
6
dist/bootstrap/css/bootstrap.min.css
vendored
Normal file
6
dist/bootstrap/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
8
dist/bootstrap/js/bootstrap.bundle.min.js
vendored
8
dist/bootstrap/js/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
10998
dist/sb-admin-2/css/sb-admin-2.css
vendored
10998
dist/sb-admin-2/css/sb-admin-2.css
vendored
File diff suppressed because it is too large
Load diff
10
dist/sb-admin-2/css/sb-admin-2.min.css
vendored
10
dist/sb-admin-2/css/sb-admin-2.min.css
vendored
File diff suppressed because one or more lines are too long
49
dist/sb-admin-2/js/sb-admin-2.js
vendored
49
dist/sb-admin-2/js/sb-admin-2.js
vendored
|
@ -1,49 +0,0 @@
|
||||||
(function($) {
|
|
||||||
"use strict"; // Start of use strict
|
|
||||||
|
|
||||||
// Toggle the side navigation
|
|
||||||
$("#sidebarToggle, #sidebarToggleTop").on('click', function(e) {
|
|
||||||
$("body").toggleClass("sidebar-toggled");
|
|
||||||
$(".sidebar").toggleClass("toggled");
|
|
||||||
if ($(".sidebar").hasClass("toggled")) {
|
|
||||||
$('.sidebar .collapse').collapse('hide');
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
// Close any open menu accordions when window is resized below 768px
|
|
||||||
$(window).resize(function() {
|
|
||||||
if ($(window).width() < 768) {
|
|
||||||
$('.sidebar .collapse').collapse('hide');
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
// Prevent the content wrapper from scrolling when the fixed side navigation hovered over
|
|
||||||
$('body.fixed-nav .sidebar').on('mousewheel DOMMouseScroll wheel', function(e) {
|
|
||||||
if ($(window).width() > 768) {
|
|
||||||
var e0 = e.originalEvent,
|
|
||||||
delta = e0.wheelDelta || -e0.detail;
|
|
||||||
this.scrollTop += (delta < 0 ? 1 : -1) * 30;
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Scroll to top button appear
|
|
||||||
$(document).on('scroll', function() {
|
|
||||||
var scrollDistance = $(this).scrollTop();
|
|
||||||
if (scrollDistance > 100) {
|
|
||||||
$('.scroll-to-top').fadeIn();
|
|
||||||
} else {
|
|
||||||
$('.scroll-to-top').fadeOut();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Smooth scrolling using jQuery easing
|
|
||||||
$(document).on('click', 'a.scroll-to-top', function(e) {
|
|
||||||
var $anchor = $(this);
|
|
||||||
$('html, body').stop().animate({
|
|
||||||
scrollTop: ($($anchor.attr('href')).offset().top)
|
|
||||||
}, 1000, 'easeInOutExpo');
|
|
||||||
e.preventDefault();
|
|
||||||
});
|
|
||||||
|
|
||||||
})(jQuery); // End of use strict
|
|
7
dist/sb-admin-2/js/sb-admin-2.min.js
vendored
7
dist/sb-admin-2/js/sb-admin-2.min.js
vendored
|
@ -1,7 +0,0 @@
|
||||||
/*!
|
|
||||||
* Start Bootstrap - SB Admin 2 v4.0.7 (https://startbootstrap.com/template-overviews/sb-admin-2)
|
|
||||||
* Copyright 2013-2019 Start Bootstrap
|
|
||||||
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-sb-admin-2/blob/master/LICENSE)
|
|
||||||
*/
|
|
||||||
|
|
||||||
!function(t){"use strict";t("#sidebarToggle, #sidebarToggleTop").on("click",function(o){t("body").toggleClass("sidebar-toggled"),t(".sidebar").toggleClass("toggled"),t(".sidebar").hasClass("toggled")&&t(".sidebar .collapse").collapse("hide")}),t(window).resize(function(){t(window).width()<768&&t(".sidebar .collapse").collapse("hide")}),t("body.fixed-nav .sidebar").on("mousewheel DOMMouseScroll wheel",function(o){if(768<t(window).width()){var e=o.originalEvent,l=e.wheelDelta||-e.detail;this.scrollTop+=30*(l<0?1:-1),o.preventDefault()}}),t(document).on("scroll",function(){100<t(this).scrollTop()?t(".scroll-to-top").fadeIn():t(".scroll-to-top").fadeOut()}),t(document).on("click","a.scroll-to-top",function(o){var e=t(this);t("html, body").stop().animate({scrollTop:t(e.attr("href")).offset().top},1e3,"easeInOutExpo"),o.preventDefault()})}(jQuery);
|
|
11243
dist/sb-admin/css/styles.css
vendored
Normal file
11243
dist/sb-admin/css/styles.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
26
dist/sb-admin/js/scripts.js
vendored
Normal file
26
dist/sb-admin/js/scripts.js
vendored
Normal file
|
@ -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'));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in a new issue