-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (51 loc) · 2.08 KB
/
index.html
File metadata and controls
63 lines (51 loc) · 2.08 KB
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
<!DOCTYPE html>
<!Instructions from https://www.w3schools.com/bootstrap/bootstrap_get_started.asp>
<html lang="en">
<head>
<title>RVP Test</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="stylesheet.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="RVP.js"></script>
</head>
<body>
<div class="title">Rapid Visual Processing</div>
<div class="number" id="number">Starting...</div>
<div class="targSequence" id="targSequencey"></div>
<!----------------------------------------------------------------------------------------------------------->
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-database.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyA-2WTjCS28cp-15NZpcu6lZIG90q0g8I0",
authDomain: "openadhd-8e9a5.firebaseapp.com",
databaseURL: "https://openadhd-8e9a5.firebaseio.com",
projectId: "openadhd-8e9a5",
storageBucket: "openadhd-8e9a5.appspot.com",
messagingSenderId: "926041459628",
appId: "1:926041459628:web:7d605c135a78e540dd8809"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<script>
function saveToFirebase(number) {
console.log("click");
firebase.database().ref('numbers').push().set(number)
.then(function(snapshot) {
console.log("sent " + number);
}, function(error) {
console.log('error' + error);
});
}
</script>
<button class="button" onclick="gameEngine.send(buttonPress)">Seen!</button>
</body>
</html>