-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (77 loc) · 2.04 KB
/
index.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
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
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Katsu 勝つ</title>
<script src="./lucia.min.js"></script>
<script src="./hljs.min.js"></script>
<script type="module" src="./src/js/hllns.js"></script>
<link rel="stylesheet" href="./src/css/resets.css" />
<link rel="stylesheet" href="./src/css/styles.css" />
<link rel="stylesheet" href="./src/css/themes.css" />
</head>
<body>
<div id="app">
<nav class="nav">
<h1 class="brand">Katsu 勝つ</h1>
<div class="btn-group">
<button
class="btn"
:disabled="!code.trim() || html.length"
@click="save"
>
<img src="./src/img/save.svg" alt="" />
<span>Save</span>
</button>
<button class="btn" :disabled="!html.length" @click="edit">
<img src="./src/img/copy.svg" alt="" />
<span>Edit</span>
</button>
<button class="btn" :disabled="!html.length" @click="make">
<img src="./src/img/new.svg" alt="" />
<span>New</span>
</button>
</div>
<div class="link-group">
<a class="link" href="mailto:hey@alexis.kr" target="_blank"
>@</a
>
<span class="spacer">·</span>
<a class="link" href="https://alexis.lol" target="_blank"
>/me</a
>
<span class="spacer">·</span>
<a
class="link"
href="https://github.com/aelxxs/katsu"
target="_blank"
>/github</a
>
</div>
</nav>
<div class="wrapper">
<div class="lines" l-for="(ln, i) in code.split('\n')">
<span
class="line"
@click.self="select(event, this.i + 1)"
:id="`L${this.i + 1}`"
l-text="this.i + 1"
></span>
</div>
<pre l-show="html.length"><code l-html="html"></code></pre>
<div l-show="!html.length" class="editor">
<div l-text="code"></div>
<textarea
autofocus
autocomplete="off"
autocapitalize="off"
autocorrect="off"
spellcheck="false"
l-model="code"
></textarea>
</div>
</div>
</div>
<script type="module" src="./src/js/main.js"></script>
</body>
</html>