This commit is contained in:
David Wu
2017-12-20 02:16:47 +01:00
parent fbb79d6039
commit 9bbf54aabc

View File

@ -23,14 +23,7 @@
<link rel="stylesheet" href="prism.css"> <link rel="stylesheet" href="prism.css">
</head> </head>
<script> <script>
function search() { const search = (input) => Array.from(node.parentElement.getElementsByTagName('a')).forEach(x =>x.style.display = x.getAttribute("href").toUpperCase().indexOf(query) + 1 ? '' : 'none');
var input, filter, i;
input = document.querySelector('#searchInput');
filter = input.value.toUpperCase();
tags = Array.from(document.querySelector('#snippetListDrawer').getElementsByTagName('a'));
tags.forEach(x => {x.getAttribute("href").toUpperCase().indexOf(filter) > -1 ? x.style.display = "" : x.style.display = "none"});
}
</script> </script>
<body> <body>
<header style="height: 5.5rem;"> <header style="height: 5.5rem;">