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
|
<code>text</code>: <a href="?text=hide">hide</a> text to only have the
|
||||||
house
|
house
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<code>scroll</code>: scroll to the
|
|
||||||
<code><a href="?scroll=end">end</a></code>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
Screenshot the house:
|
Screenshot the house:
|
||||||
|
|||||||
6
main.ts
6
main.ts
@@ -60,12 +60,6 @@ if (textHide === 'hide') {
|
|||||||
focusables.forEach((focusable) => focusable.classList.add('text-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')
|
const primaryColorParam = params.get('primary')
|
||||||
|
|
||||||
if (primaryColorParam) {
|
if (primaryColorParam) {
|
||||||
|
|||||||
Reference in New Issue
Block a user