We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b833870 + 8fae127 commit a1e546fCopy full SHA for a1e546f
1 file changed
StudyChromeApp/script.js
@@ -7,13 +7,13 @@ chrome.storage.local.get('mode',function(str){
7
model = str.mode;
8
9
10
- if(model == 1){
11
- console.log("自动学习模式。。。");
12
- mode1();
13
- } else if(mode = 2) {
+ if(model == 1){
+ console.log("自动学习模式。。。");
+ mode1();
+ } else if(mode = 2) {
14
console.log("周期学习模式。。。");
15
- mode2();
16
- }
+ mode2();
+ }
17
});
18
19
@@ -34,6 +34,16 @@ function mode1() {
34
35
36
}, 1000);
37
+ } else {
38
+ setTimeout(function () {
39
+ var link = $('a', $('.notattempt').first().parents('tr').first());
40
+ if (link.length < 1) {
41
+ link = $('a', $('.incomplete').first().parents('tr').first());
42
43
+ if (link.length > 0) {
44
+ link[0].click();
45
46
+ }, 2000);
47
}
48
49
0 commit comments