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
#!/bin/bash | |
# -m maximize compression power | |
# -mt multithreading | |
# -q quality | |
# -af optimize with auto filter | |
# -size enter the wanted compression file size in bytes 250000 are 250 kiloBytes | |
PARAMS=('-m 6 -q 50 -mt -af -progress') |
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
const speed = 10; //Number from 1-? to set the counting speed | |
const counter = document.querySelector('.js_numberGen'); //query the div or span which shall count | |
counter.innerHTML += "1"; | |
const updateCount = () => { | |
const target = parseInt(counter.getAttribute('data-target')); //Set the value to which it should count | |
const count = parseInt(counter.innerText); | |
const increment = Math.floor(Math.random() * 10); | |
if (count < target) { |