✨ (search params) remove title when display is pure
This commit is contained in:
@@ -112,5 +112,6 @@
|
|||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
<script type="module" src="main.ts"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
11
main.ts
Normal file
11
main.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
type TPSSearchParams = {
|
||||||
|
display?: "pure" | "full"
|
||||||
|
}
|
||||||
|
|
||||||
|
const params = new URL(document.location.href).searchParams
|
||||||
|
|
||||||
|
const display = params.get("display")
|
||||||
|
|
||||||
|
if (display === "pure") {
|
||||||
|
document.querySelector("header")?.remove()
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user