JSFiddle - React, Tailwind, and code Playground
by Johan Muller
HTML
<div id="consoles"></div>
JavaScript
var $window = $(window);
$window.on('resize',function(){
var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var p = 1920 - w;
$('#consoles').html(p);
}).trigger('resize');