JSFiddle - React, Tailwind, and code Playground
by Derek Nash
HTML
<h3>You are not viewing this from a 600px or less monitor (screen size).</h3>
<h2>No redirect to GitHub.</h2>
JavaScript
var url = window.location.href;
var filename = url.substring(url.lastIndexOf('/')+1);
var a = 'index.shtml';
if((screen.width <= 600) && (filename == a)) {
window.location.href = 'https://github.com/';
}