camp-homepage/public/js/main.js
Christoph Schindlbeck 522a4c4df2 rebuild site
2023-02-05 13:47:43 +01:00

67 lines
1.4 KiB
JavaScript

$(window).load(function() {
$("#preloader").fadeOut("slow");
});
$(document).ready(function(){
new WOW().init();
$('#top-nav').onePageNav({
currentClass: 'current',
changeHash: true,
scrollSpeed: 1200
});
//animated header class
$(window).scroll(function() {
var scroll = $(window).scrollTop();
//console.log(scroll);
if (scroll > 200) {
//console.log('a');
$(".navigation").addClass("animated");
} else {
//console.log('a');
$(".navigation").removeClass("animated");
}});
$year = $('#countdown_dashboard').data('year');
$month = $('#countdown_dashboard').data('month');
$day = $('#countdown_dashboard').data('day');
$hour = $('#countdown_dashboard').data('hour');
$minute = $('#countdown_dashboard').data('minute');
$second = $('#countdown_dashboard').data('second');
if ($('#countdown_dashboard').length > 0) {
$('#countdown_dashboard').countDown({
targetDate: {
'day': $day,
'month': $month,
'year': $year,
'hour': $hour,
'min': $minute,
'sec': $second,
},
omitWeeks: true
});
}
$(".about-slider").owlCarousel(
{
singleItem: true,
pagination : true,
autoPlay : 5000,
}
);
});