This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SliderCore { | |
config = {}; | |
sliderDots = null; | |
sliderArrow = null; | |
activeIndex = 0; | |
constructor(config){ | |
this.setConfig(config); | |
this.initialize() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from "react"; | |
import "./styles.css"; | |
const Countdown = ({ dueDate }) => { | |
const [remaningTime, setRemaining] = useState(); | |
console.log("re-render"); | |
useEffect(() => { | |
setRemaining(getDateDiff(dueDate)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Creates a Node with value, lett and right children properties | |
* @param value | |
* @constructor | |
*/ | |
function Node(value){ | |
this.value = value; | |
this.right = undefined; | |
this.left = undefined; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
(async () => { | |
document.querySelector('[data-testid="userActions"]').click(); | |
await sleep(100); | |
const reportOption = Array.from(document.querySelector('[data-testid="Dropdown"]').children).find(child => child.textContent.includes("Report")); | |
reportOption.click(); |