feat: Add initial code
All checks were successful
Build Docker / Build Image (push) Successful in 39s
All checks were successful
Build Docker / Build Image (push) Successful in 39s
This commit is contained in:
9
templates/assets/js/bs-init.js
Normal file
9
templates/assets/js/bs-init.js
Normal file
@@ -0,0 +1,9 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var charts = document.querySelectorAll('[data-bss-chart]');
|
||||
|
||||
for (var chart of charts) {
|
||||
// Create the chart
|
||||
chart.chart = new Chart(chart, JSON.parse(chart.dataset.bssChart));
|
||||
}
|
||||
}, false);
|
||||
|
||||
0
templates/assets/js/bundle.js
Normal file
0
templates/assets/js/bundle.js
Normal file
7
templates/assets/js/chart.min.js
vendored
Normal file
7
templates/assets/js/chart.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
26
templates/assets/js/startup-modern.js
Normal file
26
templates/assets/js/startup-modern.js
Normal file
@@ -0,0 +1,26 @@
|
||||
(function() {
|
||||
"use strict"; // Start of use strict
|
||||
|
||||
var mainNav = document.querySelector('#mainNav');
|
||||
|
||||
if (mainNav) {
|
||||
|
||||
// Collapse Navbar
|
||||
var collapseNavbar = function() {
|
||||
|
||||
var scrollTop = (window.pageYOffset !== undefined) ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop;
|
||||
|
||||
if (scrollTop > 100) {
|
||||
mainNav.classList.add("navbar-shrink");
|
||||
} else {
|
||||
mainNav.classList.remove("navbar-shrink");
|
||||
}
|
||||
};
|
||||
// Collapse now if page is not at top
|
||||
collapseNavbar();
|
||||
// Collapse the navbar when page is scrolled
|
||||
document.addEventListener("scroll", collapseNavbar);
|
||||
}
|
||||
|
||||
})(); // End of use strict
|
||||
|
||||
Reference in New Issue
Block a user