A Pen by Juan Cortines on CodePen.
This file contains 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
(() => { | |
const getSliderControlInput = () => | |
document.querySelectorAll('input[data-ref=progressBar]')[0] | |
const getPlayButton = () => | |
document.querySelectorAll('button[id=play-pause]')[0] | |
const isInputReady = $input => | |
parseInt($input.value) < (parseInt($input.max) - parseInt($input.step)) | |
const isPaused = $play => | |
$play.attributes['aria-label'] && $play.attributes['aria-label'].value.includes('Play') |
This file contains 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
'use strict'; | |
const https = require('https'); | |
const crypto = require('crypto'); | |
const tls = require('tls'); | |
const forge = require('node-forge'); | |
const pki = forge.pki; | |
const getRandomPortNumber = () => | |
Math.floor(Math.random() * (65535 - 49152)) + 49152 |
This file contains 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
// script used to scrape data from performancemanager8.successfactors.com | |
// it downloads photos from the organization's chart | |
// photo file name contains firstname, lastname, position and hire date | |
(() => { | |
// root node - does not necessarily have to be the top-most | |
const THE_BOSS = 'TREFA' | |
// retry interval in case of server error | |
const RETRY_INT = 1000 |
This explains how to load sorted and filtered data on a responsive way thanks to indexeddb
A Pen by Juan Cortines on CodePen.