File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1- # Anki的选择题模板
1+ # Anki选择题模板
22
33## 更新日志:
4+ v3.7:
5+ 1 . 统一单选及多选下,标示的显示逻辑,单选未选中的选项标黄
6+ 2 . 未做选择,直接显示答案时,你的选项将提示【未选择】
7+
48v3.6:
591 . 当设置里【显示类型】为开启状态时,卡片背面才将问题类型在题目前显示
610
4852
4953## 判断说明
5054单选/多选情况下,标示正确/错误的所有情况如下:
51- ### 单选
52- | | 正确选项 | 错误选项 |
53- | :---: | :----: | :----: |
54- | 选中 | ✅ | ❌ |
55- | 未选中 | ✅ | 无变化 |
56-
57- ### 多选
55+ ### 单选及多选
5856| | 正确选项 | 错误选项 |
5957| :---: | :----: | :----: |
6058| 选中 | ✅ | ❌ |
Original file line number Diff line number Diff line change 2424 < div class ="notes-container "> {{notes}}</ div >
2525</ div >
2626
27- < div class ="footer "> v3.6 ,作者:git9527,开源地址:< a href ="https://github.com/git9527/anki-awesome-select "> Github</ a > | < a href ="https://gitee.com/git9527/anki-awesome-select "> Gitee</ a > </ div >
27+ < div class ="footer "> v3.7 ,作者:git9527,开源地址:< a href ="https://github.com/git9527/anki-awesome-select "> Github</ a > | < a href ="https://gitee.com/git9527/anki-awesome-select "> Gitee</ a > </ div >
2828
2929< div id ="answer " style ="display:none "> {{answer}}</ div >
3030< div id ="options " style ="display:none "> {{options}}</ div >
5858 _class = 'option'
5959 }
6060 } else {
61- if ( _isCorrect ) {
61+ if ( _isCorrect && _isSelected ) {
6262 _class = 'option ' + correctClass
63+ } else if ( _isCorrect && ! _isSelected ) {
64+ _class = 'option ' + shouldSelectClass
6365 } else {
6466 _class = _isSelected ? 'option ' + wrongClass : 'option'
6567 }
143145 document . getElementById ( "correctAnswer" ) . innerHTML = numberToAlpha ( document . getElementById ( "answer" ) . innerHTML . trim ( ) . split ( '||' ) )
144146 if ( Persistence . isAvailable ( ) ) {
145147 var selectedNumbers = ( Persistence . getItem ( 'ANKI-SELECTED' ) || '' ) . trim ( ) . split ( ',' )
146- document . getElementById ( "yourChoice" ) . innerHTML = numberToAlpha ( selectedNumbers )
148+ document . getElementById ( "yourChoice" ) . innerHTML = numberToAlpha ( selectedNumbers ) || '未选择'
147149 Persistence . setItem ( 'ANKI-SELECTED' , '' )
148150 var showQuestionType = Persistence . getItem ( 'ANKI-SETTINGS-SHOW-QUESTION-TYPE' ) || '0'
149151 if ( showQuestionType === '1' ) {
Original file line number Diff line number Diff line change 1111 </ div >
1212</ div >
1313
14- < div class ="footer "> v3.6 ,作者:git9527,< a href ="javascript:showSettings(); "> 卡片设置</ a > ,开源地址:< a href ="https://github.com/git9527/anki-awesome-select "> Github</ a > | < a href ="https://gitee.com/git9527/anki-awesome-select "> Gitee</ a > </ div >
14+ < div class ="footer "> v3.7 ,作者:git9527,< a href ="javascript:showSettings(); "> 卡片设置</ a > ,开源地址:< a href ="https://github.com/git9527/anki-awesome-select "> Github</ a > | < a href ="https://gitee.com/git9527/anki-awesome-select "> Gitee</ a > </ div >
1515
1616< div id ="answer " style ="display:none "> {{answer}}</ div >
1717< div id ="options " style ="display:none "> {{options}}</ div >
You can’t perform that action at this time.
0 commit comments