-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (76 loc) · 2.94 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Rock, Paper, Scissors</title>
<link rel="stylesheet" type="text/css" href="./assets/css/reset.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="./assets/css/style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-offset-2 col-md-8">
<div class="jumbotron welcome">
<div class="intro">
<h1 class="display-4">Rock Paper Scissors</h1>
<div class="keyboard">Keyboard options:</div>
<ul>
<li>rock: 1 or r</li>
<li>paper: 2 or p</li>
<li> scissors: 3 or s</li>
</ul>
<p class="lead">Detemine the winner by: </p>
<ul>
<li>rock beats scissors</li>
<li>paper beats rock</li>
<li>scissors beats paper</li>
</ul>
<div class="getAlongPic">
<img src="assets/images/rpsGetAlong.png" alt="getAlong " class="getAlong">
</div>
</div>
<hr class="my-4">
<div class="playBtn">
<a class="btn btn-primary btn-lg" href="onePlayer.html" onclick="writeData()" role="button">VS Computer</a>
<a class="btn btn-primary btn-lg" href="twoPlayer.html" onclick="writeData()" role="button">VS another person</a>
</div>
<hr class="my-4">
<p>Learn more about Rock Paper Scissors here:</p>
<div class="RPSassociation">
<a href="https://www.wrpsa.com/about/">
<img src="./assets/images/wrpsaLogo.png" alt="rpsLogo" class="logo">
</a>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-database.js"></script>
<script type="text/javascript">
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyDQbIbuFuRhfmolhdnBfi_jpWyN1ZyNueo",
authDomain: "rockpaperscissors-d2102.firebaseapp.com",
databaseURL: "https://rockpaperscissors-d2102.firebaseio.com",
projectId: "rockpaperscissors-d2102",
storageBucket: "rockpaperscissors-d2102.appspot.com",
messagingSenderId: "600671659645",
appId: "1:600671659645:web:2233d1e8db5293cc54f314",
measurementId: "G-T8MZKXKGBB"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
var database = firebase.database();
function writeData() {
database.ref().set({
RPSround: 1,
RPSscore1: 0,
RPSscore2: 0
}); //end of set
} //end of write data
</script>
</html>