@itcenter-layout/masterpage
Advanced tools
Comparing version 1.1.1 to 1.2.0
/*! | ||
Itcenter masterpage v1.1.1 | ||
Itcenter masterpage v1.2.0 | ||
*/ | ||
@@ -105,2 +105,9 @@ var searchLoad = function () { | ||
var navWidth = document.documentElement.clientWidth; | ||
if(navWidth <= 767) { | ||
document.body.classList.remove("show-menu"); | ||
} else { | ||
document.body.classList.add("show-menu"); | ||
} | ||
var menuLoad = function () { | ||
@@ -146,6 +153,9 @@ var el = document.getElementById("nav-collapse"); | ||
var navWidth = document.getElementsByClassName("navbar")[0].clientWidth; | ||
var menu = document.getElementsByTagName("menu")[0]; | ||
if(navWidth <= 767) { | ||
body.classList.remove("show-menu"); | ||
menu.classList.add("transition"); | ||
} else { | ||
body.classList.add("show-menu"); | ||
menu.classList.remove("transition"); | ||
} | ||
@@ -152,0 +162,0 @@ } |
{ | ||
"name": "@itcenter-layout/masterpage", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "masterpage", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
47196
12
1207