-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (72 loc) · 1.68 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
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1 user-scalable=no">
<link href='https://fonts.googleapis.com/css?family=Roboto:300' rel='stylesheet' type='text/css'>
<style>
@font-face {
font-family: klavika;
src: url(klavika.otf);
}
@media (min-width: 751px) {
body {
background-image: url('space.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-size: 100%;
}
h1 {
margin-top: 15%;
font-size: 4em;
}
#askTobyFont {
font-family: klavika;
color: white;
background-color: rgba(0, 0, 0, 0.6);
padding: 1em;
}
h2 {
font-family: klavika;
color: white;
font-size: 9em;
margin-left: 45%;
margin-top: 13%;
}
#keywords {
width: 425px;
height: 50px;
}
#lucky {
height: 56px;
width: 150px;
}
#input-div {
margin-top: -6.75%;
margin-left: 45%;
}
img {
width: 33%;
margin-left: 5%;
margin-top: -27%;
position: absolute;
}
}
@media (max-width: 750px) {
body {
visibility: hidden;
}
}
</style>
</head>
<body>
<h2>Ask Toby!</h2>
<div id="input-div"><form method="POST" action="asktoby3.php"><input type="text" id="keywords" name="queryText"><input type="submit" id="lucky" value="Feeling Lucky?"></form></div>
<img src="toby2.png">
<script>
if (screen.width < 751) {
alert("I haven't made asktoby.php mobile friendly yet. So if you're seeing this JavaScript alert, join my open source project and make it mobile friendly!");
}
</script>
</body>
</html>