Compare commits
2 Commits
dc0a5597e2
...
5222af6ad6
| Author | SHA1 | Date | |
|---|---|---|---|
| 5222af6ad6 | |||
| b372fbc304 |
@ -27,7 +27,7 @@
|
||||
<!-- <div id="navContainer"></div> -->
|
||||
<script>
|
||||
if('serviceWorker' in navigator) {
|
||||
window.addEventListiner('load', () => {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('sw.js')
|
||||
.then((registration) => {
|
||||
console.log(`service worker registered succesfully ${registration}`)
|
||||
@ -56,6 +56,7 @@
|
||||
</div>
|
||||
|
||||
<main>
|
||||
<iframe src="" frameborder="0"></iframe>
|
||||
<div id="player1" class="player">
|
||||
<div class="name" id="name1" contenteditable="true">
|
||||
Player 1</div>
|
||||
|
||||
@ -18,7 +18,9 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="video1">
|
||||
<video id="video" controls controlslist="nodownload" src="raya.mp4" type="video/mp4">
|
||||
<video id="video" controls controlslist="nodownload" src="/home/chrisserver/media/Movies/The Princess and the Frog (2009) [1080p]/The.Princess.and.the.Frog.2009.1080p.BrRip.x264.YIFY.mp4
|
||||
|
||||
" type="video/mp4">
|
||||
|
||||
Your browser doesn't support embedded video. Sorry.
|
||||
|
||||
|
||||
@ -36,7 +36,8 @@ function shuffle_dice() {
|
||||
function showMath(){
|
||||
var numBlock = document.getElementById('numbers');
|
||||
console.log(numBlock.style.display)
|
||||
if (numBlock.style.display === "none") {
|
||||
if (numBlock.style.display === "none") {
|
||||
document.getElementById("show").innerHTML = "Hide Math";
|
||||
numBlock.style.display = "block";
|
||||
} else {
|
||||
numBlock.style.display = "none";
|
||||
|
||||
67
yatzee/new.html
Normal file
67
yatzee/new.html
Normal file
@ -0,0 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Yahtzee</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="stylesheet" href="/menu/menu.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<script defer src="/menu/menu.js"></script>
|
||||
|
||||
<div id="navContainer"></div>
|
||||
<header>
|
||||
<span id="highScore">High Score:</span>
|
||||
<span id="fullScreen"></span>
|
||||
</header>
|
||||
<div id="game">
|
||||
<div id="diceBoard">
|
||||
<img class='dice_pic' onclick='hold(this)' src="dice/die1.png">
|
||||
<img class='dice_pic' onclick='hold(this)' src="dice/die2.png">
|
||||
<img class='dice_pic' onclick='hold(this)' src="dice/die3.png">
|
||||
<img class='dice_pic' onclick='hold(this)' src="dice/die4.png">
|
||||
<img class='dice_pic' onclick='hold(this)' src="dice/die5.png">
|
||||
|
||||
|
||||
</div>
|
||||
<button id="roll" onclick="rollDice()">Roll</button>
|
||||
<div id="scoreBoard">
|
||||
<div id="upper">
|
||||
<span class="upperLable" >One</span>
|
||||
<span class="upperLable" >Two</span>
|
||||
<span class="upperLable" >Three</span>
|
||||
<span class="upperLable" >Four</span>
|
||||
<span class="upperLable" >Five</span>
|
||||
<span class="upperLable" >Six</span>
|
||||
<br>
|
||||
<div>
|
||||
<span class="upperScore" id="oneScore">0</span>
|
||||
|
||||
<span class="upperScore" id="twoScore">0</span>
|
||||
|
||||
<span class="upperScore" id="threeScore"></span>
|
||||
|
||||
<span class="upperScore" id="fouScore"></span>
|
||||
|
||||
<span class="upperScore" id="fiveScore"></span>
|
||||
|
||||
<span class="upperScore" id="sixScore"></span>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="lower">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user