-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
156 lines (132 loc) · 4.87 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dave & Busters</title>
<style>
@font-face {
font-family: franklin gothic book;
font-style: normal;
src: url(src/assets/franklin-gothic-book.ttf)
}
@font-face {
font-family: dinbuster;
font-style: normal;
font-weight: 400;
src: url(src/assets/dinbuster-webfont.otf)
}
.phone {
background-image: url("src/assets/DB app in iphone.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
height: 100vh;
}
.phone-inner {
height: 100%;
width: 50vh;
margin: auto;
position:relative;
}
.btn {
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
align-items: center;
border-radius: 75pt;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
font-family: franklingothic urw;
font-size: 18px;
font-weight: 500;
height: 50px;
justify-content: center;
letter-spacing: -.4px;
line-height: 22px;
outline: none;
padding: 0 20px;
background: linear-gradient(180deg,#ff6f00,#ffcb05);
border-color: transparent;
color: #121212;
font-family: "dinbuster";
font-size: 14px;
}
.btn:hover {
cursor: pointer
}
#fm_btn {
bottom: 15%;
position: absolute;
right: 10%;
}
#root {
margin: auto;
width: 84%;
padding-top: 17%;
height: 77%;
}
#demo-message{
position: fixed;
background: var(--neutral-600);
margin-left: calc(50% - 156px);
margin-top: 200px;
width: 300px;
text-align: center;
font-size: 20px;
z-index: 100;
}
</style>
</head>
<body>
<div id="demo-message"></div>
<div class="phone">
<div class="phone-inner">
<div class="btn" id="fm_btn">FunMaster</div>
<div id="root"></div>
</div>
</div>
<script type="module" src="/src/main.jsx"></script>
<script>
var initialContextSent = false;
var stageMessages =
{
"reservation" : "To begin our demo, we will mimick a user planning a child's birthday party",
"rsvp" : "Now that the reservation is made, we will demo the experience an invited guest will experience.",
"confirm" : "Now it's the day of the party, let's demo the confirmation message to the party planner",
"party" : "Now the user is at the party, let's see how the FunMaster can assist the guests",
"follow-up" : "The party is done, let's see how the FunMaster can help with follow-up"
}
var stages = ["reservation", "rsvp", "confirm", "party", "follow-up"]
var currentStage;
var advanceStage = function(){
if(stages.length > 0) {
currentStage = stages.shift();
document.getElementById("root").hidden = true;
document.getElementById("demo-message").textContent = stageMessages[currentStage];
document.getElementById("demo-message").hidden = false;
initialContextSent = false;
//document.getElementById("fm_btn").style.display = "inline-flex";
} else {
alert('all done!')
}
};
advanceStage();
document.addEventListener("DOMContentLoaded", function(event) {
document.getElementById("fm_btn").onclick = function(){
document.getElementById("root").hidden = false;
document.startChat();
document.getElementById("fm_btn").hidden = true;
}
document.getElementById("demo-message").onclick = function(){
document.getElementById("demo-message").hidden = true;
document.getElementById("fm_btn").hidden = false;
}
});
</script>
</body>
</html>