Comparing version 1.4.71 to 1.4.72
@@ -1,3 +0,3 @@ | ||
class navbar { | ||
constructor(navigation) { | ||
export default class { | ||
constructor(navigation = '.Navigation') { | ||
this.navigation = document.querySelector(navigation); | ||
@@ -13,8 +13,8 @@ this.navToggleBtn = this.navigation.querySelector('.nav-toggle'); | ||
} | ||
SetDataCollapseOnNavToggle(){ | ||
this.navToggleBtn.setAttribute('data-collapse' , (window.innerWidth <= 800)); | ||
SetDataCollapseOnNavToggle() { | ||
this.navToggleBtn.setAttribute('data-collapse', (window.innerWidth <= 800)); | ||
} | ||
ToggleNav(){ | ||
ToggleNav() { | ||
this.navigation.classList.toggle('navIsActive') | ||
} | ||
} |
{ | ||
"name": "fib-maxup", | ||
"style": "css/index.css", | ||
"version": "1.4.71", | ||
"version": "1.4.72", | ||
"description": "a css framework", | ||
@@ -6,0 +6,0 @@ "main": "js/MaxUp.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102317