Check viewport width

by Faisal Khan Janjua

HTML

<h1></h1>

JavaScript

$(document).ready(function(){
	$('h1').text($(window).width())
});