-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
49 lines (49 loc) · 1.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Whatsapp Widget</title>
</head>
<body>
<h1>Whatsapp Widget</h1>
<script type="text/javascript">
!function (w, h, a, t, s, p) {
w.whatsapp || (
s = h.createElement(a),
s.src = t,
p = h.getElementsByTagName(a)[0],
p.parentNode.insertBefore(s, p)
)
}(window, document, "script", "dist/js/whatsapp-widget.js");
window.addEventListener('load', function () {
new whatsapp({
title: '¿Necesitas ayuda?',
description: 'Chatea con nosotros por Whatsapp',
agents: [{
name: "Servicio al cliente",
phone: "+57 320 1234567",
hours: "Disponible 9am - 6pm",
cta: "Haz clic para iniciar chat",
message: "Hola, me gustaría obtener más información",
schedule: [
["9:00", "18:00"], //Sundays or Holidays
["9:00", "20:00"],
["9:00", "20:00"],
["9:00", "20:00"],
["9:00", "20:00"],
["9:00", "22:00"],
["10:00", "18:00"] // Saturday
]
},{
name: "Soporte técnico",
phone: "+57 320 7654321",
hours: "Disponible 9am - 6pm",
cta: "Haz clic para iniciar chat"
}]
})
});
</script>
</body>
</html>