Browse Source

Examples: Removed docs related code.

Mr.doob 11 months ago
parent
commit
9debd4d8bc
1 changed files with 0 additions and 26 deletions
  1. 0 26
      examples/index.html

+ 0 - 26
examples/index.html

@@ -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 ) {

粤ICP备19079148号