-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (52 loc) · 2.6 KB
/
index.html
File metadata and controls
62 lines (52 loc) · 2.6 KB
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
<!DOCTYPE html>
<meta charset="UTF-8">
<html>
<head>
<script src="diffgit.js"></script>
<script src="main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.0.3/pako.min.js"
integrity="sha512-yJSo0YTQvvGOqL2au5eH0W4K/0FI0sTJuyHjiHkh0O31Lzlb814P0fDXtuEtzOj13lOBZ9j99BjqFx4ASz9pGA=="
crossorigin="anonymous"></script>
<script src="tio-api/pako.js"></script>
<script src="tio-api/tio.js"></script>
<script src="tio-api/util.js"></script>
<script src="tio-api/general.js"></script>
<!--
<script src="https://raw.githubusercontent.com/AviFS/tio-api/master/util.js"></script>
<script src="https://raw.githubusercontent.com/AviFS/tio-api/master/tio.js"></script>
-->
<script src="test.js"></script>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="diff-style.css">
</head>
<body onload="init();">
<!-- <h1>Diff & Run</h1> -->
<div id="input-container">
<div placeholder="df" class="line textarea" id="old" contenteditable="true" onfocus="grayout();" oninput="updateText('old_text');" spellcheck="false">ab</div>
<div id="tew" class="textarea" contenteditable="true" spellcheck="false" oninput="updateText('new_text');"></div>
<!--<textarea id="new" rows="20" cols="60">abcd</textarea>-->
</div>
<form onchange="updateDiffStyle();">
<!-- Make "line" radiobutton checked by default -->
<!-- TODO: make ids more specific -> "lineStyle" & "blockStyle"-->
<input type="radio" id="line" value="line" name="diff-style" checked="true">
<label for="line">line</label>
<input type="radio" id="block" value="block" name="diff-style">
<label for="block">block</label>
</form>
<br>
<form onchange="updateDiffKind();">
<!-- Make "byCharacter" radiobutton checked by default -->
<input type="radio" id="charDiff" value="charDiff" name="diff-kind" checked="true">
<label for="charDiff">char<label>
<input type="radio" id="lineDiff" value="lineDiff" name="diff-kind">
<label for="lineDiff">line</label>
</form>
<!--<textarea id="new" rows="20" cols="60">AadD</textarea>-->
<p id="display"></p>
<button type="button" onclick="diffIt();">Diff</button>
<button type="button" onclick="diffTioRun();">Run</button>
<button type="button" onclick="makeLink();">Link</button>
<div id="output"></div>
</body>
</html>