scrimba
Note at 1:21
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Note at 1:21
AboutCommentsNotes
Note at 1:21
Expand for more info
index.html
run
preview
console
<html>

<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta charset="UTF-8">
<title>Dice Roller Durby</title>
<script src="index.js">
<
</script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
<div class="row" align="center">
<div class="col-4">
<h3>Your Dice</h3>
<img src="images/d1.png" id="mydice1">
<img src="images/d1.png" id="mydice2">
</div>
<div class="col-4">
<h3>Oppoent Dice</h3>
<img src="images/e1.png" id="hisdice1">
<img src="images/e1.png" id="hisdice2">
<div id="enemy_score"></div>
</div>
<div class="col-4" align="center">
<img src="images/good-luck.gif" id="message" alt="Good Luck!" />
<button class="greenBut" onClick="throwdice()">Play!</button>
</form>
</div>
</div>

</body>

</html>
Console
/index.html
LIVE