-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
173 lines (149 loc) · 4.05 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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
p {
width: 100px;
height: 100px;
background-color: red;
position: relative;
-webkit-animation-name: example; /* Safari 4.0 - 8.0 */
-webkit-animation-duration: 4s; /* Safari 4.0 - 8.0 */
animation-name: example;
animation-duration: 4s;
animation-delay: 3s;
animation-iteration-count:infinite;
animation-direction: alternate;
}
i {
position: relative;
animation-name: chch;
animation-duration: 4s;
animation-iteration-count:infinite;
animation-direction: alternate;
}
i {
width:450px;
height:450px;
}
d {
}
@keyframes example {
0% {background-color:#ff0066; left:0px; top:0px;}
25% {background-color:#00ffcc; left:200px; top:0px;}
50% {background-color:#33cc33; left:200px; top:200px;}
75% {background-color:#ffff00; left:-200px; top:200px;}
100% {background-color:#ff0066; left:-200px; top:0px;}
}
@keyframes chch {
0% {color:#ff0066; }
25% {color:#00ffcc;}
50% {color:#33cc33;}
75% {color:#ffff00;}
100% {color:#ff0066;}
}
.navbar {
overflow: hidden;
text-shadow: 1px 1px 0px #444;
background-color: #33cccc;
position: fixed;
top: 0;
width: 100%;
}
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.navbar a:hover {
background: #29a3a3;
}
.main {
background: linear-gradient(to bottom, #00ffff 0%, #ff00ff 100%);
padding: 16px;
margin-top: 30px;
height: 15000px; /* Used in this example to enable scrolling */
}
.button {
display: inline-block;
border-radius: 4px;
background-color: #f4511e;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 28px;
padding: 20px;
width: 200px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.button span:after {
content: '\00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.button:hover span {
padding-right: 25px;
}
.button:hover span:after {
opacity: 1;
right: 0;
}
</style>
</head>
<body>
<iframe height="45" style="border:none;" src="navbar.html" class="navbar"></iframe>
<div class="main" align="center">
<script>
var today = new Date();
var hourNow = today.getHours();
var greeting;
if (hourNow > 21) {
greeting = "Good night, "
} else if (hourNow > 18) {
greeting = "Good Evening, ";
} else if (hourNow > 12) {
greeting = "Good Afternoon, ";
} else if (hourNow > 0) {
greeting = "Good Morning, ";
} else {
greeting = "Hello,";
}
document.write("<h3>" + greeting + ".</h3>");
</script>
<script>
window.intergramId = "768135299";
window.intergramCustomizations = {
titleClosed: 'Ben Benson',
titleOpen: 'Hello World',
mainColor: "#E91E63", // Can be any css supported color 'red', 'rgb(255,87,34)', etc
alwaysUseFloatingButton: false // Use the mobile floating button also on large screens
};
</script>
<script id="intergram" type="text/javascript" src="https://www.intergram.xyz/js/widget.js"></script>
<h1><u>Hello, And Welcome To <i>Ben Benson's</i> Website</u></h1>
<h2></h2>
<p></p>
<button class="button" href="about.html" onclick="window.location='about.html' " style="vertical-align:middle"><span>About Me</span></button>
</div>
<div style="position: absolute; left: 0px; top: 0px; border: solid 2px #555; width:594px; height:332px;">
<div style="overflow: hidden; margin-top: -100px; margin-left: -25px;">
</div>
</div>
</div>
</body>
</html>