-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayout.php
120 lines (98 loc) · 3.36 KB
/
layout.php
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
<?php
if (preg_match('/favicon\.ico/', $_SERVER['REQUEST_URI'])) {
header("Location: https://i.imgur.com/eCDPzLa.png");
exit(0);
}
if (preg_match('/emoji\.woff/', $_SERVER['REQUEST_URI'])) {
header('Content-Type: font/woff2');
readfile(__DIR__ . '/emoji.woff');
exit(0);
}
ob_start();
register_shutdown_function(function () {
global $title;
$body = ob_get_contents();
ob_end_clean();
?>
<!doctype html>
<html lang="en">
<head>
<title><?= $title ?>: Kanban</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<style>
label.task a.ln {
visibility: hidden
}
label.task:hover a.ln {
visibility: visible
}
.heading {
text-transform: capitalize;
}
.panel {
margin-top: 15px;
height: calc(100vh - 220px);
overflow: auto;
}
.panel.doing.one-item-only a {
color: red;
font-weight: bold;
font-size: 24px;
animation: blinker 5s linear infinite;
}
@keyframes blinker {
50% {
opacity: 1;
}
75% {
opacity: 0;
}
}
.task .actions {
text-wrap: none;
white-space: nowrap;
}
.task .actions a {
display: none;
margin: 0 4px;
font-size: 16px;
text-decoration: none;
}
.task .list-item:hover {
background: #ffffcd;
}
.task .list-item:hover .actions a {
display: inline-block;
}
.bg-selected {
background: #ecffec;
}
</style>
</head>
<body style="margin: 0; padding: 0;">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js" crossorigin="anonymous"></script>
<script src="http://SortableJS.github.io/Sortable/Sortable.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Vue.Draggable/2.24.0/vuedraggable.umd.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.2/timeago.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script>
<?= $body ?>
<style>
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');
@font-face {
font-family: "EmojiSymbols";
src: url(/emoji.woff) format("woff");
text-decoration: none;
font-style: normal
}
body, html, input {
font-family: 'Raleway', sans-serif, 'EmojiSymbols';
}
</style>
</body>
</html>
<?php
});