TODO: Write a project description
TODO: Describe the installation process
// http://stackoverflow.com/questions/7279567/how-do-i-pause-a-window-setinterval-in-javascript | |
function RecurringTimer(callback, delay) { | |
var timerId, start, remaining = delay; | |
this.pause = function() { | |
window.clearTimeout(timerId); | |
remaining -= new Date() - start; | |
}; |
# what we want: | |
# client -> OpenVPN -> Tor -> Internet | |
# Install & configure OpenVPN | |
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 | |
# assumed OpenVPN configuration | |
# 10.8.0.1/24-Subnet | |
# tun0-Interface |
class LazyVideoLoader { | |
constructor() { | |
this.videos = [].slice.call(document.querySelectorAll('.hero__bgvideo')); | |
// Abort when: | |
// - The browser does not support Promises. | |
// - There no videos. | |
// - If the user prefers reduced motion. | |
// - Device is mobile. | |
if ( |
{ | |
"autocomplete": true, | |
"autoimport": true, | |
"enable_auto_align": false, | |
"format_on_save": true, | |
"ignore": "Parent", | |
"indent_with_space": 4, | |
"passes": | |
[ | |
"ReindentSwitchBlocks", |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |