19 lines
423 B
JavaScript
Executable File
19 lines
423 B
JavaScript
Executable File
$(function(){
|
|
$.stellar();
|
|
|
|
window.onscroll = function() {
|
|
document.getElementById("scrollDown").style.opacity = Math.max(0, 200 - window.scrollY) / 200;
|
|
};
|
|
});
|
|
|
|
function toggleMovie() {
|
|
if ($("header").hasClass("play")) {
|
|
$("header").removeClass("play");
|
|
$("header video")[0].pause();
|
|
} else {
|
|
$("header").addClass("play");
|
|
$("header video")[0].play();
|
|
}
|
|
}
|
|
|