-
Notifications
You must be signed in to change notification settings - Fork 15
/
org-agenda.html.template
77 lines (72 loc) · 1.63 KB
/
org-agenda.html.template
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Index</title>
<style>
.agenda {
height: 100vh;
overflow: hidden;
position: relative;
}
.agenda img {
position: absolute;
left: -20px;
top: -15px;
transform: scale(0.57);
transform-origin: 0 0;
}
.right,
.bottom {
position: absolute;
}
.right {
width: 34px;
top: 0;
bottom: 0;
right: 0;
background: linear-gradient(
90deg,
rgba(255, 251, 234, 0) 0%,
rgb(250 250 250) 73%
);
}
.bottom {
bottom: 0;
right: 0;
left: 0;
height: 70px;
background: linear-gradient(
180deg,
rgba(255, 251, 234, 0) 0%,
rgb(250 250 250) 35%
);
}
body {
margin: 0;
background-color: #fafafa;
overflow: hidden;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<script>
function onLoad() {
document.querySelector(".bottom").style.bottom =
window.innerHeight -
document.querySelector("img").height * 0.55 +
15 +
"px";
}
</script>
</head>
<body>
<div class="agenda">
<img onload="onLoad()" src="{{ FILENAME }}" />
<div class="line"></div>
</div>
<div class="right"></div>
<div class="bottom"></div>
</body>
</html>