geeparts-js 1.3.15 → 1.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +37 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,6 +2,11 @@ function createSocialBar() {
|
|
|
2
2
|
const socialBar = document.createElement('div')
|
|
3
3
|
socialBar.className = 'social-bar'
|
|
4
4
|
const socialNetworks = [
|
|
5
|
+
{
|
|
6
|
+
name: 'whatsapp',
|
|
7
|
+
url: 'https://wa.me/573043538612?text=Hola%20vengo%20del%20sitio%20web%20Geeparts%20y%20quisiera%20m%C3%A1s%20informaci%C3%B3n%20',
|
|
8
|
+
image: 'https://download.geeparts.co/whatsapp-web.png',
|
|
9
|
+
},
|
|
5
10
|
{
|
|
6
11
|
name: 'sistecredito',
|
|
7
12
|
url: 'https://wa.me/573043538612?text=Hola%20vengo%20del%20sitio%20web%20Geeparts%20y%20quisiera%20m%C3%A1s%20informaci%C3%B3n%20',
|
|
@@ -1794,3 +1799,35 @@ if (window.matchMedia('(min-width: 768px)').matches) {
|
|
|
1794
1799
|
}
|
|
1795
1800
|
}
|
|
1796
1801
|
}
|
|
1802
|
+
|
|
1803
|
+
const footer = document.querySelector('.js-footer')
|
|
1804
|
+
|
|
1805
|
+
if (footer) {
|
|
1806
|
+
const blockInfo = document.createElement('div')
|
|
1807
|
+
blockInfo.classList.add('block_info')
|
|
1808
|
+
|
|
1809
|
+
blockInfo.innerHTML = `
|
|
1810
|
+
<div class="block-container">
|
|
1811
|
+
<a href="https://www.google.com/maps/dir//Av.+2+%238-69,+San+Luis,+C%C3%BAcuta,+Norte+de+Santander/@7.8965953,-72.565511,12z/data=!4m8!4m7!1m0!1m5!1m1!1s0x8e6645cb74f474a9:0x5dbca0ce3ba3a0af!2m2!1d-72.4830683!2d7.8965923?entry=ttu&g_ep=EgoyMDI1MDkwMy4wIKXMDSoASAFQAw%3D%3D" target="_blank" rel="noopener">
|
|
1812
|
+
<div class="element">
|
|
1813
|
+
<img src="https://download.geeparts.co/tienda-fisica.png" alt="Tienda física" class="logo">
|
|
1814
|
+
<span class="text">Visita nuestra tienda física</span>
|
|
1815
|
+
</div>
|
|
1816
|
+
</a>
|
|
1817
|
+
<a href="https://mayoristas.geeparts.co/registro-nuevo/" target="_blank" rel="noopener">
|
|
1818
|
+
<div class="element">
|
|
1819
|
+
<img src="https://download.geeparts.co/mayoristas.png" alt="Mayoristas" class="logo">
|
|
1820
|
+
<span class="text">Haz parte de nuestros mayoristas</span>
|
|
1821
|
+
</div>
|
|
1822
|
+
</a>
|
|
1823
|
+
<a href="#">
|
|
1824
|
+
<div class="element">
|
|
1825
|
+
<img src="https://download.geeparts.co/distribuidores.png" alt="Distribuidores" class="logo">
|
|
1826
|
+
<span class="text">Conoce nuestros distribuidores</span>
|
|
1827
|
+
</div>
|
|
1828
|
+
</a>
|
|
1829
|
+
</div>
|
|
1830
|
+
`
|
|
1831
|
+
|
|
1832
|
+
footer.parentNode.insertBefore(blockInfo, footer)
|
|
1833
|
+
}
|