blob: 3d7dcc206e6ade02868622665e03933002fbc0c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<!-- game.php?roll_num=0&round_num=0 -->
<html>
<head>
<title>Yahtzee</title>
<link rel='stylesheet' href='yahtzee.css'/>
<style>
</style>
</head>
<body>
<a href='yahtzee.html'><span class='back'>< Go Back</span></a>
<h1 id='main_head'></h1> <!-- head inserted by make_head() -->
<a href='game.html'>
<div class='selector readybox' style='background-color:#e2d6b2'>
Click Here to Play in Forced Order Mode
</div>
</a>
<a href='free.html' ><!-- not final href -->
<div class='selector helpbox' style='background-color:#e2d6b2'>
Click Here to Play in Free Choice Mode
</div>
</a>
<script type="text/javascript">
function rand() {
return Math.ceil(Math.random()*6);
}
function make_head(header){
return `<img class='small_dice' src='${rand()}.png'> ${header} <img class='small_dice' src='${rand()}.png'>`;
};
document.getElementById('main_head').innerHTML = make_head('Pick Your Preferred Rules');
</script>
</body>
</html>
|