-
Notifications
You must be signed in to change notification settings - Fork 0
/
script1.js
398 lines (327 loc) · 32.2 KB
/
script1.js
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
var audio = new Audio('assets1/sentmessage.mp3');
var contactString = "<div class='social'> <a target='_blank' href='tel:+918849248550'> <div class='socialItem' id='call'><img class='socialItemI' src='../images1/phone.svg'/><label class='number'></label></label></div> </a> <a href='mailto:bhdigitalsolutions172@gmail.com'> <div class='socialItem'><img class='socialItemI' src='../images1/gmail.svg' alt=''></div> </a> <a target='_blank' href='https://www.facebook.com/bhdigitalsolutions/'> <div class='socialItem'><img class='socialItemI' src='../images1/facebook.svg' alt=''></div> </a> <a target='_blank' href='https://wa.me/916363549133'> <div class='socialItem'><img class='socialItemI' src='../images1/whatsapp.svg' alt=''></div><a target='_blank' href='https://www.instagram.com/bhdigitalsolutions/'> <div class='socialItem'><img class='socialItemI' src='../images1/instagram.svg' alt=''></div><a target='_blank' href='https://www.linkedin.com/company/bh-digital-solutions/'> <div class='socialItem'><img class='socialItemI' src='../images1/linkedin.svg' alt=''></div>";
var resumeString = "<img src='../images1/Business_Profile_thumbnail.png' class='resumeThumbnail'><div class='downloadSpace'><div class='pdfname'><img src='../images1/pdf.png'><label>Our Business Profile.pdf</label></div><a href='../assets1/Our_Business_Profile.pdf' download='Our_Business_Profile.pdf'><img class='download' src='../images1/downloadIcon.svg'></a></div>";
var imagesString = "<img src='../images1/sample image thumbnail.png' class='resumeThumbnail'><div class='downloadSpace'><div class='pdfname'><img src='../images1/pdf.png'><label>Festival Sample Images</label></div><a href='../assets1/sample images.pdf' download='Festival_sample_images.pdf'><img class='download' src='../images1/downloadIcon.svg'></a></div>";
var addressString = "<div class='mapview'><iframe src='https://www.google.com/maps/dir//Moodbidri+private+Bus+Stand,+Bus+Stand+Rd,+Mudbidri,+Karnataka+574227/@13.0639,74.9991985,15z/data=!4m8!4m7!1m0!1m5!1m1!1s0x3ba4ab3d49331379:0x17be05cb5b69caa2!2m2!1d74.9957298!2d13.0680955?hl=en' class='map'></iframe></div><label class='add'><address>B2 'Asara'<br>Kodoli<br>Kolhapur, Maharashtra, INDIA 416114</address>";
function startFunction() {
setLastSeen();
waitAndResponce("intro");
}
function setLastSeen() {
var date = new Date();
var lastSeen = document.getElementById("lastseen");
lastSeen.innerText = "last seen today at " + date.getHours() + ":" + date.getMinutes()
}
function closeFullDP() {
var x = document.getElementById("fullScreenDP");
if (x.style.display === 'flex') {
x.style.display = 'none';
} else {
x.style.display = 'flex';
}
}
function openFullScreenDP() {
var x = document.getElementById("fullScreenDP");
if (x.style.display === 'flex') {
x.style.display = 'none';
} else {
x.style.display = 'flex';
}
}
function isEnter(event) {
if (event.keyCode == 13) {
sendMsg();
}
}
function sendMsg() {
var input = document.getElementById("inputMSG");
var ti = input.value;
if (input.value == "") {
return;
}
var date = new Date();
var myLI = document.createElement("li");
var myDiv = document.createElement("div");
var greendiv = document.createElement("div");
var dateLabel = document.createElement("label");
dateLabel.innerText = date.getHours() + ":" + date.getMinutes();
myDiv.setAttribute("class", "sent");
greendiv.setAttribute("class", "green");
dateLabel.setAttribute("class", "dateLabel");
greendiv.innerText = input.value;
myDiv.appendChild(greendiv);
myLI.appendChild(myDiv);
greendiv.appendChild(dateLabel);
document.getElementById("listUL").appendChild(myLI);
var s = document.getElementById("chatting");
s.scrollTop = s.scrollHeight;
setTimeout(function () { waitAndResponce(ti) }, 1500);
input.value = "";
playSound();
}
function waitAndResponce(inputText) {
var lastSeen = document.getElementById("lastseen");
lastSeen.innerText = "typing...";
var name = "";
if (inputText.toLowerCase().includes("my name is")) {
name = inputText.substring(inputText.indexOf("is") + 2);
if (name.toLowerCase().includes("BH Digital Solutions")) {
sendTextMessage("Ohh! That's my name too");
}
inputText = "input";
}
switch (inputText.toLowerCase().trim()) {
case "intro":
setTimeout(() => {
sendTextMessage("Hello there 👋🏻,<br><br>We are<span class='bold'><a class='alink'> BH Digital Solutions</a>.</span><br><br>Welcome to BH Digital Solutions, Where Success in the Digital World Begins.<br><br>Send <span class='bold'style='color:yellow;'>'Help'</span> to know more about our company or <br>Send <span class='bold' style='color:yellow;'>'Website'</span> to go back to the website <br><br><span style='font-size:10px;'>Note : Scroll Down To aceess The textbox.</span>");
}, 2000);
break;
case "help":
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'Services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'Contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'Clear'</span> - to clear conversation<br>");
break;
case "business profile":
sendTextMessage(resumeString);
break;
case "sample images":
sendTextMessage(imagesString);
break;
case "our offers":
sendTextMessage("Comming Soon....");
break;
case "service":
sendTextMessage("<span class='sk'>Send Keyword to get more information about our services.<br><br>1) <span class='bold'>'Social Media Marketing'</span><br>2) <span class='bold'>'Search Engine Optimization'</span> / <span class='bold'>'SEO'</span><br>3) <span class='bold'>'Graphic Design'</span><br>4) <span class='bold'>'Website Design'</span><br>5) <span class='bold'>'Website Development'</span><br>");
break;
case "services":
sendTextMessage("<span class='sk'>Send Keyword to get more information about our services.<br><br>1) <span class='bold'>'Social Media Marketing'</span><br>2) <span class='bold'>'Search Engine Optimization'</span> / <span class='bold'>'SEO'</span><br>3) <span class='bold'>'Graphic Design'</span><br>4) <span class='bold'>'Website Design'</span><br>5) <span class='bold'>'Website Development'</span><br>");
break;
case "social media marketing":
sendTextMessage("<span style='color:yellow;font-weight:bold;'>Social Media Marketing</span><br><br>With our social media marketing services, you can build a strong online presence,connect with your target audience, drive website traffic, generate leads, and ultimately achieve your business objectives Remember to personalize this content to reflect your company's unique values, achievements, and brand voice..");
break;
case "search engine optimization":
sendTextMessage("<span style='color:yellow;font-weight:bold;'>Search Engine Optimization</span><br><br>At BH Digital Solutions, where we specialize in driving organic traffic and enhancing your online visibility through effective SEO strategies. Our team of experienced SEO professionals is dedicated helping you achieve higher search engine rankings,increased website traffic, and improved conversions.");
break;
case "seo":
sendTextMessage("<span style='color:yellow;font-weight:bold;'>Search Engine Optimization</span><br><br>At BH Digital Solutions, where we specialize in driving organic traffic and enhancing your online visibility through effective SEO strategies. Our team of experienced SEO professionals is dedicated helping you achieve higher search engine rankings,increased website traffic, and improved conversions.");
break;
case "graphic design":
sendTextMessage("<span style='color:yellow;font-weight:bold;'>Graphic Design</span><br><br>At BH Digital Solutions, your destination for exceptional graphic design services. We are a team of passionate designers dedicated to transforming your ideas intocaptivating visual experiences. With our expertise in graphic design, we bring your brand to life through stunning visuals that leave a lasting impression.");
break;
case "website design":
sendTextMessage("<span style='color:yellow;font-weight:bold;'>Website Design</span><br><br>At BH Digital Solutions, we understand the significance of a well-designed website in today's digital landscape. We take a collaborative approach, working closely with you to understand your goals, target audience, and unique brand identity.");
break;
case "website development":
sendTextMessage("<span style='color:yellow;font-weight:bold;'>Website Developer</span><br><br>We understand the importance of a strong online presence in today's digital world,and we are here to help you build it with purpose. Whether you're a small business, a startup, or a large corporation, we have the expertise to elevate your brand through stunning website design and development.");
break;
case "clear":
clearChat();
break;
// case "about":
// break;
case "contact":
sendTextMessage(contactString);
break;
case "projects":
sendTextMessage("You want to check my projects? Then just jump into my Github Account.<br><br><div class='social'><a target='_blank' href='https://github.com/Varshithvhegde'> <div class='socialItem'><img class='socialItemI' src='../images1/github.svg' alt=''></div> </a></div>");
break;
case "time":
var date = new Date();
sendTextMessage("Current time is " + date.getHours() + ":" + date.getMinutes());
break;
case "date":
var date = new Date();
sendTextMessage("Current date is " + date.getDate() + "/" + date.getMonth() + "/" + date.getFullYear());
break;
case "hai":
sendTextMessage("Hello there 👋🏻");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello":
sendTextMessage("Hello there 👋🏻");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hi":
sendTextMessage("Hello there 👋🏻");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hey":
sendTextMessage("Hello there 👋🏻");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hiii":
sendTextMessage("Hello there 👋🏻");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hii":
sendTextMessage("Hello there 👋🏻");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hii how are you":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hii how are you?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello how are you?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello how are you":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello, how are you":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello, how are you?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello how r u":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello how r u?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello, how r u?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello hwru":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello, hwru?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hello hwru?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hi hwru":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hi, hwru?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hi hwru?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hii hwru":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hii, hwru?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hii hwru?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hiii hwru":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hiii, hwru?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
case "hiii hwru?":
sendTextMessage("Hello there 👋🏻I am Fine.");
sendTextMessage("<span class='sk'>Send Keyword to get what you want to know about our company..<br>e.g<br><span class='bold'>'services'</span> - to know our services<br><span class='bold'>'Business Profile'</span> - to get more about our Business Profile<br><span class='bold'>'Sample Images'</span> - to get more about our images work<br><span class='bold'>'contact'</span> - to get ways to connect with our company<br><span class='bold'>'Our Offers'</span> - to more about our Festival Offers<br><span class='bold'>'clear'</span> - to clear conversation<br>");
break;
// case "varshith":
// sendTextMessage("Yes, that's me");
// break;
// case "varshith hegde":
// sendTextMessage("Yes, that's me");
// break;
// case "varshith v hegde":
// sendTextMessage("Yes, that's me");
// break;
case "website":
sendTextMessage("Click to go to the website here <a href='../index.html' style='color:yellow;font-weight:500'>BH Digital Solutions</a>");
break;
// case "blog":
// sendTextMessage("You can check my blog here <a target='_blank' href='https://varshithvhegde.github.io/hugo-blog'>Varshith Hegde</a>");
// break;
// case "github":
// sendTextMessage("You can check my github here <a target='_blank' href='https://github.com/Varshithvhegde'>Varshith Hegde</a>");
// break;
// case "linkedin":
// sendTextMessage("You can check my linkedin here <a target='_blank' href='https://www.linkedin.com/in/varshithvhegde'>Varshith Hegde</a>");
// break;
// case "friends":
// case "friend":
// sendTextMessage("I am always ready to make new friends");
// break;
// case "input":
// setTimeout(() => {
// // sendTextMessage("What a coincidence!");
// sendTextMessage("Hello " + name + "! How are you?");
// }, 2000);
// break;
default:
setTimeout(() => {
sendTextMessage("Hey I couldn't catch you...😢<br>Send 'help' to know more about usage.");
}, 2000);
break;
}
}
function clearChat() {
document.getElementById("listUL").innerHTML = "";
waitAndResponce('intro');
}
function sendTextMessage(textToSend) {
setTimeout(setLastSeen, 1000);
var date = new Date();
var myLI = document.createElement("li");
var myDiv = document.createElement("div");
var greendiv = document.createElement("div");
var dateLabel = document.createElement("label");
dateLabel.setAttribute("id", "sentlabel");
dateLabel.id = "sentlabel";
dateLabel.innerText = date.getHours() + ":" + date.getMinutes();
myDiv.setAttribute("class", "received");
greendiv.setAttribute("class", "grey");
greendiv.innerHTML = textToSend;
myDiv.appendChild(greendiv);
myLI.appendChild(myDiv);
greendiv.appendChild(dateLabel);
document.getElementById("listUL").appendChild(myLI);
var s = document.getElementById("chatting");
s.scrollTop = s.scrollHeight;
playSound();
}
function sendResponse() {
setTimeout(setLastSeen, 1000);
var date = new Date();
var myLI = document.createElement("li");
var myDiv = document.createElement("div");
var greendiv = document.createElement("div");
var dateLabel = document.createElement("label");
dateLabel.innerText = date.getHours() + ":" + date.getMinutes();
myDiv.setAttribute("class", "received");
greendiv.setAttribute("class", "grey");
dateLabel.setAttribute("class", "dateLabel");
greendiv.innerText = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. ";
myDiv.appendChild(greendiv);
myLI.appendChild(myDiv);
greendiv.appendChild(dateLabel);
document.getElementById("listUL").appendChild(myLI);
var s = document.getElementById("chatting");
s.scrollTop = s.scrollHeight;
playSound();
}
function playSound() {
audio.play();
}