diff --git a/README.md b/README.md index 45f1ca3b..12c96bef 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Shuang | 双拼练习 ---- -v5.10 2020.5.5 更新 +v5.11 2021.1.25 更新 ### 许可 @@ -21,7 +21,7 @@ v5.10 2020.5.5 更新 > > 小众【常用输入法几乎不内置】:国标双拼 / 小浪双拼 / 大牛双拼 > - > 爱好者【常用输入法不内置】:键道双拼 3 / 键道双拼 6 / 开源小鹳 / 小月双拼 / 韵标块拼 + > 爱好者【常用输入法不内置】:键道双拼 3 / 键道双拼 6 / 开源小鹳 / 小月双拼 / 韵标块拼 / C 双拼 2. 出题模式说明: diff --git a/build/app.min.js b/build/app.min.js index 3f990bd9..3142a114 100644 --- a/build/app.min.js +++ b/build/app.min.js @@ -1 +1 @@ -"use strict";function _toConsumableArray(b){return _arrayWithoutHoles(b)||_iterableToArray(b)||_unsupportedIterableToArray(b)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(b){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(b))return Array.from(b)}function _arrayWithoutHoles(b){if(Array.isArray(b))return _arrayLikeToArray(b)}function _createForOfIteratorHelper(b,c){var d;if("undefined"==typeof Symbol||null==b[Symbol.iterator]){if(Array.isArray(b)||(d=_unsupportedIterableToArray(b))||c&&b&&"number"==typeof b.length){d&&(b=d);var e=0,f=function(){};return{s:f,n:function n(){return e>=b.length?{done:!0}:{done:!1,value:b[e++]}},e:function e(b){throw b},f:f}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g,h=!0,j=!1;return{s:function s(){d=b[Symbol.iterator]()},n:function n(){var b=d.next();return h=b.done,b},e:function e(b){j=!0,g=b},f:function f(){try{h||null==d["return"]||d["return"]()}finally{if(j)throw g}}}}function _classCallCheck(b,c){if(!(b instanceof c))throw new TypeError("Cannot call a class as a function")}function _defineProperties(b,c){for(var d,e=0;eb.length)&&(c=b.length);for(var d=0,e=Array(c);db?f=1:window.outerWidth<310&&(f=310/b,e=window.outerWidth>c?(310-window.outerWidth)/(310-c)*d:d),$(".keys").style.zoom=f,$(".keys").style.left=e+"px"},updateTips:function updateTips(){var b=$("#tips");b.innerHTML="";var c=Shuang.resource.scheme[this.config.scheme];if(c.tips){var d,e=Array.isArray(c.tips)?c.tips:[c.tips],f=_createForOfIteratorHelper(e);try{for(f.s();!(d=f.n()).done;){var g=d.value,h=document.createElement("div");h.className="line",h.innerHTML=g,b.appendChild(h)}}catch(b){f.e(b)}finally{f.f()}}$("#pic").setAttribute("src","img/".concat(this.config.scheme,".png"))}};function detectDarkMode(){return!!(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)||!!(6>new Date().getHours()||22=b.length?{done:!0}:{done:!1,value:b[e++]}},e:function e(b){throw b},f:f}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g,h=!0,j=!1;return{s:function s(){d=b[Symbol.iterator]()},n:function n(){var b=d.next();return h=b.done,b},e:function e(b){j=!0,g=b},f:function f(){try{h||null==d["return"]||d["return"]()}finally{if(j)throw g}}}}function _classCallCheck(b,c){if(!(b instanceof c))throw new TypeError("Cannot call a class as a function")}function _defineProperties(b,c){for(var d,e=0;eb.length)&&(c=b.length);for(var d=0,e=Array(c);db?f=1:window.outerWidth<310&&(f=310/b,e=window.outerWidth>c?(310-window.outerWidth)/(310-c)*d:d),$(".keys").style.zoom=f,$(".keys").style.left=e+"px"},updateTips:function updateTips(){var b=$("#tips");b.innerHTML="";var c=Shuang.resource.scheme[this.config.scheme];if(c.tips){var d,e=Array.isArray(c.tips)?c.tips:[c.tips],f=_createForOfIteratorHelper(e);try{for(f.s();!(d=f.n()).done;){var g=d.value,h=document.createElement("div");h.className="line",h.innerHTML=g,b.appendChild(h)}}catch(b){f.e(b)}finally{f.f()}}$("#pic").setAttribute("src","img/".concat(this.config.scheme,".png"))}};function detectDarkMode(){return!!(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)||!!(6>new Date().getHours()||22\u4ECB\u7ECD"],detail:{sheng:{},yun:{},other:{fa:"fj",bang:"bm",bei:"b;",ji:"jd",bin:"bk",cou:"co",cuan:"cm",gun:"g;",wa:"wj",cang:"cg",fei:"fi",li:"ld",jin:"jt",chou:"uq",chuan:"ur",qun:"q;",za:"zm",tang:"tm",gei:"gs",mi:"mz",lin:"lt",dou:"do",duan:"dm",run:"r;",da:"da",wang:"wg",hei:"hs",ni:"nz",min:"mt",fou:"fo",guan:"gm",sun:"s;",a:"ah",chang:"ug",lei:"ls",pi:"pe",nin:"nt",gou:"go",huan:"hr",tun:"t;",ba:"ba",dang:"dg",mei:"ms",qi:"qi",pin:"pt",hou:"hq",juan:"jr",cun:"cc",ca:"ca",fang:"fh",nei:"ns",ri:"ri",qin:"qk",kou:"kq",kuan:"kr",chun:"uc",cha:"ua",gang:"gg",pei:"ps",si:"si",xin:"xk",lou:"lq",luan:"lr",dun:"dc",ga:"ga",hang:"hg",wei:"wi",shi:"is",yin:"ek",mou:"mq",nuan:"nr",hun:"hc",ha:"ha",kang:"kg",zei:"z;",ti:"ti",bing:"bp",nou:"nq",quan:"qm",jun:"jc",ka:"ka",lang:"lg",ben:"bk",xi:"xi",ding:"df",pou:"pq",ruan:"rm",kun:"kc",la:"la",mang:"mg",cen:"ck",yi:"ei",jing:"jf",rou:"ro",suan:"sm",lun:"lc",ma:"ma",nang:"ng",chen:"ut",zi:"zi",ling:"lf",sou:"so",shuan:"ir",shun:"ic",na:"na",pang:"pg",fen:"fk",zhi:"vi",ming:"mf",shou:"iq",tuan:"tm",xun:"xc",pa:"pa",rang:"rh",gen:"gk",dia:"dx",ning:"nf",tou:"to",xuan:"xm",yun:"yc",sa:"sa",sang:"sg",hen:"hd",xia:"xl",ping:"pf",you:"eo",yuan:"em",zun:"zc",sha:"ia",shang:"ig",ken:"kd",lia:"lx",qing:"qp",zou:"zo",zuan:"zm",zhun:"oc",ta:"ta",yang:"eg",men:"md",jia:"ja",ting:"tp",zhou:"oq",zhuan:"or",cuo:"cp",ya:"ya",zang:"zg",nen:"nk",qia:"ql",xing:"xp",er:"eh",chuang:"uz",chuo:"up",zha:"oa",zhang:"og",pen:"pk",bian:"bl",ying:"ep",bu:"bu",guang:"gz",duo:"dp",bai:"bh",bao:"bj",ren:"rk",tian:"tk",jiong:"js",cu:"cu",huang:"hz",guo:"gp",cai:"ch",cao:"cj",sen:"sk",dian:"dw",qiong:"ql",chu:"uf",kuang:"kz",huo:"hb",chai:"ux",chao:"ub",shen:"it",jian:"jw",xiong:"xl",du:"du",shuang:"iz",kuo:"kb",dai:"dh",dao:"dj",wen:"wk",lian:"lw",diu:"dq",fu:"fu",zhuang:"oz",luo:"lb",gai:"gh",gao:"gj",zen:"zk",mian:"mw",jiu:"jq",gu:"gu",jue:"jb",nuo:"np",hai:"hh",hao:"hj",zhen:"ot",nian:"nw",liu:"lq",hu:"hf",lve:"lb",ruo:"rp",kai:"kh",kao:"kj",beng:"bd",pian:"pw",miu:"mq",ju:"jv",nve:"n;",suo:"sp",lai:"lh",lao:"lj",ceng:"ck",qian:"qn",niu:"nq",ku:"kf",que:"q;",shuo:"ib",mai:"mx",mao:"mb",cheng:"ud",xian:"xn",qiu:"qo",lu:"lv",xue:"x;",tuo:"tp",nai:"nx",nao:"nb",deng:"dd",jiang:"jg",xiu:"xo",mu:"mv",yue:"e;",zuo:"zp",pai:"ph",pao:"pj",feng:"fd",liang:"lg",an:"an",nu:"nv",cui:"c;",zhuo:"ob",sai:"sh",rao:"rj",geng:"gk",niang:"ng",en:"en",ou:"ou",sui:"s;",jv:"jv",shai:"ix",sao:"sj",heng:"hd",qiang:"qh",ang:"ag",pu:"pv",zui:"z;",lv:"lv",tai:"th",shao:"aj",keng:"kd",xiang:"xh",mo:"mq",qu:"qu",chui:"uv",wai:"wh",tao:"tj",leng:"lk",biao:"bb",po:"pq",ru:"ru",dui:"d;",zai:"zh",yao:"ej",meng:"md",diao:"db",ao:"ao",su:"su",gui:"g;",zhai:"ox",zao:"zj",neng:"nd",jiao:"jj",bo:"bo",shu:"if",hui:"hv",ban:"bn",zhao:"oj",peng:"pd",liao:"lz",o:"oh",tu:"tu",kui:"kv",can:"cn",ge:"gi",reng:"rd",miao:"mb",wo:"wo",wu:"wu",rui:"r;",chan:"uw",ce:"cy",seng:"sk",niao:"nb",yo:"eo",xu:"xu",shui:"iv",dan:"dn",che:"ue",sheng:"id",piao:"pj",cong:"cl",yu:"eu",tui:"t;",fan:"fn",de:"dk",teng:"td",qiao:"qj",chong:"us",zu:"zu",zhui:"ov",gan:"gn",e:"e;",weng:"wd",tiao:"tj",dong:"dl",zhu:"of",han:"hw",he:"he",zeng:"zk",xiao:"xj",gong:"gl",gua:"ga",kan:"kw",ke:"ke",zheng:"od",bie:"by",hong:"hl",hua:"ha",lan:"ln",le:"le",ai:"ai",die:"dy",kong:"ks",kua:"km",man:"mn",me:"me",bi:"bi",jie:"je",long:"ll",shua:"im",nan:"nn",ne:"ne",ci:"ci",lie:"lz",nong:"nl",zhua:"om",pan:"pn",re:"ry",chi:";i",mie:"me",rong:"rl",chuai:"ux",ran:"rn",se:"sy",di:"di",nie:"ne",song:"sl",guai:"gh",san:"sn",she:"ie",ei:"ei",pie:"pz",tong:"tl",huai:"hx",shan:"iw",te:"ty",qie:"qy",yong:"el",kuai:"kx",tan:"tn",ye:"ye",tie:"ty",zong:"zl",shuai:"ix",wan:"wn",ze:"zy",xie:"xy",zhong:"os",zhuai:"ox",yan:"en",zhe:"oe",zan:"zn",zhan:"ow",dei:"ds",fo:"fo",lo:"lo",nv:"nv",chua:"ua"}}}; \ No newline at end of file diff --git a/build/style.min.css b/build/style.min.css index d1132dc9..d55af8ed 100644 --- a/build/style.min.css +++ b/build/style.min.css @@ -1 +1 @@ -body{margin:0 auto;width:100%;min-width:310px;background-color:#eee;user-select:none;cursor:default;font-family:sans-serif}.header{width:100%;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:center;justify-content:center;-webkit-align-items:center;align-items:center;text-align:center}.header .menu{padding:5px 10px;display:inline-block}.menu .title{font-weight:700}.menu span{font-size:16px}.menu select{font-size:16px;background-color:#eee;border:dashed #000 1px;width:min-content;height:25px}.menu input{margin:0}.workspace{margin:auto;width:300px;height:150px;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-around;justify-content:space-around;-webkit-align-items:center;align-items:center}.workspace .col{margin:10px;display:inline-block}.workspace .col .dict{font-size:96px}.workspace .col .row{height:50px}.workspace .col .row .q{font-size:36px}.workspace .col .row .btn{display:inline-block;font-size:32px}.workspace .col .row input{width:75px;font-size:36px;border:solid #eee;border-bottom:dashed #000;background-color:#eee;-webkit-appearance:none;border-radius:0;display:inline;text-transform:capitalize;padding:0}.workspace .col .row input:hover{border-bottom:solid #111}.keyboard{width:95%;text-align:center;margin:20px auto}.keyboard .keys{position:absolute;width:680px;left:0;right:0;margin:10px auto;z-index:2;opacity:.2}.keyboard .keys .row-2{margin-left:33px}.keyboard .keys .row-3{margin-left:66px}.keyboard .keys .key{width:64.5px;height:66px;float:left;background-color:#070;visibility:hidden}.keyboard .pic{width:100%;max-width:700px;z-index:1;filter:invert(.07)}@media screen and (min-width:0\0) and (min-resolution:+72dpi){.keyboard .pic{filter:none}}.keyboard .tips{width:60%;max-width:700px;min-width:300px;margin:auto;font-size:12px;color:#777}.keyboard .tips .line{text-align:center;font-weight:700;color:#333;margin:5px}.manual{width:50%;min-width:230px;text-align:center;margin:20px auto}.manual p{color:#333;font-size:14px;margin:5px;display:inline-block}.footer{margin:20px auto;width:100%}.wx{min-width:160px;position:relative;float:right;right:20px;z-index:1}.wx #wx-title{font-weight:700;font-style:italic;font-size:14px;color:#777}.wx #wx-name{font-weight:700;color:#319a31;margin-left:0}.wx #wx-qr{position:fixed;bottom:20px;right:20px;width:250px;height:250px;border:dashed #777 1px;z-index:1}.copyright{min-width:250px;position:relative;float:left;left:25px;text-align:left;margin-bottom:20px}.copyright span{font-size:14px;color:#777}.copyright a{font-size:12px;color:#888;font-style:italic}.pays{clear:both}.pays .pay-title{margin-left:25px;font-weight:700;color:#777}.pays .pay-name{font-weight:700;margin-left:10px}.pays #alipay{color:#0087ff}.pays #wxpay{color:#319a31}.pays img{position:fixed;bottom:20px;left:20px;width:250px;height:250px;border:dashed #777 1px;z-index:1}.dark-mode{background-color:#333}.dark-mode *{background-color:#333!important;color:#ccc!important}.dark-mode .workspace .col .row input{border:solid #333;border-bottom:dashed #ccc}.dark-mode .keyboard .pic{filter:invert(.8)}.dark-mode .keyboard .key{background-color:#7f7!important}@supports (-webkit-overflow-scrolling:touch){.dark-mode .menu select{color:#000!important}} \ No newline at end of file +body{margin:0 auto;width:100%;min-width:310px;background-color:#eee;user-select:none;cursor:default;font-family:sans-serif}.header{width:100%;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:center;justify-content:center;-webkit-align-items:center;align-items:center;text-align:center}.header .menu{padding:5px 10px;display:inline-block}.menu .title{font-weight:700}.menu span{font-size:16px}.menu select{font-size:16px;background-color:#eee;border:dashed #000 1px;width:min-content;height:25px}.menu input{margin:0}.workspace{margin:auto;width:300px;height:150px;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-around;justify-content:space-around;-webkit-align-items:center;align-items:center}.workspace .col{margin:10px;display:inline-block}.workspace .col .dict{font-size:96px}.workspace .col .row{height:50px}.workspace .col .row .q{font-size:36px}.workspace .col .row .btn{display:inline-block;font-size:32px}.workspace .col .row input{width:75px;font-size:36px;border:solid #eee;border-bottom:dashed #000;background-color:#eee;-webkit-appearance:none;border-radius:0;display:inline;text-transform:capitalize;padding:0}.workspace .col .row input:hover{border-bottom:solid #111}.keyboard{width:95%;text-align:center;margin:20px auto}.keyboard .keys{position:absolute;width:680px;left:0;right:0;margin:10px auto;z-index:2;opacity:.2}.keyboard .keys .row-2{margin-left:2px}.keyboard .keys .row-2{margin-left:33px}.keyboard .keys .row-3{margin-left:66px}.keyboard .keys .key{width:64.5px;height:64.5px;float:left;background-color:#070;visibility:hidden}.keyboard .pic{width:100%;max-width:700px;z-index:1;filter:invert(.07)}@media screen and (min-width:0\0) and (min-resolution:+72dpi){.keyboard .pic{filter:none}}.keyboard .tips{width:60%;max-width:700px;min-width:300px;margin:auto;font-size:12px;color:#777}.keyboard .tips .line{text-align:center;font-weight:700;color:#333;margin:5px}.manual{width:50%;min-width:230px;text-align:center;margin:20px auto}.manual p{color:#333;font-size:14px;margin:5px;display:inline-block}.footer{margin:20px auto;width:100%}.wx{min-width:160px;position:relative;float:right;right:20px;z-index:1}.wx #wx-title{font-weight:700;font-style:italic;font-size:14px;color:#777}.wx #wx-name{font-weight:700;color:#319a31;margin-left:0}.wx #wx-qr{position:fixed;bottom:20px;right:20px;width:250px;height:250px;border:dashed #777 1px;z-index:1}.copyright{min-width:250px;position:relative;float:left;left:25px;text-align:left;margin-bottom:20px}.copyright span{font-size:14px;color:#777}.copyright a{font-size:12px;color:#888;font-style:italic}.pays{clear:both}.pays .pay-title{margin-left:25px;font-weight:700;color:#777}.pays .pay-name{font-weight:700;margin-left:10px}.pays #alipay{color:#0087ff}.pays #wxpay{color:#319a31}.pays img{position:fixed;bottom:20px;left:20px;width:250px;height:250px;border:dashed #777 1px;z-index:1}.dark-mode{background-color:#333}.dark-mode *{background-color:#333!important;color:#ccc!important}.dark-mode .workspace .col .row input{border:solid #333;border-bottom:dashed #ccc}.dark-mode .keyboard .pic{filter:invert(.8)}.dark-mode .keyboard .key{background-color:#7f7!important}@supports (-webkit-overflow-scrolling:touch){.dark-mode .menu select{color:#000!important}} \ No newline at end of file diff --git a/img/c.png b/img/c.png index 1b183586..f1005a10 100644 Binary files a/img/c.png and b/img/c.png differ diff --git a/img/daniu.png b/img/daniu.png index bdeb04cb..2cd47d77 100644 Binary files a/img/daniu.png and b/img/daniu.png differ diff --git a/img/guobiao.png b/img/guobiao.png index 17ba5a46..e38732f6 100644 Binary files a/img/guobiao.png and b/img/guobiao.png differ diff --git a/img/jiandao3.png b/img/jiandao3.png index 947e4270..9b279e45 100644 Binary files a/img/jiandao3.png and b/img/jiandao3.png differ diff --git a/img/jiandao6.png b/img/jiandao6.png index 7cffb958..d762d46e 100644 Binary files a/img/jiandao6.png and b/img/jiandao6.png differ diff --git a/img/pinyinjiajia.png b/img/pinyinjiajia.png index 47469c34..8b33788f 100644 Binary files a/img/pinyinjiajia.png and b/img/pinyinjiajia.png differ diff --git a/img/sougou.png b/img/sougou.png index 13e72254..69326045 100644 Binary files a/img/sougou.png and b/img/sougou.png differ diff --git a/img/weiruan.png b/img/weiruan.png index a0d69356..d0e6501e 100644 Binary files a/img/weiruan.png and b/img/weiruan.png differ diff --git a/img/xiaoguan.png b/img/xiaoguan.png index 6e373797..1cb70b85 100644 Binary files a/img/xiaoguan.png and b/img/xiaoguan.png differ diff --git a/img/xiaohe.png b/img/xiaohe.png index 2c0bf728..960a49fd 100644 Binary files a/img/xiaohe.png and b/img/xiaohe.png differ diff --git a/img/xiaolang.png b/img/xiaolang.png index ccdac8cd..889f46ca 100644 Binary files a/img/xiaolang.png and b/img/xiaolang.png differ diff --git a/img/xiaoyue.png b/img/xiaoyue.png index be4bba71..6040a4f8 100644 Binary files a/img/xiaoyue.png and b/img/xiaoyue.png differ diff --git a/img/yunbiaokuaipin.png b/img/yunbiaokuaipin.png index 8d71fa3c..04f6ec18 100644 Binary files a/img/yunbiaokuaipin.png and b/img/yunbiaokuaipin.png differ diff --git a/img/zhinengabc.png b/img/zhinengabc.png index 4b670d40..1dfdc378 100644 Binary files a/img/zhinengabc.png and b/img/zhinengabc.png differ diff --git a/img/ziguang.png b/img/ziguang.png index 1e7be721..bb2f1cf1 100644 Binary files a/img/ziguang.png and b/img/ziguang.png differ diff --git a/img/ziranma.png b/img/ziranma.png index b3444794..78bfdbc4 100644 Binary files a/img/ziranma.png and b/img/ziranma.png differ diff --git a/index.html b/index.html index 58fc74ec..8c318377 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,3 @@ -双拼练习 @ BlueSky

