-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (52 loc) · 1.75 KB
/
index.html
File metadata and controls
59 lines (52 loc) · 1.75 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
<!DOCTYPE html>
<html>
<head>
<title>Text Diff</title>
<link rel="stylesheet" href="/css/style.css">
<script src='/lib/webviewer.min.js'></script>
</head>
<body>
<header>
<div class="title sample">Text diff sample</div>
</header>
<aside>
<h1>Controls</h1>
<h2>Pass a urls to document</h2>
<form id="url-form">
First file: <input id="url" type="text" style="width: 100%" />
Second file: <input id="url2" type="text" style="width: 100%" />
<input type="submit" value="Process">
</form>
<h2>Or choose your own files</h2>
<form id="file-picker-form">
First file: <br /><input id="file-picker" type="file"
accept=".pdf,.jpg,.jpeg,.png,.docx,.xlsx,.pptx,.md,.xod" />
<br />
Second file: <br /><input id="file-picker2" type="file"
accept=".pdf,.jpg,.jpeg,.png,.docx,.xlsx,.pptx,.md,.xod" />
<br />
<input type="submit" value="Process">
</form>
</aside>
<div id="viewer">
<div class="container">
<div class="item">
<h3>Text from Document 1</h3>
<div id="text1"></div>
</div>
<div class="item">
<h3>Text from Document 2</h3>
<div id="text2"></div>
</div>
</div>
<div class="results">
<h3>Comparison Results</h3>
<div id="textdiff"></div>
</div>
</div>
<script src='https://code.jquery.com/jquery-3.3.1.slim.min.js'></script>
<script src='/lib/core/CoreControls.js'></script>
<script src="/js/textdiff.js"></script>
<script src="/js/diff_match_patch.js"></script>
</body>
</html>