-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclick.js
More file actions
43 lines (38 loc) · 1.12 KB
/
click.js
File metadata and controls
43 lines (38 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
var sleeptime=3500;
async function clickonit(sleeptime) {
$("a[href*='eva']").click();
var array;
await sleep(sleeptime);
array = $("input[value^='评教']");
if (array.length > 0) {
$("input[value^='评教']")[0].click()
}
else {
alert('Finish!');
return;
}
await sleep(sleeptime);
$("input[onclick*='8.8']").click();
$("input[onclick*='9.6']").click();
jQuery("#flag").val(true);
var form = document.courseEvaluateEditForm;
bg.form.submit(form, "/eams/quality/course/evaluate/lesson-evaluate!saveCourseEvaluate.action", "contentDiv");
$("#saveId").hide();
$("#sumbitId").hide();
$("#btnWait").show();
await sleep(sleeptime);
clickonit(sleeptime);
}
async function run(sleeptime) {
$("a[href*='eva']").click();
await sleep(sleeptime);
$("td[val=4083]").click();
$("td[index=20]").click();
$("input[type=submit]").click();
await sleep(sleeptime);
clickonit(sleeptime);
}
run(sleeptime);