Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart Button added #194

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1 class="text text--title">
<div class="text text--note">
Double tap to start
</div>
<div class="text text--timer">
<div class="text text--timer" id="t">
0:00
</div>
<div class="text text--complete">
Expand Down Expand Up @@ -107,11 +107,16 @@ <h1 class="text text--title">
<button class="btn btn--br btn--reset">
<icon reset></icon>
</button>
<button id="restartButton" onclick="reset_time()">Restart</button>
</div>

</div>
<!-- partial -->
<script>
function reset_time() {
document.getElementById("restartButton").t="0:00";
}
</script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/three.js/95/three.min.js'></script><script src="./script.js"></script>

</body>
</html>
18 changes: 18 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,24 @@ body {
z-index: 5;
}

.ui .ui__buttons #restartButton {
padding: 10px 20px 5px 5px;
cursor: pointer;
border: none;
background-color: #4CAF50;
color: white;
border-radius: 5px;
overflow: hidden;
bottom: 78%;
font-size: 20px;
align-items: center;
position: absolute;
left: 60%;
right: 25%;
text-align: center;
}



/* styling element for the goggle login option to be placed at the top right corner of the webpage. */

Expand Down