Skip to content

Instantly share code, notes, and snippets.

@freshsnippets
Created July 22, 2013 17:24
Show Gist options
  • Save freshsnippets/6055763 to your computer and use it in GitHub Desktop.
Save freshsnippets/6055763 to your computer and use it in GitHub Desktop.
JavaScript: In Browser Width Function to help determine Breakpoints
function breakpointWidth() {
var theWidth = $(window).width(),
theTitle = $('title');
theTitle.empty();
theTitle.html(theWidth + 'px wide ');
}
$(window).resize(function() {
breakpointWidth();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment