-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (42 loc) · 2.67 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
<!DOCTYPE html>
<title>Probability on trial.</title>
<link rel="icon" href="Dice.ico" type="image/x-icon" >
<head>
<link rel="manifest" href="manifest.webmanifest">
<link rel="stylesheet" type="text/css" href="probability.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-site-verification" content="RTm696s6qDMz-2ylLWpQoZnYdhcbH4PgcDFWqRGthrs" />
<meta property="og:image" content="dice.png">
</head>
<body>
<h5>Hi , Glad To <span id="welcome">WELCOME</span> You</h5>
<button onclick="coinShow()">Flip the<strong>Coin</strong> .</button><br><br>
<button onclick="diceShows()" >Roll the <strong>Dice</strong>.</button>
<p id="a"><strong>Select flip the coin to flip the coin 100 times and see the result.<br>
or select Roll the dice & then choose a number (1 to 6) which you want to track on your dice.</strong></p>
<p id="warning"></p>
<label for="trialRequested">Trials to be performed</label>
<input type ="number" id="trialRequested" value="100" onchange="setTrial()"><hr>
<button onclick="coinUse()" id ="coinUse">Use <strong>Coin</strong> .</button>
<p id="coinResult">Could be used for tosses like between captains in cricket</p>
<img id="diceface" src="dice.png" style="width: 48px;height: 49px; ;"><br>
<button onclick="diceUse()" id="diceUse" >Use <strong>Dice</strong>.</button><p id="diceResult">Can be used in any dice game (e.g. LUDO) </p>
<script src="probability.js"></script>
<script>if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/probability-on-trial/sw.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
// registration failed :(
console.log('ServiceWorker registration failed: ', err);
});
});
}</script><hr>
<div>
<a href="https://github.com/lkiThakur/probability-on-trial/archive/master.zip" class="footer" title="download zip for offline usage or Anything">Download code.</a>
<a href="https://github.com/lkiThakur/probability-on-trial/" class="footer" >View on github.</a>
<a href="mailto:[email protected]?subject=Probability on trial" title="Email to developer" class="footer">Send an Email.</a>
<a href="https://www.linkedin.com/in/thakurlki" title="Connect to Adarsh Singh" class="footer">Connect on LinkedIn</a>
</div>
</body>