-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (114 loc) · 4.1 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>.:: Monty Hall game simulation ::.</title>
<link href="css/bootstrap.css" rel="stylesheet">
<script src="js/jquery.js"></script>
<script src="js/common.js"></script>
<script src="js/interactive.js"></script>
<script src="js/automatic.js"></script>
<script src="js/bootstrap.js"></script>
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
@media ( max-width : 980px) { /* Enable use of floated navbar text */
.navbar-text.pull-right {
float: none;
padding-left: 5px;
padding-right: 5px;
}
}
</style>
</head>
<body>
</body>
<!-- Menu Start -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="/">.:: Monty Hall Game Simulation ::.</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active interactive"><a>Interactive</a></li>
<li class="automatic"><a>Automatic Simulation</a></li>
<li><a href="https://github.com/alphamikevictor/montyhall">Browse code on GitHub</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
</div>
<!-- Menu End -->
</div>
<!--/.nav-collapse -->
</div>
</div>
</div>
<!-- Menu End -->
<div class="row-fluid">
<div class="span1"></div>
<div class="span10">
<div id="messages">
</div>
</div>
<div class="span1"></div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li><a href="http://alosfogones.com">A Los Fogones</a></li>
<li><a href="http://recipesfromspain.com">Recipes from Spain</a></li>
<li><a href="http://github.com/alphamikevictor">My projects on GitHub</a></li>
</ul>
</div><!--/.well -->
</div><!--/span-->
<div class="span9">
<div class="hero-unit" id="interactive">
<div class="row-fluid" id="doors">
</div>
<div class="row-fluid"><div class="span9"></div></div>
<div class="row-fluid">
<div class="span3"><a class="btn btn-large btn-primary swap" style="display:none">Swap</a></div>
<div class="span3"><a class="btn btn-large btn-primary maintain" style="display:none">Don't swap</a></div>
<div class="span3"><a class="btn btn-large btn-primary restart" style="display:none">Restart</a></div>
</div>
</div>
<div class="hero-unit" id="automatic" style="display:none">
<h2>Simulation</h2>
<div class="row-fluid">
<div class="span9">
<form id="simulation" class="form-inline">
<input type="number" id="numbersimulations" placeholder="Number of simulations"><button class="btn btn-primary" id="simulate">Simulate</button>
</form>
</div>
</div>
<div class="row fluid">
<table class="table table-hoover table-condensed table-bordered" id="resultsSimulation" style="display:none">
<thead>
<tr>
<th></th><th># times you win the car</th><th>% times you win the car</th>
</tr>
</thead>
<tbody>
<tr>
<td>When you swap the door</td><td><div id="winSwap"></div></td><td><div id="winSwapPercent"></div></td>
</tr>
<tr>
<td>When you don't swap the door</td><td><div id="winNoSwap"></div></td><td><div id="winNoSwapPercent"></div></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</html>