geeparts-js 1.5.1 → 1.5.2
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 +33 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1896,12 +1896,37 @@ const countdownWrapper = `
|
|
|
1896
1896
|
</div>
|
|
1897
1897
|
`
|
|
1898
1898
|
|
|
1899
|
+
const countdownWrapperMobile = `
|
|
1900
|
+
<div class="countdown-wrapper">
|
|
1901
|
+
<div class="countdown" id="countdown-mobile">
|
|
1902
|
+
<div class="countdown-item">
|
|
1903
|
+
<span class="countdown-number" id="days-mobile">00</span>
|
|
1904
|
+
<span class="countdown-label">Días</span>
|
|
1905
|
+
</div>
|
|
1906
|
+
<div class="countdown-item">
|
|
1907
|
+
<span class="countdown-number" id="hours-mobile">00</span>
|
|
1908
|
+
<span class="countdown-label">Horas</span>
|
|
1909
|
+
</div>
|
|
1910
|
+
<div class="countdown-item">
|
|
1911
|
+
<span class="countdown-number" id="minutes-mobile">00</span>
|
|
1912
|
+
<span class="countdown-label full">Minutos</span>
|
|
1913
|
+
<span class="countdown-label short">M</span>
|
|
1914
|
+
</div>
|
|
1915
|
+
<div class="countdown-item">
|
|
1916
|
+
<span class="countdown-number" id="seconds-mobile">00</span>
|
|
1917
|
+
<span class="countdown-label full">Segundos</span>
|
|
1918
|
+
<span class="countdown-label short">S</span>
|
|
1919
|
+
</div>
|
|
1920
|
+
</div>
|
|
1921
|
+
</div>
|
|
1922
|
+
`
|
|
1923
|
+
|
|
1899
1924
|
if (sliderContainer) {
|
|
1900
1925
|
sliderContainer.insertAdjacentHTML('beforeend', countdownWrapper)
|
|
1901
1926
|
}
|
|
1902
1927
|
|
|
1903
1928
|
if (sliderContainerMobile) {
|
|
1904
|
-
sliderContainerMobile.insertAdjacentHTML('beforeend',
|
|
1929
|
+
sliderContainerMobile.insertAdjacentHTML('beforeend', countdownWrapperMobile)
|
|
1905
1930
|
}
|
|
1906
1931
|
|
|
1907
1932
|
const blackDaysDate = new Date(2025, 10, 28, 0, 0, 0).getTime()
|
|
@@ -1913,6 +1938,8 @@ function updateCountdown() {
|
|
|
1913
1938
|
if (distance < 0) {
|
|
1914
1939
|
document.getElementById('countdown').innerHTML =
|
|
1915
1940
|
'<h2 style="color: #FFD700; font-size: 3rem; text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);">¡BLACK DAYS YA ESTÁ AQUÍ!</h2>'
|
|
1941
|
+
document.getElementById('countdown-mobile').innerHTML =
|
|
1942
|
+
'<h2 style="color: #FFD700; font-size: 3rem; text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);">¡BLACK DAYS YA ESTÁ AQUÍ!</h2>'
|
|
1916
1943
|
return
|
|
1917
1944
|
}
|
|
1918
1945
|
|
|
@@ -1925,6 +1952,11 @@ function updateCountdown() {
|
|
|
1925
1952
|
document.getElementById('hours').textContent = String(hours).padStart(2, '0')
|
|
1926
1953
|
document.getElementById('minutes').textContent = String(minutes).padStart(2, '0')
|
|
1927
1954
|
document.getElementById('seconds').textContent = String(seconds).padStart(2, '0')
|
|
1955
|
+
|
|
1956
|
+
document.getElementById('days-mobile').textContent = String(days).padStart(2, '0')
|
|
1957
|
+
document.getElementById('hours-mobile').textContent = String(hours).padStart(2, '0')
|
|
1958
|
+
document.getElementById('minutes-mobile').textContent = String(minutes).padStart(2, '0')
|
|
1959
|
+
document.getElementById('seconds-mobile').textContent = String(seconds).padStart(2, '0')
|
|
1928
1960
|
}
|
|
1929
1961
|
|
|
1930
1962
|
// Actualizar cada segundo
|