-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathindex.html
55 lines (55 loc) · 1.2 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
<html>
<head>
<style>
body {
background-color:black
}
#back {
position: fixed;
bottom: 0px;
margin: 10px;
}
#sub {
position: fixed;
left: 50%;
transform: translateX(-50%);
bottom: 0px;
margin-bottom: 10px;
}
#next {
position: fixed;
bottom: 0px;
right: 0px;
margin: 10px;
}
#img {
position:fixed;
display: block;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
max-width:640px;
max-height:480px;
width: auto;
height: auto;
}
#loading {
position:fixed;
display: block;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
width: auto;
height: auto;
visibility: hidden
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.4.0/Rx.js"></script>
</head>
<body>
<img id="img">
<img id="loading" src="https://jhusain.github.io/reddit-image-viewer/loading.svg">
<button id="back">Back</button><select id="sub"><option>pics</option><option>cute</option></select><button id="next">Next</button>
<script src="index.js"></script>
</body>
</html>