fix missing existence check

This commit is contained in:
Christoph Schindlbeck 2023-02-03 19:52:38 +01:00
parent a522c02a36
commit 08e2f07877

View File

@ -33,17 +33,20 @@ $(document).ready(function(){
$hour = $('#countdown_dashboard').data('hour'); $hour = $('#countdown_dashboard').data('hour');
$minute = $('#countdown_dashboard').data('minute'); $minute = $('#countdown_dashboard').data('minute');
$second = $('#countdown_dashboard').data('second'); $second = $('#countdown_dashboard').data('second');
$('#countdown_dashboard').countDown({
targetDate: { if ($('#countdown_dashboard').length > 0) {
'day': $day, $('#countdown_dashboard').countDown({
'month': $month, targetDate: {
'year': $year, 'day': $day,
'hour': $hour, 'month': $month,
'min': $minute, 'year': $year,
'sec': $second, 'hour': $hour,
}, 'min': $minute,
omitWeeks: true 'sec': $second,
}); },
omitWeeks: true
});
}
$(".about-slider").owlCarousel( $(".about-slider").owlCarousel(
{ {