Don't use CDN anymore
This commit is contained in:
parent
bf81834af7
commit
0f01ea15d4
@ -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">
|
<div class="container">
|
||||||
<a class="h1 navbar-brand mb-0" href="/">
|
<a class="h1 navbar-brand mb-0" href="/">
|
||||||
<svg version="1.1" viewBox="7 5 100 15" aria-labelledby="title" height="25">
|
<svg version="1.1" viewBox="7 5 100 15" aria-labelledby="title" height="25">
|
||||||
|
@ -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="/js/jquery.slim.min.js"></script>
|
||||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener("scroll", function() {
|
window.addEventListener("scroll", function() {
|
||||||
if (window.scrollY > 100) {
|
if (window.scrollY > 100) {
|
||||||
$("nav.navbar").css("box-shadow", "0 0px 3px 0 #1cb487")
|
document.getElementById('mainnav').classList.add("scrolled");
|
||||||
$("nav.navbar").css("border-bottom", "1px solid #1cb487")
|
|
||||||
} else {
|
} else {
|
||||||
$("nav.navbar").css("box-shadow", "none")
|
document.getElementById('mainnav').classList.remove("scrolled");
|
||||||
$("nav.navbar").css("border-bottom", "1px solid #f8f9fa")
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("nav.navbar").css("box-shadow", "none")
|
document.getElementById('mainnav').classList.add("beginscroll");
|
||||||
$("nav.navbar").css("border-bottom", "1px solid #f8f9fa")
|
|
||||||
</script>
|
</script>
|
||||||
|
7
static/js/bootstrap.min.js
vendored
Normal file
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
2
static/js/jquery.slim.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user