-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathedit.html
41 lines (41 loc) · 2.29 KB
/
edit.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
<!doctype html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="img/icon-6.png" sizes="6x6">
<link rel="icon" type="image/png" href="img/icon-12.png" sizes="12x12">
<link rel="icon" type="image/png" href="img/icon-18.png" sizes="18x18">
<link rel="icon" type="image/png" href="img/icon-24.png" sizes="24x24">
<link rel="icon" type="image/png" href="img/icon-48.png" sizes="48x48">
<link rel="icon" type="image/png" href="img/icon-60.png" sizes="60x60">
<link rel="icon" type="image/png" href="img/icon-120.png" sizes="120x120">
<link rel="icon" type="image/png" href="img/icon-180.png" sizes="180x180">
<link rel="icon" type="image/png" href="img/icon-240.png" sizes="240x240">
<link rel="icon" type="image/png" href="img/icon-480.png" sizes="480x480">
<link rel="icon" type="image/png" href="img/icon-516.png" sizes="516x516">
<link href="style.css" rel="stylesheet" type="text/css">
<script type="module" src="controller.js"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.5.1/marked.min.js"></script>
<script defer src="edit.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
messageStyle: "none",
tex2jax: {preview: "none"}
});
</script>
<script async src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_CHTML-full'></script>
<title>Aleth</title>
<form id="main" class="edit" action="edit-card" method="post">
<input name="id" id="id" type="text" style="display:none;">
<input name="deps" id="deps" type="text" style="display:none;">
<button id="edit-question" type="button" class="current">Edit</button><button id="preview-question" type="button">Preview</button>
<textarea name="question" id="question" placeholder="question" required></textarea>
<div id="question-preview" style="display:none;"></div>
<button id="edit-answer" type="button" class="current">Edit</button><button id="preview-answer" type="button">Preview</button>
<textarea name="answer" id="answer" placeholder="answer" required></textarea>
<div id="answer-preview" style="display:none;"></div>
<div class="bar">
<button id="done" type="submit">Save</button>
<button id="cancel" type="button" onclick="location.href='.'">Cancel</button>
</div>
</form>