-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (46 loc) · 1.73 KB
/
index.html
File metadata and controls
50 lines (46 loc) · 1.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text Diff Checker</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<h1>Text Diff Checker</h1>
<p>Compare two blocks of text and highlight differences</p>
</header>
<div class="controls">
<label for="mode">Comparison Mode:</label>
<select id="mode">
<option value="line">Line-by-Line</option>
<option value="word">Word-by-Word</option>
</select>
<button id="compareBtn">Compare</button>
<button id="clearBtn">Clear</button>
</div>
<div class="input-section">
<div class="text-input">
<h3>Original Text</h3>
<textarea id="text1" placeholder="Enter original text here..."></textarea>
</div>
<div class="text-input">
<h3>Modified Text</h3>
<textarea id="text2" placeholder="Enter modified text here..."></textarea>
</div>
</div>
<div class="output-section">
<h3>Comparison Result</h3>
<div class="legend">
<span class="legend-item"><span class="legend-color removed"></span> Removed</span>
<span class="legend-item"><span class="legend-color added"></span> Added</span>
<span class="legend-item"><span class="legend-color unchanged"></span> Unchanged</span>
</div>
<div id="output" class="output"></div>
</div>
</div>
<script src="diff.js"></script>
</body>
</html>