update assets
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
// Open article on click without an anchor-tag.
|
||||
function openArticle(link){
|
||||
window.location.href=link;
|
||||
}
|
||||
|
||||
if(cookieSet("InfoBoxHidden")){
|
||||
let element = document.getElementById("infoBox");
|
||||
element.classList.toggle("hidden");
|
||||
@@ -31,24 +26,12 @@ function cookieSet(cname) {
|
||||
let ca = decodedCookie.split(';');
|
||||
for(let i = 0; i < ca.length; i++) {
|
||||
let c = ca[i];
|
||||
while (c.charAt(0) == ' ') {
|
||||
while (c.charAt(0) === ' ') {
|
||||
c = c.substring(1);
|
||||
}
|
||||
if (c.indexOf(name) == 0) {
|
||||
if (c.indexOf(name) === 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
var spy = new Gumshoe('#scrollspy-subNav a', {
|
||||
/***** Scrollspy *****/ // Active classes
|
||||
navClass: 'active', // applied to the nav list item
|
||||
});
|
||||
|
||||
/***** SmoothScroll *****/ // All animations will take exactly 500ms
|
||||
var scroll = new SmoothScroll('a[href*="#"]', {
|
||||
speed: 750,
|
||||
speedAsDuration: true,
|
||||
easing: 'easeInOutQuad'
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user