A CodePen by Dirk Lüth. REMux: Step 2 - Basic Viewport detection