summaryrefslogtreecommitdiff
path: root/mode_select.html
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-09-20 09:26:58 -0700
committerlouie <lshprung@yahoo.com>2020-09-20 09:26:58 -0700
commita8c0d5619ee6d518737628d6c585233d0bba23da (patch)
tree30c13cf2439700c78d51acc9b430cb5fa092f963 /mode_select.html
First commit
Diffstat (limited to 'mode_select.html')
-rw-r--r--mode_select.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/mode_select.html b/mode_select.html
new file mode 100644
index 0000000..3d7dcc2
--- /dev/null
+++ b/mode_select.html
@@ -0,0 +1,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'>&lt 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> \ No newline at end of file