MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

微件:SaltMCBBSTools:修订间差异

来自MCBBS Wiki
跳到导航 跳到搜索
(添加了保底机制)
(文本替换 - 替换“mcbbs-wiki.cn”为“mcbbs.wiki”)
 
(未显示另一用户的1个中间版本)
第130行: 第130行:
for (let i = 0; i < res.length; i++) {
for (let i = 0; i < res.length; i++) {
let x = res[i].split('|');
let x = res[i].split('|');
let src = 'https://attachment.mcbbs.net/common/' + x[0], alt = x[1];
let src = 'https://attachment.mcbbs.net/data/myattachment/common/' + x[0], alt = x[1];
let li = document.createElement('li'), img = document.createElement('img'), span = document.createElement('span');
let li = document.createElement('li'), img = document.createElement('img'), span = document.createElement('span');
img.src = src;
img.src = src;
第296行: 第296行:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
let MCBBSTOOLSTYLE = `
let MCBBSTOOLSTYLE = `
.salt-acquire-wealth-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-acquire-wealth-simulator::after{content:"致富卡模拟器";font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-acquire-wealth-simulator::before{content:"@author Salt @license CC BY-NC-SA";font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-acquire-wealth-simulator,.salt-acquire-wealth-simulator>*{box-sizing:border-box;transition:0.3s ease}.salt-acquire-wealth-simulator .resul{width:60%;height:25rem;padding:.375rem;margin:0 0 0 0;float:right;overflow-y:scroll;outline:1px solid #ccc}.salt-acquire-wealth-simulator .resul li{height:1.25rem;margin-left:2.25rem;margin-bottom:0;list-style:decimal;border-bottom:1px solid #ccc;transition:0.25s ease;white-space:pre}.salt-acquire-wealth-simulator .resul li:last-child{border-bottom:none}.salt-acquire-wealth-simulator .resul li:hover{background-color:#fff9}.salt-acquire-wealth-simulator .input{width:calc(40% - 1rem);margin:0 1rem 0 0;float:left}.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-acquire-wealth-simulator .sim:hover,.salt-acquire-wealth-simulator .cls:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-acquire-wealth-simulator .sim:active,.salt-acquire-wealth-simulator .cls:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-acquire-wealth-simulator .resshow{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;outline:1px solid #ccc;white-space:pre-line;float:left}.salt-miner-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-miner-simulator::after{content:"挖矿模拟器";font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-miner-simulator::before{content:"@author Salt @license CC BY-NC-SA";font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-miner-simulator,.salt-miner-simulator>*{box-sizing:border-box;transition:0.3s ease}.salt-miner-simulator .resul{width:100%;height:240px;max-height:300px;padding:.375rem;margin:0 0 0 0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr;overflow-y:scroll;outline:1px solid #ccc;text-align:center;align-items:center}.salt-miner-simulator .resul li{width:100%;margin:auto;list-style:none;transition:0.25s ease;white-space:pre}.salt-miner-simulator .resul li:hover{background-color:var(--bgcolor, #fff9)}.salt-miner-simulator .resul li.common{--bgcolor:#fff9}.salt-miner-simulator .resul li.rare{--bgcolor:rgba(128,191,255,0.4);filter:drop-shadow(0px 0px 4px #80bfff)}.salt-miner-simulator .resul li.epic{--bgcolor:#df80ff66;filter:drop-shadow(0px 0px 6px #df80ff)}.salt-miner-simulator .resul li.legend{--bgcolor:#ffdf8066;filter:drop-shadow(0px 0px 8px #ffdf80)}.salt-miner-simulator .resul li img,.salt-miner-simulator .resul li span{width:74px;margin:0 auto;display:block;text-align:center}.salt-miner-simulator .resul li span{width:96px}.salt-miner-simulator .sim{width:calc(50% - 1rem);padding:.5rem;margin:1rem .5rem 0 .5rem;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-miner-simulator .sim:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-miner-simulator .sim:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-miner-simulator .sim:nth-of-type(1)::before{background-image:url(https://patchwiki.biligame.com/images/mc/6/63/58aatekitx9pn6kx9ji0few8cxgx06r.png)}.salt-miner-simulator .sim:nth-of-type(2)::before{background-image:url(https://mcbbs-wiki.cn/images/e/e7/Diamond_Pickaxe_JE3_BE3.png)}.salt-miner-simulator .sim::before{content:"";background-size:cover;display:inline-block;height:1.2em;width:1.2em;line-height:1.2em;vertical-align:sub}@media screen and (max-width: 960px){.salt-acquire-wealth-simulator{width:100%}.salt-acquire-wealth-simulator .resul,.salt-acquire-wealth-simulator .input,.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls,.salt-acquire-wealth-simulator .resshow{width:100%;white-space:pre}.salt-acquire-wealth-simulator .input{margin-top:.5rem}.salt-acquire-wealth-simulator .resul{height:13.75rem}.salt-miner-simulator{width:100%}.salt-miner-simulator .resul li{padding:0}}
.salt-acquire-wealth-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-acquire-wealth-simulator::after{content:"致富卡模拟器";font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-acquire-wealth-simulator::before{content:"@author Salt @license CC BY-NC-SA";font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-acquire-wealth-simulator,.salt-acquire-wealth-simulator>*{box-sizing:border-box;transition:0.3s ease}.salt-acquire-wealth-simulator .resul{width:60%;height:25rem;padding:.375rem;margin:0 0 0 0;float:right;overflow-y:scroll;outline:1px solid #ccc}.salt-acquire-wealth-simulator .resul li{height:1.25rem;margin-left:2.25rem;margin-bottom:0;list-style:decimal;border-bottom:1px solid #ccc;transition:0.25s ease;white-space:pre}.salt-acquire-wealth-simulator .resul li:last-child{border-bottom:none}.salt-acquire-wealth-simulator .resul li:hover{background-color:#fff9}.salt-acquire-wealth-simulator .input{width:calc(40% - 1rem);margin:0 1rem 0 0;float:left}.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-acquire-wealth-simulator .sim:hover,.salt-acquire-wealth-simulator .cls:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-acquire-wealth-simulator .sim:active,.salt-acquire-wealth-simulator .cls:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-acquire-wealth-simulator .resshow{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;outline:1px solid #ccc;white-space:pre-line;float:left}.salt-miner-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-miner-simulator::after{content:"挖矿模拟器";font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-miner-simulator::before{content:"@author Salt @license CC BY-NC-SA";font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-miner-simulator,.salt-miner-simulator>*{box-sizing:border-box;transition:0.3s ease}.salt-miner-simulator .resul{width:100%;height:240px;max-height:300px;padding:.375rem;margin:0 0 0 0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr;overflow-y:scroll;outline:1px solid #ccc;text-align:center;align-items:center}.salt-miner-simulator .resul li{width:100%;margin:auto;list-style:none;transition:0.25s ease;white-space:pre}.salt-miner-simulator .resul li:hover{background-color:var(--bgcolor, #fff9)}.salt-miner-simulator .resul li.common{--bgcolor:#fff9}.salt-miner-simulator .resul li.rare{--bgcolor:rgba(128,191,255,0.4);filter:drop-shadow(0px 0px 4px #80bfff)}.salt-miner-simulator .resul li.epic{--bgcolor:#df80ff66;filter:drop-shadow(0px 0px 6px #df80ff)}.salt-miner-simulator .resul li.legend{--bgcolor:#ffdf8066;filter:drop-shadow(0px 0px 8px #ffdf80)}.salt-miner-simulator .resul li img,.salt-miner-simulator .resul li span{width:74px;margin:0 auto;display:block;text-align:center}.salt-miner-simulator .resul li span{width:96px}.salt-miner-simulator .sim{width:calc(50% - 1rem);padding:.5rem;margin:1rem .5rem 0 .5rem;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-miner-simulator .sim:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-miner-simulator .sim:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-miner-simulator .sim:nth-of-type(1)::before{background-image:url(https://patchwiki.biligame.com/images/mc/6/63/58aatekitx9pn6kx9ji0few8cxgx06r.png)}.salt-miner-simulator .sim:nth-of-type(2)::before{background-image:url(https://mcbbs.wiki/images/e/e7/Diamond_Pickaxe_JE3_BE3.png)}.salt-miner-simulator .sim::before{content:"";background-size:cover;display:inline-block;height:1.2em;width:1.2em;line-height:1.2em;vertical-align:sub}@media screen and (max-width: 960px){.salt-acquire-wealth-simulator{width:100%}.salt-acquire-wealth-simulator .resul,.salt-acquire-wealth-simulator .input,.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls,.salt-acquire-wealth-simulator .resshow{width:100%;white-space:pre}.salt-acquire-wealth-simulator .input{margin-top:.5rem}.salt-acquire-wealth-simulator .resul{height:13.75rem}.salt-miner-simulator{width:100%}.salt-miner-simulator .resul li{padding:0}}
`;
`;
let ore = {
let ore = {

2022年7月21日 (四) 14:21的最新版本

最近写的两个小工具,类名为salt-acquire-wealth-simulator和salt-miner-simulator,目前没有决定用法,你们可以先拿去MCBBS水帖。

致富卡模拟器
挖矿模拟器