forked from neuroergolab/stepup_raceiat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (34 loc) · 1.52 KB
/
index.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
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/minnojs/[email protected]/dist/main.css" />
<style type="text/css">
.container {padding-top: 15px;}
</style>
<script>
// load MinnoJS from the CDN (you probably don't need to change this)
var scriptTag = document.createElement('script');
scriptTag.src = 'https://cdn.jsdelivr.net/gh/minnojs/[email protected]/dist/pi-minno.js';
scriptTag.onload = onLoad;
scriptTag.onreadystatechange = onLoad;
document.head.appendChild(scriptTag);
// This function gets activated only after MinnoJS is loaded
function onLoad() {
// Create a div with class 'container' and id 'minno-app'
var container = document.createElement('div');
container.className = 'container';
// Create the canvas object
var canvas = document.createElement('div');
// Append the canvas object to the container
container.appendChild(canvas);
// Append the container to the body
document.body.appendChild(container);
// Run your study (just set the correct URL)
minnoJS(canvas, 'mgr.js');
// We need to wait a few miliseconds for Qualtrics to register the value that we entered
minnoJS.onEnd = function () { setTimeout(proceed, 100); }
}
</script>
</head>
<body>
</body>
</html>