-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (31 loc) · 1.31 KB
/
index.html
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
<html >
<head>
<title>Penney's game</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script src="./script/jquery.min.js"></script>
<script src="./script/angular.min.js"></script>
</head>
<body >
<div ng-app="gameApp">
<div ng-controller="gameController">
<div>
<span id="coin" class="flipping"/>
</div>
<div >{{results}}</div>
<div> <label for="userInput">Please enter your input (comma separated) e.g. H,H,H or H,T,H or so on...</label>
<input type="text" ng-model="userInput" id="userInput"></input>
</div>
<div>
<label for="myInput">Here is what I chose:</label>
<input type="text" ng-model="myInput" disabled id="myInput"></input>
</div>
<div>
<button ng-click="mySelection()"> register my choice </button>
<button ng-click="startCompetition()"> Start Competition </button>
</div>
<div>{{winner}}</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>