-
Notifications
You must be signed in to change notification settings - Fork 0
/
g.js
39 lines (30 loc) · 1007 Bytes
/
g.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$('.card').on('click', function () {
$('.container').toggleClass('container-origin');
});
$('.menu-btn__1').on('click', function (e) {
e.preventDefault();
$(this).toggleClass('menu-btn__1_active');
$('.menu_nav').toggleClass('menu_nav_active');
$('.menu-block').toggleClass('menu-block_active');
});
$('.envelope').on('click', function () {
$('.envelope_top').toggleClass('envelope_top__close');
$('.paper').toggleClass('paper__close');
});
$('.cardd').on('click', function () {
$('.front').toggleClass('front_active');
$('.back').toggleClass('back_active');
});
$('.menu-btn__2').on('click', function (e) {
e.preventDefault();
$(this).toggleClass('menu-btn__2__active');
$('.menu_nav__2').toggleClass('menu_nav__2__active');
});
window,onscroll=function showHeader(){
var header=document.querySelector('.header');
if(window.scrollY>100){
header.classList.add('header_fixed');
}else{
header.classList.remove('header_fixed');
}
}