Widgets added and PHP error fixed for version < 5.2

This commit is contained in:
Brian Miyaji
2014-02-05 19:51:28 +11:00
parent d1df5b757a
commit 1c0bc6a468
19 changed files with 359 additions and 143 deletions

View File

@@ -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) {