From 8cda07891afeb1ea6e198d2a600f205357ab4b89 Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Tue, 9 Feb 2021 23:27:20 -0600 Subject: [PATCH] fix: theme switcher in IE11 (#1502) --- docs/themes.md | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/docs/themes.md b/docs/themes.md index 646819463..07009f762 100644 --- a/docs/themes.md +++ b/docs/themes.md @@ -2,23 +2,27 @@ 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. + ```html - - - - + + + + ``` + !> Compressed files are available in `/lib/themes/`. + ```html - - - - + + + + ``` + 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). @@ -47,10 +51,10 @@ If you have any ideas or would like to develop a new theme, you are welcome to s var themes = Docsify.dom.findAll('[rel="stylesheet"]'); preview.onclick = function (e) { - var title = e.target.getAttribute('data-theme') + var title = e.target.getAttribute('data-theme'); themes.forEach(function (theme) { - theme.disabled = theme.title !== title + theme.disabled = theme.title !== title; }); };