From 799b541472125a126d807c26e77618c7b41bc813 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Fri, 16 Dec 2022 23:53:17 +0800 Subject: [PATCH] opt some --- lib/base.js | 2 +- page/index.css | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/base.js b/lib/base.js index 3f665618..b1de284f 100644 --- a/lib/base.js +++ b/lib/base.js @@ -96,7 +96,7 @@ Volcanos("base", { var vs = ls[1].split(ice.DF); now.setHours(parseInt(vs[0])), now.setMinutes(parseInt(vs[1])), now.setSeconds(parseInt(vs[2])) } else if (time) { now = time } return now }, - DateAdd: function(stamp, days) { return new Date(stamps - stamps%(24*3600*1000) - 8*3600*1000 + days*24*3600*1000) }, + DateAdd: function(stamp, days) { return new Date(stamp - stamp%(24*3600*1000) - 8*3600*1000 + days*24*3600*1000) }, Duration: function(n) { var res = "", h = 0 h = parseInt(n/3600000/24), h > 0 && (res += h+"d"), n = n % (3600000*24) h = parseInt(n/3600000), h > 0 && (res += h+"h"), n = n % 3600000 diff --git a/page/index.css b/page/index.css index 3fa21855..5888fff8 100644 --- a/page/index.css +++ b/page/index.css @@ -1,5 +1,5 @@ body, fieldset, table, tr, th, td { padding:0; border:0; margin:0; } -body { background-color:black; color:cyan; font-size:16px; overflow:hidden; } +body { background-color:black; color:cyan; font-size:16px; } legend { background-color:cadetblue; color:white; padding:0 20px; margin-right:2px; float:left; } select { background-color:black; color:cyan; padding:0 10px; margin:0 2px; border:0; } textarea { background-color:cyan; width:400px; padding:5px; border:0; margin:2px; } @@ -345,6 +345,8 @@ fieldset.plugin.parse.cmd>div.status { display:none; } fieldset.xterm div.toggle { display:none; } fieldset.story.inner.float { background-color:black; } +body.black { overflow:hidden; } +body.white { overflow:hidden; } body.black a { color:yellow; } body.white fieldset.panel.Search a { color:yellow; } body.mobile fieldset.plan>div.action { display:none; }