Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions README.md

This file was deleted.

File renamed without changes
File renamed without changes
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ <h3>Your score is:</h3>
</div>

<div class="img-container">
<img src="./assets/img/cookie.png" alt="Click me!" />
<img onclick="increase()" src="./assets/img/cookie (1).png" alt="Click me!" />
</div>

<script src="./script.js"></script>
<script src="./scripts.js"></script>
</body>
</html>
</html>
Empty file removed script.js
Empty file.
6 changes: 6 additions & 0 deletions scripts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
let score = 0;
let scoreHTML = document.getElementById("score");
function increase(){
score=score+1
scoreHTML.innerHTML=score;
}
62 changes: 62 additions & 0 deletions styel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@


* {
margin: 0;
padding: 0;
}

body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
font-family: "Handjet", cursive;
background: rgb(181, 149, 116);
background: linear-gradient(
288deg,
rgba(181, 149, 116, 1) 0%,
rgba(255, 223, 190, 1) 100%
);
background-position: center center;
background-size: cover;
background-attachment: fixed;
background-repeat: no-repeat;
}

.score-container {
display: flex;
align-items: center;
justify-content: space-evenly;
}

h1 {
font-size: 60px;
}

h3 {
font-size: 40px;
margin: 10px;
}

p {
font-size: 40px;
margin: 10px;
}

.img-container {
width: 512px;
height: 512px;
display: flex;
justify-content: center;
align-items: center;
}

img:active {
width: 480px;
height: 480px;
}

img:hover {
cursor: pointer;
}
62 changes: 0 additions & 62 deletions style.css

This file was deleted.