-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy patheditor.html
46 lines (35 loc) · 1.06 KB
/
editor.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Editor</title>
<link rel="shortcut icon" href="favicon.ico">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta http-equiv="Pragma" content="no-cache">
</head>
<body style="background-color:#000; margin:0; padding:0; overflow:hidden;">
<script async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script>
<script type="importmap">{ "imports": {
"uil": "./src/libs/uil.module.js"
}}</script>
<script type="module">
import { Editor } from './src/3TH/Editor.js';
window.Main = null
const editor = new Editor( true )
window.addEventListener( "message", Message, false )
function Message( e ){
let type = e.data.type
if( type === 'close' ) closeMe()
else editor.message( e )
}
function closeMe() {
try {
window.close();
} catch (e) { console.log(e) }
try {
self.close();
} catch (e) { console.log(e) }
}
</script>
</body>
</html>