From b4cd28c645d083b95be43631ff09cae7c33b78dc Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Thu, 13 Oct 2022 08:39:50 +0800 Subject: [PATCH] mdict: support css --- en/searchurl/mdict/mdict.html | 5 ++--- index.html | 11 +---------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/en/searchurl/mdict/mdict.html b/en/searchurl/mdict/mdict.html index 5cf8837..22033fd 100644 --- a/en/searchurl/mdict/mdict.html +++ b/en/searchurl/mdict/mdict.html @@ -176,9 +176,8 @@ let filenames=path.substring(iSlash+1); { let iDot = filenames.indexOf('.'); - if(iDot>0) - document.getElementsByTagName("link")[0].href = - filenames.substring(0,iDot)+"css"; + document.getElementsByTagName("link")[0].href = + filenames.substring(0,iDot+1)+"css"; } window.onload = function(){ if(filenames.length>0){ diff --git a/index.html b/index.html index 33185bf..db7d507 100644 --- a/index.html +++ b/index.html @@ -1,10 +1 @@ - - - - en/ - - - - - - +