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