mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-07-01 08:16:01 +00:00
publish v1
This commit is contained in:
commit
761e6d810a
21 changed files with 526 additions and 0 deletions
18
templates/editor/editor.html
Normal file
18
templates/editor/editor.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Code Editor</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='editor.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="code" spellcheck="false" placeholder="<!DOCTYPE html>"></textarea>
|
||||
<iframe id="preview" width="100%" height="100%"></iframe>
|
||||
<div class="switch-container">
|
||||
<label for="previewSwitch">Preview</label>
|
||||
<input type="checkbox" id="previewSwitch">
|
||||
</div>
|
||||
<script src="{{ url_for('static', filename='editor.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue