This commit is contained in:
Dm1tr1y147
2019-05-18 17:14:59 +03:00
commit 8b40e58208
69 changed files with 1597 additions and 0 deletions

15
house/main.js Executable file
View File

@ -0,0 +1,15 @@
$(function() {
$('#logo').click(function() {
$('nav').toggleClass('opened')
});
$(".link").click(function (event) {
event.preventDefault();
var id = $(this).attr('href'),
top = $(id).offset().top,
time = Math.abs(window.pageYOffset - top) * 2;
if(window.innerHeight > window.innerWidth){
time = 1500;
}
$('body,html').animate({scrollTop: top}, time);
});
});