-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbehavioral.html
More file actions
59 lines (47 loc) · 2.42 KB
/
behavioral.html
File metadata and controls
59 lines (47 loc) · 2.42 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Behavioral</title>
<meta charset="utf-8" />
<!-- these files are required for the BART to work -->
<script type="text/javascript" src="src/jquery-3.0.0.min.js"></script> <!-- basic javascript library for dom manipulation -->
<script type="text/javascript" src="src/jcanvas.min.js"></script> <!-- the canvas plugin -->
<script type="text/javascript" src="src/jquery.bart_reverse.js"></script> <!-- the main BART plugin -->
<script type="text/javascript" src="src/bart_trial.js"></script>
<link rel="stylesheet" type="text/css" href="src/jquery.bart.css" /> <!-- additional styles for to make the BART look fancy -->
<!-- additional scripts to run the demo on this page -->
<script type="text/javascript">
//<![CDATA[
var myEnd = function() {
alert('Game finished, click to go to the next page');
$("#bartForm").submit();
}
// initialize the BART after the page has loaded
$(document).ready(function() {
// create a BART with default values using 10 balloons
$("#bart").bart({ b: bookingTrial.balloons, o: {earnings: bookingTrial.money_per_pump, increment: 0.03, radius: 48}, s: {beforestart: bookingTrial.handleTurn, onend: myEnd, w:500, h:435}});
});
//]]>
</script>
</head>
<body>
<h2 style="text-align:center;">Behavioral Flexibility</h2>
<ul>
<li>The objective is to inflate the balloons as much as you can, different colored balloons might respond differently</li>
<li>You can use the "Collect points" button to save your points and move on to the next balloon</li>
<li>If a balloon pops, you'll lose all the points accumulated for that balloon</li>
<li>The progress is not shown, but don't worry, it won't be too long</li>
</ul>
</div>
<form id='bartForm' name='bartForm' method="POST" action="">
<div id="bart" style="margin: auto; text-align: center;">
<div class='container tooltip'><a href="#" class="speaker" >
<span></span>
</a>
<span class='tooltiptext'>Sound On/Off</span>
</div>
</div>
</form>
</body>
</html>