summaryrefslogtreecommitdiff
path: root/yahtzee.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 /yahtzee.html
First commit
Diffstat (limited to 'yahtzee.html')
-rw-r--r--yahtzee.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/yahtzee.html b/yahtzee.html
new file mode 100644
index 0000000..d004766
--- /dev/null
+++ b/yahtzee.html
@@ -0,0 +1,34 @@
+<html>
+ <head>
+ <title>Yahtzee</title>
+ <link rel='stylesheet' href='yahtzee.css'/>
+ </head>
+
+ <body>
+ <h1 id='main_head'></h1> <!--Head inserted via make_head()-->
+
+ <a href='mode_select.html'>
+ <div class='selector readybox'>
+ Click Here if You Already Know How to Play
+ </div>
+ </a>
+
+ <a href='instructions.html'>
+ <div class='selector helpbox'>
+ Click Here to Learn How to Play
+ </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("Welcome to Yahtzee");
+ </script>
+ </body>
+</html> \ No newline at end of file