Skip to content

Commit f0cff44

Browse files
committed
Fixed demo
1 parent dac4da5 commit f0cff44

File tree

1 file changed

+23
-28
lines changed

1 file changed

+23
-28
lines changed

demo/index.html

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,37 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title></title>
4+
<title>Demo page</title>
55
<link rel="stylesheet" href="default.min.css">
66
<script src="highlight.min.js"></script>
77
<script src="../src/highlightjs-line-numbers.js"></script>
8-
<script>
9-
10-
hljs.initHighlightingOnLoad();
11-
hljs.initLineNumbersOnLoad();
12-
13-
</script>
8+
<script>
9+
hljs.initHighlightingOnLoad();
10+
hljs.initLineNumbersOnLoad();
11+
</script>
12+
<style>
13+
.hljs-line-numbers {
14+
text-align: right;
15+
border-right: 1px solid #ccc;
16+
color: #999;
17+
-webkit-touch-callout: none;
18+
-webkit-user-select: none;
19+
-khtml-user-select: none;
20+
-moz-user-select: none;
21+
-ms-user-select: none;
22+
user-select: none;
23+
}
24+
25+
#wapper {
26+
max-width: 700px;
27+
margin: 0 auto;
28+
}
29+
</style>
1430
</head>
1531

16-
<style type="text/css">
17-
.hljs-line-numbers {
18-
text-align: right;
19-
border-right: 1px solid #ccc;
20-
color: #999;
21-
-webkit-touch-callout: none;
22-
-webkit-user-select: none;
23-
-khtml-user-select: none;
24-
-moz-user-select: none;
25-
-ms-user-select: none;
26-
user-select: none;
27-
}
28-
29-
#wapper {
30-
max-width: 700px;
31-
margin: 0 auto;
32-
}
3332

34-
</style>
3533
<body>
3634
<div id="wapper">
37-
38-
39-
4035

4136

4237

0 commit comments

Comments
 (0)