Skip to content

Commit

Permalink
Update timer and docker versions
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope committed Sep 23, 2024
1 parent de2424e commit 42a62aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
10 changes: 5 additions & 5 deletions source/js/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function ($) {
'use strict';

// navbarDropdown
if ($(window).width() < 992) {
$('.main-nav [data-toggle="dropdown"]').on('click', function () {
Expand Down Expand Up @@ -55,9 +55,9 @@
// Count Down JS
// -----------------------------
$('.timer').syotimer({
year: 2023,
year: 2024,
month: 11,
day: 3,
day: 29,
hour: 18,
minute: 0
});
Expand All @@ -81,7 +81,7 @@
fixedBgPos: true

});

// gallery-wrapper init
if (($('.gallery-wrapper').length) !== 0) {
var Shuffle = window.Shuffle;
Expand All @@ -101,4 +101,4 @@
}
});

})(jQuery);
})(jQuery);
14 changes: 10 additions & 4 deletions source/plugins/syotimer/jquery.syotimer.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,16 @@
o = new Date(i.year, i.month - 1, i.day, i.hour, i.minute, i.second),
r = y.getDifferenceWithTimezone(n, o, i),
a = y.getSecondsToDeadLine(r, i);
a >= 0
? (c._refreshUnitsDom.apply(this, [a]),
c._applyEffectSwitch.apply(this, [i.effectType]))
: ((t = e.extend(t, t.data("syotimer-blocks"))), i.afterDeadline(t));
if (a >= 0) {
c._refreshUnitsDom.apply(this, [a]);
c._applyEffectSwitch.apply(this, [i.effectType]);
} else {
// Check if difference is very small but positive
console.log(a);
if (a < 0 && Math.abs(a) > 1000) {
(t = e.extend(t, t.data("syotimer-blocks"))), i.afterDeadline(t);
}
}
},
_refreshUnitsDom: function (i) {
var n = e(this),
Expand Down

0 comments on commit 42a62aa

Please sign in to comment.