Repository navigation
Expand file tree
/
Copy pathHeader_Footer.js
More file actions
172 lines (163 loc) · 4.99 KB
/
Copy pathHeader_Footer.js
File metadata and controls
172 lines (163 loc) · 4.99 KB
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
function showBar() {
elem = document.getElementById("texto_busqueda");
buscar = document.getElementById("barra_busqueda");
boton_salir = document.getElementById("boton_salida");
boton_buscar = document.getElementById("boton_busqueda");
if (elem.className=="activo") {
elem.className = "desactivado";
buscar.className = "busqueda";
boton_salir.className = "boton_salida--desactivado";
boton_buscar.className = "boton_busqueda--active";
}
else {
elem.className = "activo";
buscar.className = "busqueda--active";
boton_salir.className = "boton_salida--active";
boton_buscar.className = "boton_busqueda--desactivado";
}
}
function showBurger() {
elem1 = document.getElementById("elementos_links");
if (elem1.className=="menu_cerrado") {
elem1.className = "menu_abierto";
}
else {
elem1.className = "menu_cerrado";
}
}
function loaded() {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const busqueda = urlParams.get('busqueda')
document.getElementById("busqueda_texto_item").innerHTML = busqueda
};
window.addEventListener("load",function() {
new Glider(this.document.querySelector(".carousel_lista"), {
slidesToShow: 1.25,
slidesToScroll: 1,
draggable: true,
dots: ".carousel_indicador",
arrows: {
prev: ".carrousel_anterior",
next: ".carrousel_siguiente"
},
responsive: [
{
// screens greater than >= 775px
breakpoint: 650,
settings: {
// Set to `auto` and provide item width to adjust to viewport
slidesToShow: 2,
slidesToScroll: 1,
itemWidth: 150,
duration: 0.25
}
},{
// screens greater than >= 1024px
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
itemWidth: 150,
duration: 0.25
}
}
]
});
new Glider(this.document.querySelector(".carousel_lista_2"), {
slidesToShow: 1.25,
slidesToScroll: 1,
draggable: true,
dots: ".carousel_indicador_2",
arrows: {
prev: ".carrousel_anterior_2",
next: ".carrousel_siguiente_2"
},
responsive: [
{
// screens greater than >= 775px
breakpoint: 650,
settings: {
// Set to `auto` and provide item width to adjust to viewport
slidesToShow: 2,
slidesToScroll: 1,
itemWidth: 150,
duration: 0.25
}
},{
// screens greater than >= 1024px
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
itemWidth: 150,
duration: 0.25
}
}
]
});
new Glider(this.document.querySelector(".carousel_lista_3"), {
slidesToShow: 1.25,
slidesToScroll: 1,
draggable: true,
dots: ".carousel_indicador_3",
arrows: {
prev: ".carrousel_anterior_3",
next: ".carrousel_siguiente_3"
},
responsive: [
{
// screens greater than >= 775px
breakpoint: 650,
settings: {
// Set to `auto` and provide item width to adjust to viewport
slidesToShow: 2,
slidesToScroll: 1,
itemWidth: 150,
duration: 0.25
}
},{
// screens greater than >= 1024px
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
itemWidth: 150,
duration: 0.25
}
}
]
});
new Glider(this.document.querySelector(".carousel_lista_4"), {
slidesToShow: 1.25,
slidesToScroll: 1,
draggable: true,
dots: ".carousel_indicador_4",
arrows: {
prev: ".carrousel_anterior_4",
next: ".carrousel_siguiente_4"
},
responsive: [
{
// screens greater than >= 775px
breakpoint: 650,
settings: {
// Set to `auto` and provide item width to adjust to viewport
slidesToShow: 2,
slidesToScroll: 1,
itemWidth: 150,
duration: 0.25
}
},{
// screens greater than >= 1024px
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
itemWidth: 150,
duration: 0.25
}
}
]
});
});