-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (112 loc) · 3.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playball&display=swap" rel="stylesheet">
<title>Document</title>
<style>
body {
background-color: black;
}
* {
margin: 0px 0px;
padding: 0px 0px;
box-sizing: border-box;
}
#heading {
font-family: 'Playball', cursive, Arial, Helvetica, sans-serif;
font-size: 120px;
width: 553px;
margin: auto;
color: aqua;
}
#box{
width :55%;
height : 480px;
margin: auto;
border: 4px solid rgb(255, 37, 226);
border-radius: 20px;
overflow: hidden;
}
#btn{
margin: auto;
width: 100px;
}
#nextBtn{
margin-top: 9px;
height: 45px;
width: 100px;
background-color: aquamarine;
color: #000;
font-size: 35px;
font-weight: bolder;
border-radius: 15px;
border: 3px solid red;
}
#nextBtn:hover{
cursor:pointer;
}
img{
color: wheat;
width: 100%;
height: 100%;
}
@media only screen and (max-width:666px) {
#heading {
font-size: 70px;
width: 322px;
}
#box{
width :90%;
}
}
@media only screen and (max-width:1000px) {
#box{
width :70%;
}
@media only screen and (max-width:780px) {
#box{
width: 85%;
}
}
@media only screen and (max-width:500px) {
#box{
width: 95%;
}
}
@media only screen and (max-width:320px) {
#box{
width: 97%;
height : 400px;
}
#heading {
font-size: 60px;
width: 278px;
}
}
</style>
<script>
function nextMeme(){
let img= document.getElementById("memeImg");
fetch("https://meme-api.com/gimme").then((response)=>{
return response.json();
}).then((data) => {
let temp = data.preview;
temp = temp[temp.length-1]
img.src=temp;
})
}
</script>
</head>
<body>
<div id="heading">Elite Memes</div>
<div id="box">
<img src="01_OPENER-Final.jpg" alt="Click Next To See Memes" id="memeImg">
</div>
<div id="btn"><button id="nextBtn" onclick="nextMeme()">Next</button> </div>
</body>
</html>