-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
54 lines (38 loc) · 1001 Bytes
/
script.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
$(document).ready(function () {
$('#menu').click(function () {
$(this).toggleClass('fa-times');
$('header').toggleClass('toggle');
});
$(window).on('scroll load', function () {
$('#menu').removeClass('fa-times');
$('header').removeClass('toggle');
if ($(window).scrollTop() > 0) {
$('.top').show();
} else {
$('.top').hide();
}
});
// smooth scrolling
$('a[href*="#"]').on('click', function (e) {
e.preventDefault();
$('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top,
},
500,
'linear'
);
});
});
// Disable right-click on images
$(document).ready(function () {
$("img").on("contextmenu", function () {
return false;
});
});
// Disable right-click on webpage
$(document).bind("contextmenu", function (e) {
return false;
});
function contact() {
window.open("https://forms.gle/ueD8HL2uSMGb2GJr7", "_blank");
}