Don't use CDN anymore

This commit is contained in:
nemunaire 2023-02-09 11:48:50 +01:00
parent bf81834af7
commit 0f01ea15d4
4 changed files with 15 additions and 9 deletions

View File

@ -1,4 +1,4 @@
<nav class="navbar navbar-expand-md sticky-top navbar-light bg-light">
<nav class="navbar navbar-expand-md sticky-top navbar-light bg-light" id="mainnav">
<div class="container">
<a class="h1 navbar-brand mb-0" href="/">
<svg version="1.1" viewBox="7 5 100 15" aria-labelledby="title" height="25">

View File

@ -1,15 +1,12 @@
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="/js/jquery.slim.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script>
window.addEventListener("scroll", function() {
if (window.scrollY > 100) {
$("nav.navbar").css("box-shadow", "0 0px 3px 0 #1cb487")
$("nav.navbar").css("border-bottom", "1px solid #1cb487")
document.getElementById('mainnav').classList.add("scrolled");
} else {
$("nav.navbar").css("box-shadow", "none")
$("nav.navbar").css("border-bottom", "1px solid #f8f9fa")
document.getElementById('mainnav').classList.remove("scrolled");
}
});
$("nav.navbar").css("box-shadow", "none")
$("nav.navbar").css("border-bottom", "1px solid #f8f9fa")
document.getElementById('mainnav').classList.add("beginscroll");
</script>

7
static/js/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

2
static/js/jquery.slim.min.js vendored Normal file

File diff suppressed because one or more lines are too long