-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.html
More file actions
76 lines (62 loc) · 2.46 KB
/
edit.html
File metadata and controls
76 lines (62 loc) · 2.46 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
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<head>
<title>Admin Panel</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Oswald&family=Roboto:wght@400;700&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="/style.css">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="https://cdn.tiny.cloud/1/m0nda9niinb7ioc5ghl0ywb2z99uma0r8umbjafpd9xdyvo0/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
</head>
<style>
figure.align-left {
float: left;
}
figure.align-right {
float: right;
}
figure.image figcaption {
margin: 0px;
color: rgba(182, 182, 182, 0.77);
text-align: center;
}
.tox-tinymce{
height: 100vh !important;
}
</style>
<textarea style="height: 100%">
Welcome to TinyMCE!
</textarea>
<body>
<script src="/admin/auth.js"></script>
<script src="https://momentjs.com/downloads/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.1/showdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.min.js" type="text/javascript" charset="utf-8">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/theme-twilight.min.js" type="text/javascript"
charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/mode-markdown.min.js" type="text/javascript"
charset="utf-8"></script>
<script type="text/javascript">
var script = document.createElement('script');
var version = new Date().getTime();
script.src = "/admin/blog/edit.js?v="+version;
document.body.appendChild(script)
</script>
<script>
const POST_ID = window.location.toString().split('id=')[1];
if (POST_ID) document.getElementById('delete').href += POST_ID;
window.addEventListener('auth', (evt) => {
if (!auth) {
window.location.href = "/admin/login.html?redirect=" + encodeURI(window.location);
}
});
// runAuth();
</script>
</body>
</html>