-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiment.html
71 lines (64 loc) · 2.96 KB
/
experiment.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Experiment</title>
<meta charset="UTF-8">
<meta name="description" content="Story Telling Studies">
<meta name="Thomas Mildner">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans:400,600,700" rel="stylesheet">
<script type="text/javascript" src="js/expLogic.js"></script>
<!--loading jquery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
</head>
<body>
<div class="exp_one_content">
<div id="exp_one_start">
<p>To start the experiment press the <span style="color: #4CB227">green start button</span>. A section of the story will appear and prompt you to interact in a simple way. Please reply with a fitting answer. Once you are finished, please click on the appearing link.</p>
<button id="exp_one_start_button" type="button" onclick="startExperiment()">START</button>
</div>
<form id="exp_one_form">
<p id="exp_one_story_field"></p>
<div id="exp_one_name_input">
<p id="exp_one_section_alert"></p>
<p id="exp_one_story_field_warning">Please respond only after the utterance has finished.</p>
<div id="exp_one_respone_field">
<p>Type in a name here:</p>
<input type="text" id="exp_one_response_input" name="response" autocomplete="off"></br>
</div>
<button id="exp_one_response_button" type="button" onclick="onSubmit(this.id)">Reply</button>
</div>
<div id="story_section_buttons_container">
<div id="story_section_buttons">
<p id="story_section_warning">Please respond only after the utterance has finished.</p>
<button id="story_section_yes_button" type="button" onclick="onSubmit(this.id)">Yes</button>
<button id="story_section_no_button" type="button" onclick="onSubmit(this.id)">No</button>
</div>
</div>
<div id="exp_one_continue_container">
<button id="exp_one_continue_button" type="button" onclick="onSubmit(this.id)">Continue</button>
</div>
<div id="end_of_story_container">
<p>You finished this part of the experiment. You may now go back to the questionnaire.</p>
<a id="end_of_story_button" href="index.html" target="_blank"><span>Go to Start</span></a>
</div>
</form>
</div>
<div class="back-button">
<a href="index.html"><img src="img/arrow.svg">BACK</a>
</div>
</body>
<script>
function enterResponse() {
document.getElementById("exp_one_response_button").click();
}
$("#exp_one_form").submit(function() {
enterResponse($("#test_response").get(0));
return false;
});
$(window).bind('beforeunload', function(){
return 'Are you sure you want to leave?';
});
</script>
</html>