-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (82 loc) · 2.27 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body{
padding: 0;
margin: 0;
}
main > section {
padding: 20px;
}
main > section > div{
max-width: 820px;
width: 100%;
margin: 0 auto;
}
main > section > span{
max-width: 820px;
width: 100%;
margin: 0 auto 20px;
display: block;
font-family: Avenir, sans-serif;
}
</style>
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/github.min.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
<link rel="stylesheet" href="src/PyroGist.css">
<script src="src/PyroGist.js"></script>
</head>
<body>
<main>
<section>
<span>"normal" theme</span>
<div id="preview"></div>
</section>
<section style="background: black; color: white">
<span>"dark" theme</span>
<div id="preview2"></div>
</section>
<section style="background: teal; color: white">
<span>"match" theme</span>
<div id="preview3"></div>
</section>
<section>
<span>"normal" theme</span>
<div id="preview4">
function call(name){
console.log("Hello",name);
}
</div>
</section>
</main>
<script>
PyroGist("#preview",{
url: "https://github.com/daryl-cecile/MiniTest-1/blob/master/test.js",
theme: "normal",
autoFit: true,
highlight: true
});
PyroGist("#preview2",{
url: "https://github.com/daryl-cecile/MiniTest-1/blob/master/test.js",
theme: "dark",
autoFit: true,
highlight: true
});
PyroGist("#preview3",{
url: "https://github.com/daryl-cecile/Slosh/blob/master/library/defaultStyle.css",
theme: "match",
autoFit: true,
highlight: false
});
PyroGist("#preview4",{
name: "Woop",
theme: "normal",
autoFit: true,
highlight: true
});
</script>
</body>
</html>