build site
This commit is contained in:
@ -23,7 +23,11 @@
|
||||
<link rel="stylesheet" href="prism.css">
|
||||
</head>
|
||||
<script>
|
||||
const search = (node) => Array.from(node.parentElement.getElementsByTagName('a')).forEach(x =>x.style.display = x.getAttribute("href").toUpperCase().indexOf(node.value.toUpperCase()) + 1 ? '' : 'none');
|
||||
const search = (node) => {
|
||||
Array.from(node.parentElement.getElementsByTagName('a')).forEach(x => x.style.display = x.getAttribute("href").toUpperCase().indexOf(node.value.toUpperCase()) + 1 ? '' : 'none');
|
||||
var remove = false, childs = Array.from(node.parentElement.children), toRemove = childs[0];
|
||||
Array.from(node.parentElement.children).forEach(x => x.tagName == 'H3' ? (toRemove.style.display = (remove ? 'none' : ''), toRemove = x, remove = true) : (x.style.display == '' ? remove = false : remove=remove));
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<header style="height: 5.5rem;">
|
||||
@ -37,7 +41,7 @@
|
||||
<nav class="col-md-4 col-lg-3" style="border-top: 0">
|
||||
<input type="text" id="searchInput" onkeyup="search(this)" placeholder="Search for snippet..">
|
||||
<label for="doc-drawer-checkbox" class="button drawer-close"></label>
|
||||
|
||||
|
||||
<h3>Array
|
||||
</h3><a class="sublink-1" href="#arraymax">arrayMax</a>
|
||||
<a class="sublink-1" href="#arraymin">arrayMin</a>
|
||||
|
||||
Reference in New Issue
Block a user