-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
111 lines (103 loc) · 2.26 KB
/
app.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
var catalogo = [{
src: "./img/works/001.jpg"
},
{
src: "./img/works/002.jpg"
},
{
src: "./img/works/003.jpg"
},
{
src: "./img/works/004.jpg"
},
{
src: "./img/works/005.jpg"
},
{
src: "./img/works/006.jpg"
},
{
src: "./img/works/007.jpg"
},
{
src: "./img/works/008.jpg"
},
{
src: "./img/works/009.jpg"
},
{
src: "./img/works/010.jpg"
},
{
src: "./img/works/011.jpg"
},
{
src: "./img/works/013.jpg"
},
{
src: "./img/works/014.jpg"
},
{
src: "./img/works/015.jpg"
},
{
src: "./img/works/016.jpg"
},
{
src: "./img/works/017.jpg"
},
{
src: "./img/works/018.jpg"
},
{
src: "./img/works/019.jpg"
},
{
src: "./img/works/020.jpg"
},
{
src: "./img/works/021.jpg"
},
{
src: "./img/works/022.jpg"
},
{
src: "./img/works/023.jpg"
},
{
src: "./img/works/024.jpg"
},
{
src: "./img/works/025.jpg"
},
]
function mostrarGal() {
var Tattoo = '';
for (var i = 0; i < catalogo.length; i++) {
Tattoo += '<div class="col-sm-12 col-lg-4 my-2"><img src="' + catalogo[i].src + '" alt="aqui deberia haber un tatto"></div>';
}
document.getElementById('trabajos').innerHTML = Tattoo;
};
mostrarGal();
function enviar_mensaje() {
var a = document.getElementById("chat-input");
if ("" != a.value) {
var b = document.getElementById("get-number").innerHTML,
c = document.getElementById("chat-input").value,
d = "https://web.whatsapp.com/send",
e = b,
f = "&text=" + c;
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) var d = "whatsapp://send";
var g = d + "?phone=" + e + f;
window.open(g, "_blank");
}
}
const whatsapp_chat = document.getElementById("whatsapp-chat");
function cerrar_chat() {
whatsapp_chat.classList.add("hide");
whatsapp_chat.classList.remove("show");
}
function mostrar_chat() {
whatsapp_chat.classList.add("show");
whatsapp_chat.classList.remove("hide");
}