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
// First download node, create new folder | |
// Cd into new folder, npm and git init | |
// Create heroku app | |
heroku create | |
// install babel cli (to do compiling), babel presets (to compile the right features), express (web server) | |
npm install babel-cli babel-preset-es2015 express | |
// Create file .babelrc and add json |
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
if (typeof networkTest === 'undefined') { | |
var networkTest = {}; | |
(function() { | |
this.hostReachable = function() { | |
// Since we are setting the cache ajax option to false, we can take out the Math.random mechanism | |
let url = '//' + window.location.hostname; | |
let status; | |
$.ajax({ |