Преглед изворни кода

scroll to view (#28837)

Co-authored-by: aardgoose <[email protected]>
aardgoose пре 1 година
родитељ
комит
4ce3b36822
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      examples/index.html

+ 2 - 0
examples/index.html

@@ -106,6 +106,8 @@
 
 				if ( validRedirects.has( file ) === true ) {
 
+					content.querySelector( `a[href="${ file }.html"]` ).scrollIntoView();
+
 					selectFile( file );
 					viewer.src = validRedirects.get( file );
 					viewer.style.display = 'unset';