jquery.min.js:2
Uncaught Error: Method 1494428400000 does not exist in the jCountdown Plugin
at Function.error (jquery.min.js:2)
at n.fn.init.a.fn.countdown (eval at <anonymous> (index.php:1), <anonymous>:1:4783)
at HTMLDocument.<anonymous> (index.php:1936)
at j (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.K (jquery.min.js:2)
<!-- IF SCRIPT_NAME == "index" and COUNTDOWNHEADER_ENABLE -->
<!-- INCLUDEJS jquery.jcountdownheader.min.js -->
<script type="text/javascript">
$(function() {
var $timerBox = $('#countdown-timer');
$timerBox.html('<span class="timer-big"></span><span class="timer-small"></span>');
var $timerBig = $timerBox.find('.timer-big');
var $timerSmall = $timerBox.find('.timer-small');
var number = '';
var unit = '';
var utc = new Date('{COUNTDOWNHEADER_DATE}').getTime();
$timerBox.countdown(utc).on('update.countdown', function(event) {
if (event.offset.totalDays > 0) {
number = event.strftime('%D');
unit = '{LA_COUNTDOWNHEADER_COUNT_DAYS}';
} else if (event.offset.hours > 0) {
number = event.strftime('%H');
unit = '{LA_COUNTDOWNHEADER_COUNT_HOURS}';
} else if (event.offset.minutes > 0) {
number = event.strftime('%M');
unit = '{LA_COUNTDOWNHEADER_COUNT_MINUTES}';
} else if (event.offset.seconds > 0) {
number = event.strftime('%S');
unit = '{LA_COUNTDOWNHEADER_COUNT_SECONDS}';
}
$timerBig.html(number);
$timerSmall.html(unit);
}).on('finish.countdown', function() {
$timerBig.html('{COUNTDOWNHEADER_TEXT_BIG}');
$timerSmall.html('{COUNTDOWNHEADER_TEXT_SMALL}');
$timerBox.attr('href', '{COUNTDOWNHEADER_URL}');
});
$timerBox.show();
});
</script>
<!-- ENDIF -->
purge the boards cache and your browser this will make it run on the index only.
Its default for prosilver but you can add a folder in styles call All and then a theme folder then a css file for it and copy the porsilver css into it then change the colours to your liking
martin wrote: 03 Aug 2017, 17:34
Its default for prosilver but you can add a folder in styles call All and then a theme folder then a css file for it and copy the porsilver css into it then change the colours to your liking
Thanks will have a crack at it next week when im off work again