-
Notifications
You must be signed in to change notification settings - Fork 0
/
x-exit.html
72 lines (59 loc) · 2.28 KB
/
x-exit.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Visualization Insights</title>
<!-- Bootstrap Core CSS -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- Custom JavaScript -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/timeme.js"></script>
<!-- <script src="https://d3js.org/d3.v4.min.js"></script> -->
<script type="text/javascript">
var urlParams = new URLSearchParams(window.location.search);
var prolific_PID = urlParams.get('PROLIFIC_PID');
var session_ID = urlParams.get('SESSION_ID');
TimeMe.initialize({
currentPageName: "exit", // current page
idleTimeoutInSeconds: 120 // stop recording time due to inactivity
});
</script>
</head>
<body>
<div class = "row">
<div class="container">
<div class="col-sm-8 col-sm-offset-2">
<h2 class="margin-top-lg margin-btm-md">Visualization Insights study</h2>
<p>Thank you for completing our study!</p>
<p>If prompted, please paste the following code into Prolific: <br></p>
<div class="code-container">
<p id="mturk-code"></p>
</div>
<div class="btn-container">
<div class="btn" id="submit-final-btn">Submit</div>
</div>
<p>If you have any questions regarding the study, feel free to email Xiaoying: xpu@umich.edu</p>
</div>
</div>
</div>
</body>
<script type="text/javascript">
var queryURL = 'https://w3drv4o3cl.execute-api.us-east-2.amazonaws.com/prod/condition_counter?user=old&PROLIFIC_PID='+prolific_PID+'';
$.get(queryURL, function(data, status) {
uuid = data;
console.log(uuid);
$("p#mturk-code").text(uuid);
});
$("div#submit-final-btn").on('click', acceptUserFinal);
function acceptUserFinal() {
window.location.href = 'https://app.prolific.co/submissions/complete?cc='+uuid+'';
}
</script>
</html>