Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } What is the JavaScript version of sleep()? In the w3school documentation for setTimeout
- function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
- }
- window.addEventListener('load', async function() {
- 'use strict';
- debugger;
- const cells = document.getElementsByClassName("cDIES");
- for (var i = 0; i < cells.length ; i++) {
- var cell = cells[i];
- cell.click();
- }
- const currentDay = document.getElementsByClassName("cDIES currentDay")[0];
- currentDay.click();
- https://cuty.io/emX3irzm67
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement