-
Notifications
You must be signed in to change notification settings - Fork 3
/
sbd.html
182 lines (157 loc) · 6.24 KB
/
sbd.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
---
layout: page_demo.njk
title: "Improve Online Learning Success with Cognitive AI"
excerpt: "University leaders revealed insights on managing online programs, including main challenges and expectations. These findings inform the opportunities for developing and evaluating AI-powered education solutions (e.g., AI chatbot) to improve student recruitment and e-learning experiences.
."
date: 2020-10-28T05:24:53.929Z
---
<section class="content-section" id="powerful">
<div class="container-fluid">
<div class="row align-items-center justify-content-center">
<div class="col-lg-10 col-element">
<img class="card-img-top lazyload with-shadow"
src="/assets/img/content/demos/sbd-banner.png"
alt="sbd demo banner"/>
<img class="card-img-top lazyload with-shadow"
src="/assets/img/content/demos/sbd-body2.png"
alt="sbd demo body 2"/>
<img class="card-img-top lazyload with-shadow"
src="/assets/img/content/demos/sbd-body5.png"
alt="sbd demo body 5"/>
</div> <!--col-5-->
</div> <!--row-->
</div>
</section>
<div id='jujibot-bubble'>
Click on me to chat with me
</div>
<div id='jujibot-icon'
background=''
img_url='https://juji-user-uploads.s3.amazonaws.com/rep-images/6640d903-b57c-4007-8287-d24d123035b1.jpeg'
role='button'
tabIndex='0'
alt='Click to chat with Juji'
aria-label='Click on this button to start the chat window. After you click, use tab key to navigate the chat window'>
</div>
<input id='juji-chat-status' type='hidden' value='not chatted'>
<script>
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://juji.ai/assets/js/cookielessParent.js';
document.head.appendChild(script);
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
if (js.readyState) {
js.onreadystatechange = function () {
if (js.readyState == 'loaded' || js.readyState == 'complete') {
js.onreadystatechange = null;
updateIframe('https://juji.ai');
}
}
} else {
js.onload = function () {
updateIframe('https://juji.ai');
}
}
js.src = 'https://juji.ai/assets/js/webplugin-popup-2.0.0.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'juji-webplugin'));
</script>
<div id='juji-chatbot'
chat_url='https://juji.ai/pre-chat/6270fde2-e17d-4305-a3d6-aa1cb4fe02e9?start-chat=false'>
</div>
<script>
document.addEventListener("DOMContentLoaded", function (event) {
// array with texts to type in typewriter
var dataText = ["Why should you hire one?", "What can it do for you?",
"How easy to set one up?"];
var timeBetweenLetters = 100;
var timeBetweenWords = 500;
var timeToWaitBeforeDeleting = 2000;
var element = document.getElementById("slide-text");
// type one text in the typwriter
// keeps calling itself until the text is finished
function typeWriterForward(text, i, fnCallback) {
// check if text isn't finished yet
if (i < text.length) {
// add next character to h1
element.innerHTML =
text.substring(0, i + 1) +
'<span class="type-writer" aria-hidden="true"></span>';
// wait for a while and call this function again for next character
return setTimeout(function () {
typeWriterForward(text, i + 1, fnCallback);
}, timeBetweenLetters);
}
// text finished, call callback if there is a callback function
// call callback after timeout
//starts the removal of characters
setTimeout(function () {
typeWriterBackward(text, i, fnCallback);
}, timeToWaitBeforeDeleting);
}
// remove one text in the typwriter
// keeps calling itself until the text is finished
function typeWriterBackward(text, i, fnCallback) {
// check if text isn't finished yet
if (i >= 0) {
// remove next character from h1
element.innerHTML =
text.substring(0, i) +
'<span class="type-writer" aria-hidden="true"></span>';
// wait for a while and call this function again for next character
return setTimeout(function () {
typeWriterBackward(text, i - 1, fnCallback);
}, timeBetweenLetters);
}
// text finished, call callback if there is a callback function
// call callback after timeout
setTimeout(fnCallback, timeBetweenWords);
}
// start a typewriter animation for a text in the dataText array
function StartTextAnimation(i) {
typeWriterForward(dataText[i], 0, function () {
// after callback (and whole text has been animated), start next text
StartTextAnimation((i + 1) % dataText.length);
});
}
StartTextAnimation(0);
function openChatWindow() {
// console.log("click");
var chatWindow = document.getElementById("juji-chatbot");
var jujiIcon = document.getElementById("jujibot-icon");
var bubble = document.getElementById("jujibot-bubble");
jujiIcon.classList.remove("show-icon");
jujiIcon.classList.add("hide-icon");
chatWindow.classList.remove("hide-content");
chatWindow.classList.add("show-content");
bubble.style.display = "none";
}
function addListener (el, e, h) {
if (el.addEventListener) {
el.addEventListener(e, h, false);
}
else if (el.attachEvent) {
el.attachEvent('on' + e, h);
}
else {
el['on' + e] = h;
}
};
/*addListener(document.getElementById("home-start-chat-btn"), 'click', openChatWindow);*/
});
</script>
<script async="" type="text/javascript" src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<!--
<script>
function trackOutgoingAndRedirect(el) {
var url = el.getAttribute('href');
ga('send', 'event', {eventCategory: 'outbound',
eventAction: 'send',
eventLabel: url,
eventValue: 1,
hitCallback: function() { document.location = url; }});
}
</script> -->