-
Notifications
You must be signed in to change notification settings - Fork 0
/
indexAnimated.html
73 lines (57 loc) · 2.24 KB
/
indexAnimated.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
<!DOCTYPE html>
<!--<html lang="en">-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<link href="https://fonts.googleapis.com/css?family=Overpass&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<!--<link rel = "manifest" href = "manifest.json">-->
<meta charset="UTF-8">
<script src = "lib/jsPsych-6.3.1/jspsych.js"></script>
<script src="lib/jsPsych-6.3.1/plugins/jspsych-html-keyboard-response.js"></script>
<link href="lib/jsPsych-6.3.1/css/jspsych.css" rel="stylesheet" type="text/css"></link>
<link href = 'tailgateStyle.css' rel = 'stylesheet' type = 'text/css'>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<script src = "tailgateGameAnimated.js"></script>
<title> TailGate </title>
</head>
<body>
<div id="buttonbar">
<img id="fullscreenh" src='assets/exitfullscreen.png'>
<img id="sound" src='assets/volumeon.svg'>
<img id="profile">
<!--<i class="material-icons" id="sound"></i>
<i class="material-icons" id="music"></i>
<i class="material-icons" id="fullscreenh"></i>-->
</div>
<div id = 'game'></div>
</body>
<script>
var timeline = [];
var overallGameTime = 4500;
var numberOfLanes = 4;
var truckSequence1 = [1,2,3,1];
var truckSequence2 = [2,1,4,2];
var truckSequence3 = [3,4,2,3];
var truckSequence4 = [4,1,3,4];
var trial = {
type: "tailgate",
overallGameTime : function(){return overallGameTime},
numberOfLanes: function(){return numberOfLanes},
truckSequence1: function(){return truckSequence1},
truckSequence2: function(){return truckSequence2},
truckSequence3: function(){return truckSequence3},
truckSequence4: function(){return truckSequence4},
};
timeline.push(trial);
jsPsych.init({
timeline: timeline,
display_element: 'game',
on_finish: function(){
jsPsych.data.displayData();
}
});
</script>
<!--<script src="pleaserotate.js"></script>-->
</html>