✨ (search params) remove title when display is pure
This commit is contained in:
@@ -112,5 +112,6 @@
|
||||
</section>
|
||||
</section>
|
||||
</main>
|
||||
<script type="module" src="main.ts"></script>
|
||||
</body>
|
||||
</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