-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (58 loc) · 1.42 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>html2ansi online</title>
<style>
html, body{
height: 100%;
margin: 0;
padding: 0;
}
body{
display: flex;
flex-direction: column;
}
#header{
box-sizing: border-box;
padding: 0.5em 1em 0 1em;
display: flex;
flex-direction: row-reverse;
}
#app{
flex: 1;
display: flex;
flex-direction: row;
align-items: stretch;
}
#input, #output{
flex: 1;
padding: 1em;
}
#input-text, #output-text{
width: 100%;
height: 100%;
}
#copy-button{
position: absolute;
right: 2em;
bottom: 2em;
}
</style>
</head>
<body>
<div id="header">
<a id="github-link" target="_blank" href="https://github.com/cyrilluce/html-to-ansi">Github</a>
</div>
<div id="app">
<div id="input">
<textarea id="input-text" placeholder="Enter or Paste HTML here..."></textarea>
</div>
<div id="output">
<textarea id="output-text" readonly></textarea>
<button id="copy-button">Copy with ANSI</button>
</div>
</div>
<script src="./site/index.ts" type="module"></script>
</body>
</html>