-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.js
More file actions
37 lines (29 loc) · 782 Bytes
/
Copy pathmain.js
File metadata and controls
37 lines (29 loc) · 782 Bytes
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
// taking care of all the animation
function startAnimation()
{
for (i=10; i!=0; i--){for (m of document.getElementsByClassName("start-button")){
m.click();
}};
}
function solveAnimation()
{
//starting the animation
startAnimation();
//the 2x button so we can finish faster ehh
let doubleSpeed = document.querySelectorAll('[aria-label="2x speed"]');
for (button of doubleSpeed){button.click()};
//hit play button
function playUntilFinished()
{
if(document.getElementsByClassName("step disabled").length>0)
{
for (x of document.getElementsByClassName('play-button')) {x.click()};
playUntilFinished();
}
}
}
function solveMultipleChoice()
{
for (radio of document.querySelectorAll('input[type=radio]')) {radio.click()};
}
console.log("i'm wokring");