Skip to content

Commit 5f143e6

Browse files
committed
v3.10:
1. 微调选项前面序号的位置,使其与对错图标居中对其 2. 优化安卓客户端【卡片浏览器】展示,隐藏非重要信息 3. 增加LaTex相关示例,示例编号10004
1 parent 84147f3 commit 5f143e6

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Anki选择题模板
22

33
## 更新日志:
4+
v3.10:
5+
1. 微调选项前面序号的位置,使其与对错图标居中对其
6+
2. 优化安卓客户端【卡片浏览器】展示,隐藏非重要信息
7+
3. 增加LaTex相关示例,示例编号10004
8+
49
v3.9:
510
1. 解决Android客户端翻转至卡片背面时的选项闪动问题
611

back.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<li class="option"> </li>
1111
<li class="option"> </li>
1212
</div>
13-
<div id="tagBack"></div>
13+
<div id="back-tag"></div>
1414
</div>
1515
<hr>
1616

@@ -102,7 +102,7 @@
102102

103103
</div>
104104

105-
<div class="footer">v3.9,作者:git9527,开源地址:<a href="https://github.com/git9527/anki-awesome-select">Github</a> | <a href="https://gitee.com/git9527/anki-awesome-select">Gitee</a></div>
105+
<div id="back-footer" class="footer">v3.10,作者:git9527</div>
106106

107107
<script>
108108

@@ -116,7 +116,7 @@
116116
tagList += '<span class="single-tag">' + tag + '</span>'
117117
}
118118
}
119-
document.getElementById("tagBack").innerHTML = tagList
119+
document.getElementById("back-tag").innerHTML = tagList
120120
}
121121

122122
function numberToAlpha(numbers) {
@@ -196,8 +196,13 @@
196196
}
197197
}
198198

199+
function updateBackFooter() {
200+
document.getElementById("back-footer").insertAdjacentHTML('beforeend', ',开源地址:<a href="https://github.com/git9527/anki-awesome-select">Github</a> | <a href="https://gitee.com/git9527/anki-awesome-select">Gitee</a>');
201+
}
202+
199203
showTags()
200204
showAnswers()
201205
prepareNotes()
206+
updateBackFooter()
202207

203208
</script>

front.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<div class="wrap-container">
77
<div class="body">
88
<div class="question">{{id}}.<span id="questionType" class="question-type"> </span>{{cloze:question}}</div>
9-
<div class="options" id="optionFront"></div>
10-
<div id="tagFront"></div>
9+
<div class="options" id="front-options"></div>
10+
<div id="front-tag"></div>
1111
</div>
1212
</div>
1313

14-
<div class="footer">v3.9,作者: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 id="front-footer" class="footer">v3.10,作者:git9527</div>
1515

1616
<div id="settingsModal" class="modal">
1717

@@ -46,10 +46,10 @@
4646
}
4747
if (delayOption === '1') {
4848
setTimeout(function () {
49-
document.getElementById("optionFront").innerHTML = liList
49+
document.getElementById("front-options").innerHTML = liList
5050
}, 1500)
5151
} else {
52-
document.getElementById("optionFront").innerHTML = liList
52+
document.getElementById("front-options").innerHTML = liList
5353
}
5454
}
5555

@@ -58,7 +58,7 @@
5858
for (var i in optionObjs) {
5959
liList += "<li class='option'></li>"
6060
}
61-
document.getElementById("optionFront").innerHTML = liList
61+
document.getElementById("front-options").innerHTML = liList
6262
}
6363

6464
function getOptionObjs(randomOption) {
@@ -144,7 +144,7 @@
144144
tagList += '<span class="single-tag">' + tag + '</span>'
145145
}
146146
}
147-
document.getElementById("tagFront").innerHTML = tagList
147+
document.getElementById("front-tag").innerHTML = tagList
148148
}
149149

150150
function showSettings() {
@@ -294,9 +294,14 @@
294294
' </div>'
295295
}
296296

297+
function updateFrontFooter() {
298+
document.getElementById("front-footer").insertAdjacentHTML('beforeend', ',<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>');
299+
}
300+
297301
showTags()
298302
renameIOsSendMessage()
299303
addModelContent()
300304
applySettings()
305+
updateFrontFooter()
301306

302307
</script>

0 commit comments

Comments
 (0)