-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (39 loc) · 1.35 KB
/
index.html
File metadata and controls
43 lines (39 loc) · 1.35 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MemePI</title>
<link rel="stylesheet" type="text/css" href="shoelace.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<style type="text/css">ul {list-style-type: none}li{padding-bottom:1rem;}</style>
<div class="row">
<div class="col-10 offset-1">
<h1>MemePI</h1>
<img id="meme" width="150px" height="150px">
<br><hr>
<ul>
<li><a class="button active" href="get.html">View an API <i class="fa fa-camera-retro"></i></a></li>
<li><a class="button active" href="launch.html">Launch an API <i class="fa fa-rocket"></i></a></li>
<li><a class="button active" href="post.html">Make a POST request <i class="fa fa-envelope"></i></a></li>
</ul>
</div>
</div>
<script type="text/javascript">
// la Quantity del memes
qMemes = 8
memeNum = Math.floor(Math.random() * qMemes)
document.getElementById("meme").src = `memes/meme${(()=>{return memeNum > 0 ? memeNum : 1})()}.svg`
</script>
<div class="row">
<div class="col-10 offset-1">
<hr>
<ul>
<li><a href="http://obrien.tech" target="_blank">Nick O'Brien</a> (developer)</li>
<li><a href="https://github.com/obrien66/memepi" target="_blank">Github repository</a></li>
</ul>
</div>
</div>
</body>
</html>