♻️ (display) change name
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
<link rel="icon" href="people-improvement.svg" />
|
||||
<link rel="mask-icon" href="people-improvement.svg" color="#ffffff" />
|
||||
</head>
|
||||
<!--
|
||||
Why not adding some animation? And random problems to simulate and see what we are our options.
|
||||
-->
|
||||
<body>
|
||||
<main>
|
||||
<ul>
|
||||
|
||||
4
main.ts
4
main.ts
@@ -1,12 +1,12 @@
|
||||
type TPSSearchParams = {
|
||||
display?: "pure" | "full"
|
||||
display?: "house-only" | "full"
|
||||
}
|
||||
|
||||
const params = new URL(document.location.href).searchParams
|
||||
|
||||
const display = params.get("display")
|
||||
|
||||
if (display === "pure") {
|
||||
if (display === "house-only") {
|
||||
document.querySelector("header")?.remove()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user