-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
67 lines (56 loc) · 1.67 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<script src="language.js"></script>
<script>
window.onload = function()
{
if (window.location.hash == '#Error')
{
document.getElementById('Welcome').style.display = 'none';
document.getElementById('Error').style.display = 'block';
}
}
function goToHomePage()
{
window.location.href = 'home.html';
}
</script>
<title>Phoner</title>
<link rel="icon" href="assets/thumbnail.png" type="image/png" />
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<style>
body,
html {
height: 100%;
}
.bg {
/* The image used */
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("assets/architecture-art-bridge-cliff-459203.jpg");
/* Full height */
height: auto;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.text {
position: absolute;
color: #f1f1f1;
padding: 20px;
}
</style>
<body class="bg">
<div class="text verticalCenter" id="Welcome" onkeypress="goToHomePage()">
<h1>Welcome to Phoner!</h1>
<button onclick="goToHomePage()" class="compactBtn">Let's Go</button>
</div>
<div class="text verticalCenter" id="Error" style="display: none;">
<h1>Something went wrong!</h1>
<button class="compactBtn" onclick="window.history.back();">Try again</button>
<button class="compactBtn" onclick="window.open('https://bit.ly/2QbS3bN');">Send us feedback</button>
</div>
</body>
</html>