-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
236 lines (235 loc) · 9.24 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<style media="screen">
body{
background: #ff4f3e;
height: 400px;
width: 800px;
}
.box{
width: 900px;
height: 380px;
background-color: white;
margin: 150px 250px 0 250px;
border-radius: 20px;
float: left;
}
button{
display: block;
position: fixed;
float: left;
margin-left: 720px;
margin-top: 290px;
background-color:#ff4f3e;
height: 60px;
width: 150px;
display: block;
position: fixed;
border-radius: 10px;
font-family: Cabin;
font-size: 20px;
color: white;
}
label{
font-size: 35px;
display: block;
font-family: Cabin;
color: #ff4f3e;
float: left;
text-align: center;
margin-top: 100px;
margin-right: 100px;
margin-left: 70px;
}
#by{
font-size: 20px;
display: block;
position: fixed;
font-family: Cabin;
color: #ff4f3e;
float: right;
text-align: right;
margin-top: 250px;
margin-left: 370px;
}
ul{
position: fixed;
float: left;
}
li{
list-style-type: none;
float: left;
}
img{
float: left;
height: 50px;
width: 50px;
display: block;
margin-top: 270px;
margin-left: 30px;
}
.insta,.face,.twit{
margin-left: 30px;
}
</style>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Cabin:700&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Quotes</title>
</head>
<body class="b">
<script type="text/javascript">
function random()
{
var no=Math.floor(Math.random() * 10);
if(no==1)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #1bb5c0;text-align: center;");
l.innerHTML="“ Don’t let yesterday take up too much of today ”";
document.body.style.backgroundColor = "#1bb5c0";
var a=document.getElementById("by");
a.setAttribute("style", "color: #1bb5c0");
a.innerHTML=" ― Will Rogers ";
document.body.style.backgroundColor = " #1bb5c0";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #1bb5c0;");
}
if(no==2)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #28c84d;text-align: center;");
l.innerHTML="“ The pessimist sees difficulty in every opportunity. The optimist sees opportunity in every difficulty ”"
document.body.style.backgroundColor = "#28c84d";
var a=document.getElementById("by");
a.setAttribute("style", "color: #28c84d");
a.innerHTML=" ― Winston Churchill ";
document.body.style.backgroundColor = " #28c84d";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #28c84d;");
}
if(no==3)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #000573;text-align: center;");
l.innerHTML="“ You learn more from failure than from success. Don’t let it stop you. Failure builds character ”";
document.body.style.backgroundColor = "#000573";
var a=document.getElementById("by");
a.setAttribute("style", "color: #000573");
a.innerHTML=" ― Unknown ";
document.body.style.backgroundColor = " #000573";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #000573;");
}
if(no==4)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #380045;text-align: center;");
l.innerHTML="“ If you are working on something that you really care about, you don’t have to be pushed. The vision pulls you ”";
document.body.style.backgroundColor = "#380045";
var a=document.getElementById("by");
a.setAttribute("style", "color: #380045");
a.innerHTML=" ― Steve Jobs ";
document.body.style.backgroundColor = " #380045";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #380045;");
}
if(no==5)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #8000ff ;text-align: center;");
l.innerHTML="“ Two things are infinite: the universe and human stupidity; and I'm not sure about the universe ”";
document.body.style.backgroundColor = " #8000ff ";
var a=document.getElementById("by");
a.setAttribute("style", "color: #8000ff");
a.innerHTML=" ― Albert Einstein ";
document.body.style.backgroundColor = " #8000ff ";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #8000ff ;");
}
if(no==6)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #74cdc3 ;text-align: center;");
l.innerHTML="“ I am so clever that sometimes I don't understand a single word of what I am saying ”";
document.body.style.backgroundColor = " #74cdc3 ";
var a=document.getElementById("by");
a.setAttribute("style", "color: #74cdc3");
a.innerHTML=" ― Oscar Wilde ";
document.body.style.backgroundColor = " #74cdc3";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #74cdc3;");
}
if(no==7)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #a200c0 ;text-align: center;");
l.innerHTML="“ The whole secret of a successful life is to find out what is one’s destiny to do, and then do it ”";
document.body.style.backgroundColor = " #a200c0 ";
var a=document.getElementById("by");
a.setAttribute("style", "color: #a200c0");
a.innerHTML=" ― Henry Ford ";
document.body.style.backgroundColor = " #a200c0";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #a200c0;");
}
if(no==8)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #000000 ;text-align: center;");
l.innerHTML="“ When we do the best we can, we never know what miracle is wrought in our life or the life of another. ”";
document.body.style.backgroundColor = " #000000 ";
var a=document.getElementById("by");
a.setAttribute("style", "color: #000000");
a.innerHTML=" ― Helen Keller ";
document.body.style.backgroundColor = " #000000";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #000000;");
}
if(no==9)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #791111 ;text-align: center;");
l.innerHTML="“ Keep smiling, because life is a beautiful thing and there’s so much to smile about ”";
document.body.style.backgroundColor = " #791111 ";
var a=document.getElementById("by");
a.setAttribute("style", "color: #791111");
a.innerHTML=" ― Marilyn Monroe ";
document.body.style.backgroundColor = " #791111";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #791111;");
}
if(no==10)
{
var l=document.getElementById("label");
l.setAttribute("style", "color: #00ff76 ;text-align: center;");
l.innerHTML="“ Imperfection is beauty, madness is genius and it's better to be absolutely ridiculous than absolutely boring ”";
document.body.style.backgroundColor = " #00ff76 ";
var a=document.getElementById("by");
a.setAttribute("style", "color: #00ff76");
a.innerHTML=" ― Marilyn Monroe ";
document.body.style.backgroundColor = " #00ff76";
var b=document.getElementById("change");
b.setAttribute("style","background-color: #00ff76;");
}
}
</script>
<div class="box" id="box">
<div class="quote">
<label id="label">" Change your thoughts and you change your world "</label>
<label id="by">- Norman Vincent Paele</label>
<ul>
<li> <a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwie0qnl56ftAhUs63MBHT9IDzAQFjAAegQIARAD&url=https%3A%2F%2Fwww.instagram.com%2F&usg=AOvVaw1cBeRoOpMhZ3-x5M1sA3Fm" target="_blank"><img class="insta" src="https://img.icons8.com/color/48/000000/instagram-new.png"/></a>
</li>
<li><a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwj7uYfY56ftAhWFgdgFHUfXBboQFjAAegQIARAD&url=https%3A%2F%2Fwww.facebook.com%2F&usg=AOvVaw2q27ov2cpCynr72DmuSqEz" target="_blank"><img class="face" src="https://img.icons8.com/color/48/000000/facebook-new.png"/></a>
</li>
<li> <a href="https://twitter.com/intent/tweet?hashtags=quotes&related=freecodecamp&text=%22The%20most%20common%20way%20people%20give%20up%20their%20power%20is%20by%20thinking%20they%20don%E2%80%99t%20have%20any.%22%20Alice%20Walker" target="_blank"><img class="twit" src="https://img.icons8.com/color/48/000000/twitter-squared.png"/></a>
</li>
</ul>
<button type="button" name="button" id="change" onclick="random()" >New quote</button>
</div>
</div>
</body>
</html>