-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
51 lines (43 loc) · 1.24 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Giff</title>
<link rel="stylesheet" href="./lib/github.css">
<link rel="stylesheet" type="text/css" href="./lib/style.css">
<script src="./lib/jquery-1.12.0.min.js"></script>
<script src="./lib/highlight.pack.js"></script>
<script src="./dest/diff.js"></script>
<script src="./lib/render.js"></script>
</head>
<body style="text-align: center; font-family: 'Source Sans Pro',sans-serif;">
<h1>Git Diff Result by giff</h1>
<section class="btn-area clearfix">
<div class="btn-group">
<span class="btn-sw selected">
Unified
</span>
<span class="btn-sw">
Split
</span>
</div>
</section>
<section class="diff unified">
<h2 class="heading">Unified</h2>
<div id="line-by-line" style="margin: 0 auto; max-width: 900px;">
</div>
</section>
<section class="diff split">
<h2 class="heading">Split</h2>
<div id="side-by-side" style="margin: 0 auto;">
</div>
</section>
<a href="https://github.com/do7be/node-giff">https://github.com/do7be/node-giff</a>
<script>
$('.btn-group').on('click', '.btn-sw:not(.selected)', function(){
$('.btn-sw').toggleClass('selected');
$('.diff').toggle();
});
</script>
</body>
</html>