We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ab939 commit 8e8ac3aCopy full SHA for 8e8ac3a
main.js
@@ -3,7 +3,7 @@ const isEn = () => location.hash.includes('README_EN');
3
const isRoot = () => ['', '#/', '#/README', '#/README_EN'].includes(location.hash);
4
5
const getSolutionPrefix = url => {
6
- const categories = ['javascript', 'shell','database'];
+ const categories = ['javascript', 'database'];
7
const res = categories.find(
8
category =>
9
url.includes(category + '-solution') ||
@@ -27,8 +27,8 @@ const cleanedHtml = html => {
27
};
28
29
const replaceHref = html => {
30
- const replacement = getSolutionPrefix(location.hash)+'solution';
31
- return replacement ? html.replace(/\(\/solution\//,`(${replacement}/`) : html;
+ const prefix = getSolutionPrefix(location.hash);
+ return prefix ? html.replaceAll('(/solution/','(/'+prefix+'solution/') : html;
32
33
34
const getLang = () => (isEn() ? 'en' : 'zh-CN');
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments