$(document).ready(function() {
/* scroll */
$('a[href^="#"]').click(function (){
var elementClick = $(this).attr("href");
var destination = $(elementClick).offset().top;
jQuery("html:not(:animated), body:not(:animated)").animate({scrollTop: destination}, 600);
return false;
})
/* timer */
function update() {
var Now = new Date(), Finish = new Date();
Finish.setHours( 23);
Finish.setMinutes( 59);
Finish.setSeconds( 59);
if( Now.getHours() === 23 && Now.getMinutes() === 59 && Now.getSeconds === 59) {
Finish.setDate( Finish.getDate() + 1);
}
var sec = Math.floor( ( Finish.getTime() - Now.getTime()) / 1000);
var hrs = Math.floor( sec / 3600);
sec -= hrs * 3600;
var min = Math.floor( sec / 60);
sec -= min * 60;
$(".timer .hours").html( pad(hrs));
$(".timer .minutes").html( pad(min));
$(".timer .seconds").html( pad(sec));
setTimeout( update, 200);
}
function pad(s) {
s = ("00"+s).substr(-2);
return "" + s[0] + "" + s[1] + "";
}
update();
/* sliders */
$(".reviews_list").owlCarousel({
items: 1,
loop: true,
smartSpeed: 300,
mouseDrag: false,
pullDrag: false,
dots: false,
nav: true,
navText: ""
});
});