1. 切换至系统自带的英文输入法

2. 空格键 / 回车键 切换或清空

3. Tab 键 显示答案(可能不唯一)

4. 手机练习推荐使用微信小程序

5. 使用 Chrome 浏览器 体验最佳

6. 查看 双拼输入介绍

\ No newline at end of file diff --git a/index.src.html b/index.src.html index 150e9a33..9a173122 100644 --- a/index.src.html +++ b/index.src.html @@ -1,4 +1,4 @@ - + @@ -116,7 +116,7 @@ src="https://api.ihint.me/qr.php?https://mp.weixin.qq.com/a/~Jaww_jP-YK1G39fiZ01Qxg~~"> diff --git a/package.json b/package.json index a63c99df..fe53dcc4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shuang", - "version": "5.10.0", + "version": "5.11.0", "description": "帮助你快速上手双拼输入法", "scripts": { "clear": "rm -rf build/*", diff --git "a/resources/\345\217\214\346\213\274\351\224\256\344\275\215\345\233\276.xlsx" "b/resources/\345\217\214\346\213\274\351\224\256\344\275\215\345\233\276.xlsx" index 584091f3..b2621b09 100644 Binary files "a/resources/\345\217\214\346\213\274\351\224\256\344\275\215\345\233\276.xlsx" and "b/resources/\345\217\214\346\213\274\351\224\256\344\275\215\345\233\276.xlsx" differ diff --git a/scripts/build-app.sh b/scripts/build-app.sh index 065da17c..cfbfe8e8 100755 --- a/scripts/build-app.sh +++ b/scripts/build-app.sh @@ -17,6 +17,7 @@ function append () { } echo "clearing $BUNDLE_FILE" +echo "/** This script is generated by scripts/build-app.sh */" > "$BUNDLE_FILE" echo "" > "$BUNDLE_FILE" append entry.js diff --git a/src/app.js b/src/app.js index 7888598a..6b3710e6 100644 --- a/src/app.js +++ b/src/app.js @@ -358,7 +358,7 @@ Shuang.core.model = class Model { } /******************** EOF core.js ************************/ /************************ setting.js ************************/ -/** last changed: 2020.5.5 */ +/** last changed: 2021.1.25 */ Shuang.app.setting = { config: {}, @@ -455,7 +455,9 @@ Shuang.app.setting = { }, updateKeysHint() { const keys = $$('.key') - keys.forEach((key) => key.style.visibility = 'hidden') + for (const key of keys) { + key.style.visibility = 'hidden' + } if (this.config.showKeys === 'false') return const qwerty = 'qwertyuiopasdfghjkl;zxcvbnm' for (const [sheng, yun] of Shuang.core.current.scheme) { @@ -467,7 +469,7 @@ Shuang.app.setting = { updateKeysHintLayoutRatio() { // TODO: 修改样式而不是计算 const MIN_WIDTH = 310 - const MAX_WIDTH = 740 + const MAX_WIDTH = 750 const OFFSET_WIDTH = 300 const OFFSET = 30 let left = 0 diff --git a/src/setting.js b/src/setting.js index 0debc163..111c6e29 100644 --- a/src/setting.js +++ b/src/setting.js @@ -1,4 +1,4 @@ -/** last changed: 2020.5.5 */ +/** last changed: 2021.1.25 */ Shuang.app.setting = { config: {}, @@ -95,7 +95,9 @@ Shuang.app.setting = { }, updateKeysHint() { const keys = $$('.key') - keys.forEach((key) => key.style.visibility = 'hidden') + for (const key of keys) { + key.style.visibility = 'hidden' + } if (this.config.showKeys === 'false') return const qwerty = 'qwertyuiopasdfghjkl;zxcvbnm' for (const [sheng, yun] of Shuang.core.current.scheme) { @@ -107,7 +109,7 @@ Shuang.app.setting = { updateKeysHintLayoutRatio() { // TODO: 修改样式而不是计算 const MIN_WIDTH = 310 - const MAX_WIDTH = 740 + const MAX_WIDTH = 750 const OFFSET_WIDTH = 300 const OFFSET = 30 let left = 0 diff --git a/src/style.css b/src/style.css index 638881bb..f9b7c9c8 100644 --- a/src/style.css +++ b/src/style.css @@ -1,4 +1,4 @@ -/** last changed: 2020.6.25 */ +/** last changed: 2021.1.25 */ body { margin: 0 auto; @@ -120,6 +120,10 @@ body { opacity: 0.2; } +.keyboard .keys .row-2 { + margin-left: 2px +} + .keyboard .keys .row-2 { margin-left: 33px } @@ -130,7 +134,7 @@ body { .keyboard .keys .key { width: 64.5px; - height: 66px; + height: 64.5px; float: left; background-color: #007700; visibility: hidden; @@ -144,7 +148,6 @@ body { } @media screen and (min-width: 0\0) and (min-resolution: +72dpi) { - /* IE */ .keyboard .pic { filter: none; @@ -299,7 +302,6 @@ body { } @supports (-webkit-overflow-scrolling: touch) { - /* Safari on iOS */ .dark-mode .menu select { color: #000 !important;