move reviews into global files

This commit is contained in:
Mikkel 2023-02-09 13:55:25 +01:00
parent eef103fd9a
commit 1780a67e1f
5 changed files with 7 additions and 8 deletions

View File

@ -1,4 +0,0 @@
#anmeldelser {
display: flex;
justify-content: center;
}

View File

@ -33,7 +33,7 @@
<div id="info"> <div id="info">
<p id="zip-code">Postnummer ikke fundet</p> <p id="zip-code">Postnummer ikke fundet</p>
<p id="mouse-position"></p> <p id="mouse-position"></p>
<a href="/anmeldelser">anmeldelser</a> <a href="reviews.html">Anmeldelser</a>
<p id="coords"></p> <p id="coords"></p>
</div> </div>
</main> </main>

View File

@ -1,6 +1,4 @@
const reviewContainer = document.getElementById("review-container")! const reviewContainer = document.getElementById("reviews-container")!
function addReview(location: string, title: string, content: string, stars: number, ) { function addReview(location: string, title: string, content: string, stars: number, ) {
const id = Math.random() * 1000000 const id = Math.random() * 1000000

View File

@ -219,3 +219,8 @@ code {
} }
} }
#reviews-title {
display: flex;
justify-content: center;
}