-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmpl_action.php
More file actions
69 lines (65 loc) · 1.72 KB
/
tmpl_action.php
File metadata and controls
69 lines (65 loc) · 1.72 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
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
<?php declare(strict_types=1);
include_once(__DIR__ . '/vendor/autoload.php');
use \Oeuvres\Kit\{Http, Route};
/**
* Minimum styling for an actoin in iframe
*/
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
// supposed required to output logging line by line
header( 'Content-type: text/html; charset=utf-8' );
// used without template
header('Content-Encoding: none');
// header('Content-Type: text/plain; charset=UTF-8');
ob_implicit_flush();
while (ob_get_level()) ob_end_clean();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="preconnect" href="https://fonts.gstatic.com"/>
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="<?= Route::home_href() ?>theme/obtic_teinte.css" />
<style>
#log {
padding: 50px;
position: relative;
}
#footline {
position: absolute;
left: 0;
right: 0;
bottom: 0;
}
#footline img {
display: block;
margin-left: auto;
margin-right: auto;
width: 200px;
}
</style>
<?= str_repeat(" ", 1024) ?>
</head>
<body class="action">
<div id="log">
<footer id="footline">
<img width="200" src="<?= Route::home_href() ?>theme/line.svg"/>
</footer>
<script>
const gobot = setInterval(function() {
location.hash = "#footline";
}, 500);
window.addEventListener("focus",
function() {clearInterval(gobot);}
);
</script>
<?= Route::main() ?>
</div>
<script>
clearInterval(gobot);
document.getElementById("footline").style.display = "none";
</script>
</body>
</html>