Comparing version 3.1.1 to 3.1.2
function hideAllButCurrent(){ | ||
//by default all submenut items are hidden | ||
//but we need to rehide them for search | ||
document.querySelectorAll("nav > ul").forEach(function(parent) { | ||
if (parent.className.indexOf("collapse_top") !== -1) { | ||
parent.style.display = "none"; | ||
} | ||
}); | ||
document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) { | ||
parent.style.display = "none"; | ||
}); | ||
document.querySelectorAll("nav > h3").forEach(function(section) { | ||
if (section.className.indexOf("collapsed_header") !== -1) { | ||
section.addEventListener("click", function(){ | ||
if (section.nextSibling.style.display === "none") { | ||
section.nextSibling.style.display = "block"; | ||
} else { | ||
section.nextSibling.style.display = "none"; | ||
} | ||
}); | ||
} | ||
}); | ||
@@ -13,2 +29,5 @@ //only current page (if it exists) should be opened | ||
if (file === href) { | ||
if (parent.parentNode.parentNode.className.indexOf("collapse_top") !== -1) { | ||
parent.parentNode.parentNode.style.display = "block"; | ||
} | ||
parent.parentNode.querySelectorAll("ul li").forEach(function(elem) { | ||
@@ -15,0 +34,0 @@ elem.style.display = "block"; |
@@ -36,2 +36,5 @@ | ||
}); | ||
document.querySelectorAll("nav > ul").forEach(function(elem) { | ||
elem.style.display = "block"; | ||
}); | ||
//hide all results | ||
@@ -83,3 +86,16 @@ document.querySelectorAll("nav > ul > li > ul li").forEach(function(elem) { | ||
}); | ||
document.querySelectorAll("nav > ul.collapse_top").forEach(function(parent) { | ||
var countVisible = 0; | ||
parent.querySelectorAll("li").forEach(function(elem) { | ||
if (elem.style.display !== "none") { | ||
countVisible++; | ||
} | ||
}); | ||
if (countVisible == 0) { | ||
//has no child at all and does not contain text | ||
parent.style.display = "none"; | ||
} | ||
}); | ||
} | ||
}); |
{ | ||
"name": "omnibelt", | ||
"description": "A utility belt that normalizes and wraps `Ramda` and `Lodash/FP`.", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "src/index.js", |
@@ -104,2 +104,6 @@ # Omnibelt | ||
- `3.1.2` | ||
- Added methods: | ||
- `debounceLeading` | ||
- `debounceTrailing` | ||
- `3.1.1` | ||
@@ -106,0 +110,0 @@ - Added methods: |
@@ -32,2 +32,9 @@ /** | ||
* @memberof module:lodash | ||
* @name deburr | ||
* @see {@link https://github.com/lodash/lodash/wiki/FP-Guide|FP-Guide For Actual Interface} | ||
* @see {@link https://lodash.com/docs/4.17.5#deburr|_.deburr} | ||
*/ | ||
/** | ||
* @func | ||
* @memberof module:lodash | ||
* @name escape | ||
@@ -229,2 +236,9 @@ * @see {@link https://github.com/lodash/lodash/wiki/FP-Guide|FP-Guide For Actual Interface} | ||
* @memberof module:lodash | ||
* @name size | ||
* @see {@link https://github.com/lodash/lodash/wiki/FP-Guide|FP-Guide For Actual Interface} | ||
* @see {@link https://lodash.com/docs/4.17.5#size|_.size} | ||
*/ | ||
/** | ||
* @func | ||
* @memberof module:lodash | ||
* @name trim | ||
@@ -251,2 +265,9 @@ * @see {@link https://github.com/lodash/lodash/wiki/FP-Guide|FP-Guide For Actual Interface} | ||
* @memberof module:lodash | ||
* @name truncate | ||
* @see {@link https://github.com/lodash/lodash/wiki/FP-Guide|FP-Guide For Actual Interface} | ||
* @see {@link https://lodash.com/docs/4.17.5#truncate|_.truncate} | ||
*/ | ||
/** | ||
* @func | ||
* @memberof module:lodash | ||
* @name unescape | ||
@@ -253,0 +274,0 @@ * @see {@link https://github.com/lodash/lodash/wiki/FP-Guide|FP-Guide For Actual Interface} |
@@ -9,2 +9,4 @@ module.exports.allEqual = require('./all-equal'); | ||
module.exports.debounce = require('./debounce'); | ||
module.exports.debounceLeading = require('./debounce-leading'); | ||
module.exports.debounceTrailing = require('./debounce-trailing'); | ||
module.exports.defaultToStrict = require('./default-to-strict'); | ||
@@ -11,0 +13,0 @@ module.exports.defer = require('./defer'); |
@@ -34,2 +34,8 @@ /** | ||
* @memberof module:ramda | ||
* @name addIndexRight | ||
* @see {@link http://ramdajs.com/docs/#addIndexRight|R.addIndexRight} | ||
*/ | ||
/** | ||
* @func | ||
* @memberof module:ramda | ||
* @name adjust | ||
@@ -323,2 +329,8 @@ * @see {@link http://ramdajs.com/docs/#adjust|R.adjust} | ||
* @memberof module:ramda | ||
* @name dropRepeatsBy | ||
* @see {@link http://ramdajs.com/docs/#dropRepeatsBy|R.dropRepeatsBy} | ||
*/ | ||
/** | ||
* @func | ||
* @memberof module:ramda | ||
* @name dropRepeatsWith | ||
@@ -1236,2 +1248,8 @@ * @see {@link http://ramdajs.com/docs/#dropRepeatsWith|R.dropRepeatsWith} | ||
* @memberof module:ramda | ||
* @name swap | ||
* @see {@link http://ramdajs.com/docs/#swap|R.swap} | ||
*/ | ||
/** | ||
* @func | ||
* @memberof module:ramda | ||
* @name symmetricDifference | ||
@@ -1238,0 +1256,0 @@ * @see {@link http://ramdajs.com/docs/#symmetricDifference|R.symmetricDifference} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
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
3818956
241
5838
329
2