-
Notifications
You must be signed in to change notification settings - Fork 9
/
measure.html
60 lines (59 loc) · 2.54 KB
/
measure.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
<?xml version="1.0" encoding="UTF-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround"
data-template-with="templates/page.html" data-template-at="content">
<div class="row">
<div class="page-header">
<h1>Compare</h1>
<p>To compare passages from any two Wilde news reports from the collection, enter them
into the two fields below and select the Measure button. The text-comparison
tool will produce a text similarity score and highlight the differences between
the two passages. The differences in the first passage are highlighted in pink, those in the second passage in purple.</p>
</div>
</div>
<form>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="c1">First passage</label>
<textarea class="form-control" rows="6" cols="40" name="c1" id="c1"/>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="c2">Second passage</label>
<textarea class="form-control" rows="6" cols="40" name="c2" id="c2"/>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2">
<div class="form-group">
<input type="submit" name="measure" value="Measure" class="btn btn-primary"/>
</div>
</div>
<div class="col-md-10">
<div class="checkbox">
<label>
<input type="checkbox" name="clean" value="yes"/> Ignore Punctuation & Accents </label>
</div>
</div>
</div>
</form>
<div class="row">
<div class="col-md-12">
<div id="measure-results">
<dl class='dl-horizontal'>
<dt>Word counts</dt>
<dd id="wordcount">First passage: 0, Second passage: 0</dd>
<dt>Similarity</dt>
<dd id="similarity"></dd>
<dt>Difference</dt>
<dd id='difference'></dd>
</dl>
</div>
</div>
</div>
<script type="text/javascript" src="resources/lib/google-diff-match-patch-js/diff_match_patch.js"/>
<script type="text/javascript" src="resources/lib/levdist/lib/index.js"/>
<script type="text/javascript" src="resources/js/page/measure.js"/>
</div>