-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
82 lines (79 loc) · 2.59 KB
/
script.js
File metadata and controls
82 lines (79 loc) · 2.59 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// sağ tık engelleme kodu
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS)
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
if(EnableRightClick==1){ return true; }
else {return false; }
}
function mousehandler(e){
if(EnableRightClick==1){ return true; }
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
}
function keyhandler(e) {
var myevent = (isNS) ? e : window.event;
if (myevent.keyCode==96)
EnableRightClick = 1;
return;
}
document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;
// sağ tık engelleme kodu
function showabout(){
$("#about_container").css("display","inherit");
$("#about_container").addClass("animated slideInLeft");
setTimeout(function(){
$("#about_container").removeClass("animated slideInLeft");
},800);
}
function closeabout(){
$("#about_container").addClass("animated slideOutLeft");
setTimeout(function(){
$("#about_container").removeClass("animated slideOutLeft");
$("#about_container").css("display","none");
},800);
}
function showwork(){
$("#work_container").css("display","inherit");
$("#work_container").addClass("animated slideInRight");
setTimeout(function(){
$("#work_container").removeClass("animated slideInRight");
},800);
}
function closework(){
$("#work_container").addClass("animated slideOutRight");
setTimeout(function(){
$("#work_container").removeClass("animated slideOutRight");
$("#work_container").css("display","none");
},800);
}
function showcontact(){
$("#contact_container").css("display","inherit");
$("#contact_container").addClass("animated slideInUp");
setTimeout(function(){
$("#contact_container").removeClass("animated slideInUp");
},800);
}
function closecontact(){
$("#contact_container").addClass("animated slideOutDown");
setTimeout(function(){
$("#contact_container").removeClass("animated slideOutDown");
$("#contact_container").css("display","none");
},800);
}
setTimeout(function(){
$("#loading").addClass("animated fadeOut");
setTimeout(function(){
$("#loading").removeClass("animated fadeOut");
$("#loading").css("display","none");
$("#box").css("display","none");
$("#about").removeClass("animated fadeIn");
$("#contact").removeClass("animated fadeIn");
$("#work").removeClass("animated fadeIn");
},1000);
},1500);