From 52355c54955503c335c7b458c59f7a5df3c12268 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Sat, 11 Dec 2021 17:29:56 +0800 Subject: [PATCH] opt some --- page/index.css | 5 +++++ plugin/local/wiki/word.js | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/page/index.css b/page/index.css index a7645787..69d79b5e 100644 --- a/page/index.css +++ b/page/index.css @@ -30,6 +30,11 @@ div.hidden { div.story { text-align:left; } +p.story[data-type=brief] { + font-family:cursive; + font-weight:bolder; + font-size:20px; +} div.story[data-type=spark] { background-color:#2169a9a6; color:white; box-shadow:4px 4px 10px 1px #626bd0; diff --git a/plugin/local/wiki/word.js b/plugin/local/wiki/word.js index a11d2f5e..52224008 100644 --- a/plugin/local/wiki/word.js +++ b/plugin/local/wiki/word.js @@ -71,6 +71,12 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, can.user.copy(event, can, item.innerText) } }) + can.page.Select(can, target, "a", function(item) { + can.page.Modify(can, item, {target: "_blank"}) + if (item.innerText == "") { + item.innerText = item.href + } + }) }, table: function(can, data, target) { can.page.OrderTable(can, target)