prune: remove scroll feature
This commit is contained in:
@@ -149,10 +149,6 @@
|
||||
<code>text</code>: <a href="?text=hide">hide</a> text to only have the
|
||||
house
|
||||
</li>
|
||||
<li>
|
||||
<code>scroll</code>: scroll to the
|
||||
<code><a href="?scroll=end">end</a></code>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
Screenshot the house:
|
||||
|
||||
6
main.ts
6
main.ts
@@ -60,12 +60,6 @@ if (textHide === 'hide') {
|
||||
focusables.forEach((focusable) => focusable.classList.add('text-hide'))
|
||||
}
|
||||
|
||||
const scrollParam = params.get('scroll')
|
||||
|
||||
if (scrollParam === 'end') {
|
||||
window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' })
|
||||
}
|
||||
|
||||
const primaryColorParam = params.get('primary')
|
||||
|
||||
if (primaryColorParam) {
|
||||
|
||||
Reference in New Issue
Block a user