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.
41 lines
961 B
JavaScript
41 lines
961 B
JavaScript
var userAgent = navigator.platform;
|
|
|
|
var mac = /Mac/,
|
|
win = /Win/,
|
|
lin = /Lin/,
|
|
lin64 = /x86_64/;
|
|
|
|
if(mac.test(userAgent)) {
|
|
document.getElementsByTagName('body')[0].className+=' mac';
|
|
} else if (win.test(userAgent)) {
|
|
document.getElementsByTagName('body')[0].className+=' win';
|
|
} else if (lin.test(userAgent)) {
|
|
if(lin64.test(userAgent)) {
|
|
document.getElementsByTagName('body')[0].className+=' lin-64';
|
|
} else {
|
|
document.getElementsByTagName('body')[0].className+=' lin-32';
|
|
}
|
|
} else {
|
|
document.getElementsByTagName('body')[0].className+=' nope';
|
|
}
|
|
|
|
var heroHeight = document.getElementById('header').offsetHeight;
|
|
|
|
// Disable WOW on small screens.
|
|
try {
|
|
if(window.innerWidth > 768) {
|
|
wow = new WOW(
|
|
{
|
|
animateClass: 'animated',
|
|
offset: 100
|
|
}
|
|
);
|
|
wow.init();
|
|
};
|
|
} catch(err) { }
|
|
|
|
$(document).ready(function() {
|
|
$('#langswitch').polyglotLanguageSwitcher({
|
|
effect: 'slide'
|
|
});
|
|
}); |