geeparts-js 1.3.11 → 1.3.13

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.
Files changed (2) hide show
  1. package/index.js +38 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1360,6 +1360,31 @@ if (pathName === '/hero/' || pathName === '/hero') {
1360
1360
  </ul>
1361
1361
  </div>
1362
1362
  `
1363
+ } else if (pathName === '/sym/' || pathName === '/sym') {
1364
+ const categoryBody = document.querySelector('.category-body .container-fluid .js-product-table')
1365
+ if (categoryBody) {
1366
+ categoryBody.style.display = 'none'
1367
+ }
1368
+ document.querySelectorAll('#nav-filters #filters .col-12').forEach((el, index) => {
1369
+ if (index > 0) el.style.display = 'none'
1370
+ })
1371
+ const categoryConstrols = document.querySelector('.category-controls .form-group')
1372
+ if (categoryConstrols) categoryConstrols.style.display = 'none'
1373
+
1374
+ document.querySelector('.category-body .container-fluid').innerHTML = `
1375
+ <div class="container_motos_modelos">
1376
+ <ul class="kawasaki_section">
1377
+ <li class="moto">
1378
+ <a href="https://www.geeparts.co/sym/adxtg-150" class="link_marca">
1379
+ <img src="https://download.geeparts.co/SYM-ADXTG-150.webp" alt="Adxtg 150">
1380
+ <div class="info">
1381
+ <p>Adxtg 150</p>
1382
+ </div>
1383
+ </a>
1384
+ </li>
1385
+ </ul>
1386
+ </div>
1387
+ `
1363
1388
  }
1364
1389
 
1365
1390
  const categorysContent = document.querySelector('.category-body .container-fluid')
@@ -1765,10 +1790,10 @@ if (window.matchMedia('(min-width: 768px)').matches) {
1765
1790
  </ul>
1766
1791
  </li>
1767
1792
  <li>
1768
- <a href="/royal-enfield">Royal Enfield</a>
1793
+ <a href="/sym">SYM</a>
1769
1794
  <ul class="menu_level_two">
1770
1795
  <li>
1771
- <a class="nav-list-link" href="https://www.geeparts.co/royal-enfield/himalayan/">Himalayan</a>
1796
+ <a class="nav-list-link" href="https://www.geeparts.co/sym/adxtg-150/">Adxtg 150</a>
1772
1797
  </li>
1773
1798
  </ul>
1774
1799
  </li>
@@ -1843,7 +1868,7 @@ if (window.matchMedia('(min-width: 768px)').matches) {
1843
1868
  </li>
1844
1869
  </ul>
1845
1870
  </li>
1846
- <li>
1871
+ <li class="universales">
1847
1872
  <a href="#">Universales</a>
1848
1873
  <ul class="menu_level_two">
1849
1874
  <li><a href="/manubrios">Manubrios</a></li>
@@ -1851,12 +1876,21 @@ if (window.matchMedia('(min-width: 768px)').matches) {
1851
1876
  <li><a href="/baul">Baúl</a></li>
1852
1877
  <li><a href="/caballetetrasero">Caballete trasero</a></li>
1853
1878
  <li><a href="/porta-placas">Porta placas</a></li>
1854
- <li><a href="/corta-vientos">Corta vientos</a></li>
1879
+ <li><a href="/corta-vientos">Corta vientos</a></li>
1880
+ <li>
1881
+ <a href="/royal-enfield">Royal Enfield</a>
1882
+ <ul class="menu_level_three">
1883
+ <li>
1884
+ <a class="nav-list-link" href="https://www.geeparts.co/royal-enfield/himalayan/">Himalayan</a>
1885
+ </li>
1886
+ </ul>
1887
+ </li>
1855
1888
  </ul>
1856
1889
  </li>
1857
1890
  </ul>
1858
1891
  </nav>
1859
1892
  `
1893
+ // .universales -> .menu_level_two -> overflow: initial; -> .menu_level_three -> left: -98px; top: 0;
1860
1894
 
1861
1895
  if (carritoCompras) {
1862
1896
  document.querySelector('.car_search_user .carrito').appendChild(carritoComprasClone)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geeparts-js",
3
- "version": "1.3.11",
3
+ "version": "1.3.13",
4
4
  "description": "Code main page Geeparts",
5
5
  "main": "index.js",
6
6
  "scripts": {