Skip to content

Commit c3fec7d

Browse files
committed
demo css <link> is much better than current
1 parent 400b047 commit c3fec7d

1 file changed

Lines changed: 32 additions & 29 deletions

File tree

template.html

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<title><!--diff2html-title--></title>
63

7-
<!--
4+
<head>
5+
<meta charset="utf-8" />
6+
<title><!--diff2html-title--></title>
7+
8+
<!--
89
Diff to HTML (template.html)
910
Author: rtfpessoa
1011
-->
1112

12-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/github.min.css" />
13-
14-
<!--diff2html-css-->
15-
16-
<!--diff2html-js-ui-->
17-
18-
<script>
19-
document.addEventListener('DOMContentLoaded', () => {
20-
const targetElement = document.getElementById('diff');
21-
const diff2htmlUi = new Diff2HtmlUI(targetElement);
22-
//diff2html-fileListToggle
23-
//diff2html-fileContentToggle
24-
//diff2html-synchronisedScroll
25-
//diff2html-highlightCode
26-
});
27-
</script>
28-
</head>
29-
<body style="text-align: center; font-family: 'Source Sans Pro', sans-serif">
30-
<h1><!--diff2html-header--></h1>
31-
32-
<div id="diff">
33-
<!--diff2html-diff-->
34-
</div>
35-
</body>
36-
</html>
13+
<link rel="stylesheet" href="https://diff2html.xyz/demo.css?3b34d507487da05dfc0c" />
14+
15+
<!--diff2html-css-->
16+
17+
<!--diff2html-js-ui-->
18+
19+
<script>
20+
document.addEventListener('DOMContentLoaded', () => {
21+
const targetElement = document.getElementById('diff');
22+
const diff2htmlUi = new Diff2HtmlUI(targetElement);
23+
//diff2html-fileListToggle
24+
//diff2html-fileContentToggle
25+
//diff2html-synchronisedScroll
26+
//diff2html-highlightCode
27+
});
28+
</script>
29+
</head>
30+
31+
<body style="text-align: center; font-family: 'Source Sans Pro', sans-serif">
32+
<h1><!--diff2html-header--></h1>
33+
34+
<div id="diff">
35+
<!--diff2html-diff-->
36+
</div>
37+
</body>
38+
39+
</html>

0 commit comments

Comments
 (0)