-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #398 from Invizo/develop
Merge Develop with Master
- Loading branch information
Showing
86 changed files
with
36,316 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
'use strict'; | ||
"use strict"; | ||
|
||
jQuery(document).ready( function($) { | ||
jQuery(document).ready(function ($) { | ||
sgsb_countdown_timer_methods(); | ||
}); | ||
|
||
$('.sgsb-countdown-timer-items').each(function() { | ||
$(this).countdown( $(this).data('end-date') ) | ||
.on('update.countdown', function(event) { | ||
$(this).find('strong.sgsb-countdown-timer-item-days').html(event.strftime('%D')); | ||
$(this).find('strong.sgsb-countdown-timer-item-hours').html(event.strftime('%H')); | ||
$(this).find('strong.sgsb-countdown-timer-item-minutes').html(event.strftime('%M')); | ||
$(this).find('strong.sgsb-countdown-timer-item-seconds').html(event.strftime('%S')); | ||
function sgsb_countdown_timer_methods() { | ||
jQuery(".sgsb-countdown-timer-items").each(function () { | ||
jQuery(this) | ||
.countdown(jQuery(this).data("end-date")) | ||
.on("update.countdown", function (event) { | ||
jQuery(this) | ||
.find("strong.sgsb-countdown-timer-item-days") | ||
.html(event.strftime("%D")); | ||
jQuery(this) | ||
.find("strong.sgsb-countdown-timer-item-hours") | ||
.html(event.strftime("%H")); | ||
jQuery(this) | ||
.find("strong.sgsb-countdown-timer-item-minutes") | ||
.html(event.strftime("%M")); | ||
jQuery(this) | ||
.find("strong.sgsb-countdown-timer-item-seconds") | ||
.html(event.strftime("%S")); | ||
}); | ||
}); | ||
|
||
} ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.