forked from khoinguyen/gist-embed
-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.html
executable file
·43 lines (38 loc) · 1.35 KB
/
test.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
<html>
<head>
<script src='jquery.min.js' type='text/javascript'></script>
<script src='gist-embed.js' type='text/javascript'/></script>
</head>
<body style="font-family: arial;">
<div>
Click on links below to navigate to example:
<ul>
<li><a href="#g1">Single file from a gist</a></li>
<li><a href="#g2">Gist with custom lines from a file</a></li>
<li><a href="#g3">Hide gist footer</a></li>
<li><a href="#g4">Hide gist line numbers</a></li>
<li><a href="#g5">Complete gist</a></li>
</ul>
</div>
<div id='g1'>
<h3 style="color: green;">Single file from a gist</h3>
<code id="gist-4672365" data-file="2.java"></code>
</div>
<div id='g2'>
<h3 style="color: green;">Gist with custom lines from a file</h3>
<code id="gist-4672365" data-file="2.java" data-line="1,3-4,8,10"></code>
</div>
<div id='g3'>
<h3 style="color: green;">Hide gist footer</h3>
<code id="gist-4672365" data-file="2.java" data-showFooter="false"></code>
</div>
<div id='g4'>
<h3 style="color: green;">Hide gist line numbers</h3>
<code id="gist-4672365" data-file="2.java" data-showLineNumbers="false"></code>
</div>
<div id='g5'>
<h3 style="color: green;">Complete gist</h3>
<code id="gist-4672365"></code>
</div>
</body>
</html>