Skip to content

Commit 8cda078

Browse files
fix: theme switcher in IE11 (#1502)
1 parent a0f61b2 commit 8cda078

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

docs/themes.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,27 @@
22

33
There is a handful of themes available, both official and community-made. Copy [Vue](//vuejs.org) and [buble](//buble.surge.sh) website custom theme and [@liril-net](https://github.com/liril-net) contribution to the theme of the black style.
44

5+
<!-- prettier-ignore-start -->
56
```html
6-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css">
7-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/buble.css">
8-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/dark.css">
9-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/pure.css">
7+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css" />
8+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/buble.css" />
9+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/dark.css" />
10+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/pure.css" />
1011
```
12+
<!-- prettier-ignore-end -->
1113

1214
!> Compressed files are available in `/lib/themes/`.
1315

16+
<!-- prettier-ignore-start -->
1417
```html
1518
<!-- compressed -->
1619

17-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
18-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css">
19-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css">
20-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css">
20+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" />
21+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" />
22+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css" />
23+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" />
2124
```
25+
<!-- prettier-ignore-end -->
2226

2327
If you have any ideas or would like to develop a new theme, you are welcome to submit a [pull request](https://github.com/docsifyjs/docsify/pulls).
2428

@@ -47,10 +51,10 @@ If you have any ideas or would like to develop a new theme, you are welcome to s
4751
var themes = Docsify.dom.findAll('[rel="stylesheet"]');
4852

4953
preview.onclick = function (e) {
50-
var title = e.target.getAttribute('data-theme')
54+
var title = e.target.getAttribute('data-theme');
5155

5256
themes.forEach(function (theme) {
53-
theme.disabled = theme.title !== title
57+
theme.disabled = theme.title !== title;
5458
});
5559
};
5660
</script>

0 commit comments

Comments
 (0)