camp-homepage/themes/infinity-hugo/static/js/main.js
2022-08-10 23:46:45 +02:00

64 lines
1.3 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');
$('#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,
}
);
});