This was something I created quite a few years ago before we had more sophisticated tools available. It is a quick way to test your site's responsiveness. However it should not substitute for real world testing on an array of mobile and tablet devices.
Feel free to save and use the page as you wish. It's old code that I just dressed up a little to post here :)