-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
39 lines (39 loc) · 1.03 KB
/
main.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
// var p = 0;
// var offset = 0;
//
//
// window.addEventListener('scroll', () => {
// p = $( ".contact" ).last();
// offset = p.offset();
// p1 = $( ".contact" ).first();
// position = p.position();
// $('.contact').css('bottom', "50%");
// $('.contact').css('left', offset.left);
// console.log("left :" + offset.left + "top :" + offset.top);
// console.log(offset);
// console.log(position);
//
// if (window.scrollY > 300) {
// $('.contact').addClass('scroll');
// $('.contact').css('bottom', '2%');
// $('.contact').css('right', '2%');
// $('.contact').css('top', '');
// $('.contact').css('left', '');
//
// $('.txt_reseau').addClass('scroll');
// } else {
// $('.contact').removeClass('scroll');
// $('.txt_reseau').removeClass('scroll');
// $('.contact').css('bottom', '');
// $('.contact').css('right', '');
// $('.contact').css('top', '');
// $('.contact').css('left', '');
// }
// });
//
//
//
//
// $('#subscribe').submit(function() {
// console.log('sub');
// });