how to get the width of the viewport, jquery code example Example: get page resolution jquery $( window ).width()