You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
837 B
JavaScript

// Disable WOW on small screens.
if($(window).width() > 768) {
wow = new WOW(
{
animateClass: 'animated',
offset: 100
}
);
wow.init();
10 years ago
};
10 years ago
var userAgent = navigator.platform;
//alert(userAgent);
if(userAgent.substring(0,3) == "Mac") {
10 years ago
document.getElementsByTagName('body')[0].className+=' mac';
10 years ago
} else if (userAgent.substring(0,3) == "Win") {
10 years ago
document.getElementsByTagName('body')[0].className+=' win';
} else if (userAgent.substring(0,3) == "Lin") {
10 years ago
document.getElementsByTagName('body')[0].className+=' lin';
10 years ago
} else {
10 years ago
document.getElementsByTagName('body')[0].className+=' nope';
10 years ago
}
/*var obj = document.getElementById("header");
var topVal = parseInt(obj.style.top, 10);
obj.style.top = (topVal + 300) + "px";*/
var heroHeight = document.getElementById('header').offsetHeight;
//alert(heroHeight);