Widgets added and PHP error fixed for version < 5.2
This commit is contained in:
@@ -9,6 +9,18 @@ function viewport() {
|
||||
|
||||
(function($) {
|
||||
|
||||
/* Countdown */
|
||||
|
||||
$("[data-countdown]").each(function() {
|
||||
var $this = $(this), finalDate = $(this).data('countdown');
|
||||
$this.countdown(finalDate, function(event) {
|
||||
$this.html(event.strftime("<span>%D <small>" + localized_strings.days + "</small></span> "
|
||||
+ "<span>%H <small>" + localized_strings.hours + "</small></span> "
|
||||
+ "<span>%M <small>" + localized_strings.mins + "</small></span> "
|
||||
+ "<span>%S <small>" + localized_strings.secs + "</small></span>" ));
|
||||
});
|
||||
});
|
||||
|
||||
/* Data Tables */
|
||||
|
||||
if (viewport().width > 640) {
|
||||
|
||||
Reference in New Issue
Block a user