-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (68 loc) · 1.81 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
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
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/@oseq/auma/dist/auma-decision-tree.js"></script>
</head>
<body>
<script>
auma({
id: "demo-decision-tree",
theme: {
logoUrl: "./auma.png",
buttonYesBgColor: "#6699cc",
buttonYesFgColor: "#ffffff",
buttonNoBgColor: "#77dd77",
buttonNoFgColor: "#ffffff",
},
welcome: {
audioUrl: "./audio/welcome.mp3",
},
questions: [
{
id: "question_1",
audioUrl: "./audio/question_1.mp3",
imageUrl: "./image/question_1.jpg",
onYes: "question:question_2",
onNo: "question:question_3",
},
{
id: "question_2",
audioUrl: "./audio/question_2.mp3",
imageUrl: "./image/question_2.jpg",
onYes: "result:result_1",
onNo: "result:result_2",
},
{
id: "question_3",
audioUrl: "./audio/question_3.mp3",
imageUrl: "./image/question_3.jpg",
onYes: "result:result_3",
onNo: "result:result_4",
},
],
results: [
{
id: "result_1",
audioUrl: "./audio/result_1.mp3",
imageUrl: "./image/result_1.jpg",
},
{
id: "result_2",
audioUrl: "./audio/result_2.mp3",
imageUrl: "./image/result_2.jpg",
},
{
id: "result_3",
audioUrl: "./audio/result_3.mp3",
imageUrl: "./image/result_3.jpg",
},
{
id: "result_4",
audioUrl: "./audio/result_4.mp3",
imageUrl: "./image/result_4.jpg",
},
],
});
</script>
</body>
</html>