|
6 | 6 | <div class="wrap-container"> |
7 | 7 | <div class="body"> |
8 | 8 | <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> |
11 | 11 | </div> |
12 | 12 | </div> |
13 | 13 |
|
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> |
15 | 15 |
|
16 | 16 | <div id="settingsModal" class="modal"> |
17 | 17 |
|
|
46 | 46 | } |
47 | 47 | if (delayOption === '1') { |
48 | 48 | setTimeout(function () { |
49 | | - document.getElementById("optionFront").innerHTML = liList |
| 49 | + document.getElementById("front-options").innerHTML = liList |
50 | 50 | }, 1500) |
51 | 51 | } else { |
52 | | - document.getElementById("optionFront").innerHTML = liList |
| 52 | + document.getElementById("front-options").innerHTML = liList |
53 | 53 | } |
54 | 54 | } |
55 | 55 |
|
|
58 | 58 | for (var i in optionObjs) { |
59 | 59 | liList += "<li class='option'></li>" |
60 | 60 | } |
61 | | - document.getElementById("optionFront").innerHTML = liList |
| 61 | + document.getElementById("front-options").innerHTML = liList |
62 | 62 | } |
63 | 63 |
|
64 | 64 | function getOptionObjs(randomOption) { |
|
144 | 144 | tagList += '<span class="single-tag">' + tag + '</span>' |
145 | 145 | } |
146 | 146 | } |
147 | | - document.getElementById("tagFront").innerHTML = tagList |
| 147 | + document.getElementById("front-tag").innerHTML = tagList |
148 | 148 | } |
149 | 149 |
|
150 | 150 | function showSettings() { |
|
294 | 294 | ' </div>' |
295 | 295 | } |
296 | 296 |
|
| 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 | + |
297 | 301 | showTags() |
298 | 302 | renameIOsSendMessage() |
299 | 303 | addModelContent() |
300 | 304 | applySettings() |
| 305 | + updateFrontFooter() |
301 | 306 |
|
302 | 307 | </script> |
0 commit comments