-
Notifications
You must be signed in to change notification settings - Fork 1
/
basic.html
executable file
·134 lines (134 loc) · 6.03 KB
/
basic.html
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<script src="js/mui.min.js"></script>
<link href="css/mui.min.css" rel="stylesheet"/>
<script type="text/javascript" charset="UTF-8">
mui.init();
</script>
<style type="text/css">
p{
color: #000000;
padding-left: 3%;
padding-right: 3%;
font-size: 100%;
font-weight: 300;
}
</style>
</head>
<body>
<header id="header" class="mui-bar mui-bar-nav" style="height:74px;background: rgba(255,255,255,0);box-shadow: 0 0 1px rgba(0, 0, 0, 0);">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #FFFFFF;margin-top: 30px;"></a>
<h1 id="nav_title" class="mui-title" style="color: #FFFFFF;margin-top: 30px;opacity: 0">Basic Concept</h1>
</header>
<img id="background" src="img/basic_header.png" style="width: 100%;margin-bottom: 10px;"/>
<p>Cryptography or cryptology is the practice and study of techniques for secure communication. More generally, cryptography is about constructing and analyzing protocols that prevent third parties or the public from reading private messages; various aspects in information security such as data confidentiality, data integrity, authentication, and non-repudiation are central to modern cryptography. Modern cryptography exists at the intersection of the disciplines of mathematics, computer science, and electrical engineering. Applications of cryptography include ATM cards, computer passwords, and electronic commerce.</p>
</body>
<script type="text/javascript">
var header = document.getElementById('header');
var background = document.getElementById('background');
setInterval(function() {
var t = document.body.scrollTop;
var height = background.offsetHeight - 74;
if(t>=0 && t<height * 0.1){
header.style.background = "rgba(61,171,201,0)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.1 + 1 && t<height * 0.2){
header.style.background = "rgba(61,171,201,0.1)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.2 + 1 && t<height * 0.3){
header.style.background = "rgba(61,171,201,0.2)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.3 + 1 && t<height * 0.4){
header.style.background = "rgba(61,171,201,0.3)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.4 + 1 && t<height * 0.5){
header.style.background = "rgba(61,171,201,0.4)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.5 + 1 && t<height * 0.6){
header.style.background = "rgba(61,171,201,0.5)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.6 + 1 && t<height * 0.7){
header.style.background = "rgba(61,171,201,0.6)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.7 + 1 && t<height * 0.8){
header.style.background = "rgba(61,171,201,0.7)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.8 + 1 && t<height * 0.9){
header.style.background = "rgba(61,171,201,0.8)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.9 + 1 && t<height * 1){
header.style.background = "rgba(61,171,201,0.9)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height){
header.style.background = "rgba(61,171,201,1)";
header.style.boxShadow = "0 0 1px rgba(0, 0, 0, .85);";
document.getElementById('nav_title').style.opacity = 1;
}
}, 10);
window.addEventListener('scroll',function(event){
if(mui.os.android){
var t = document.body.scrollTop;
var height = background.offsetHeight - 74;
if(t>=0 && t<height * 0.1){
header.style.background = "rgba(61,171,201,0)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.1 + 1 && t<height * 0.2){
header.style.background = "rgba(61,171,201,0.1)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.2 + 1 && t<height * 0.3){
header.style.background = "rgba(61,171,201,0.2)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.3 + 1 && t<height * 0.4){
header.style.background = "rgba(61,171,201,0.3)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.4 + 1 && t<height * 0.5){
header.style.background = "rgba(61,171,201,0.4)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.5 + 1 && t<height * 0.6){
header.style.background = "rgba(61,171,201,0.5)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.6 + 1 && t<height * 0.7){
header.style.background = "rgba(61,171,201,0.6)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.7 + 1 && t<height * 0.8){
header.style.background = "rgba(61,171,201,0.7)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.8 + 1 && t<height * 0.9){
header.style.background = "rgba(61,171,201,0.8)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height * 0.9 + 1 && t<height * 1){
header.style.background = "rgba(61,171,201,0.9)";
document.getElementById('nav_title').style.opacity = 0;
}
if(t>=height){
header.style.background = "rgba(61,171,201,1)";
header.style.boxShadow = "0 0 1px rgba(0, 0, 0, .85);";
document.getElementById('nav_title').style.opacity = 1;
}
}
},false);
</script>
</html>