|
|
@@ -54,9 +54,6 @@
|
|
|
const panelScrim = document.getElementById( 'panelScrim' );
|
|
|
const previewsToggler = document.getElementById( 'previewsToggler' );
|
|
|
|
|
|
- const sectionLink = document.querySelector( '#sections > a' );
|
|
|
- const sectionDefaultHref = sectionLink.href;
|
|
|
-
|
|
|
const links = {};
|
|
|
const validRedirects = new Map();
|
|
|
const fragment = document.createDocumentFragment();
|
|
|
@@ -128,10 +125,6 @@
|
|
|
|
|
|
updateFilter( files, tags );
|
|
|
|
|
|
- } else {
|
|
|
-
|
|
|
- updateLink( '' );
|
|
|
-
|
|
|
}
|
|
|
|
|
|
// Events
|
|
|
@@ -289,25 +282,6 @@
|
|
|
|
|
|
layoutList( files );
|
|
|
|
|
|
- updateLink( v );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- function updateLink( search ) {
|
|
|
-
|
|
|
- // update docs link
|
|
|
-
|
|
|
- if ( search ) {
|
|
|
-
|
|
|
- const link = sectionLink.href.split( /[?#]/ )[ 0 ];
|
|
|
- sectionLink.href = `${link}?q=${search}`;
|
|
|
-
|
|
|
- } else {
|
|
|
-
|
|
|
- sectionLink.href = sectionDefaultHref;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
|
|
|
function filterExample( file, exp, tags ) {
|