mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
mdict: support css
This commit is contained in:
parent
ad2ad04b47
commit
b4cd28c645
2 changed files with 3 additions and 13 deletions
|
@ -176,9 +176,8 @@
|
||||||
let filenames=path.substring(iSlash+1);
|
let filenames=path.substring(iSlash+1);
|
||||||
{
|
{
|
||||||
let iDot = filenames.indexOf('.');
|
let iDot = filenames.indexOf('.');
|
||||||
if(iDot>0)
|
document.getElementsByTagName("link")[0].href =
|
||||||
document.getElementsByTagName("link")[0].href =
|
filenames.substring(0,iDot+1)+"css";
|
||||||
filenames.substring(0,iDot)+"css";
|
|
||||||
}
|
}
|
||||||
window.onload = function(){
|
window.onload = function(){
|
||||||
if(filenames.length>0){
|
if(filenames.length>0){
|
||||||
|
|
11
index.html
11
index.html
|
@ -1,10 +1 @@
|
||||||
<!DOCTYPE html>
|
<meta http-equiv="refresh" content="0; url=en/index.html">
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<title>en/</title>
|
|
||||||
<link rel="canonical" href="en/">
|
|
||||||
<meta name="robots" content="noindex">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="refresh" content="0; url=en/">
|
|
||||||
</head>
|
|
||||||
</html>
|
|
||||||
|
|
Loading…
Reference in a new issue