Skip to content

Commit ddd0ad8

Browse files
committed
update
1 parent 537389b commit ddd0ad8

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
npm-debug.log
22
node_modules
3-
dist
3+
44
.DS_Store

dist/code.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/code.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,21 @@
77
</head>
88

99
<body>
10-
<xmp code></xmp>
10+
<xmp code>
11+
12+
const a = 10
13+
14+
const b = new Date()
15+
16+
console.log(typeof window)
17+
18+
class A {
19+
constructor() {
20+
21+
}
22+
}
23+
24+
</xmp>
1125
<script src="dist/code.min.js"></script>
1226
<script type="text/javascript">
1327
let config = {
@@ -19,7 +33,7 @@
1933
"https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.js",
2034
};
2135

22-
const search = location.search.substr(1) || 'demo';
36+
const search = location.search.substr(1) || '';
2337

2438
function format(data) {
2539
document

0 commit comments

Comments
 (0)