-
-
Save dvessel/1687129 to your computer and use it in GitHub Desktop.
Simple responsive design test page. More info here: http://bricss.net/post/16538278376/simple-responsive-design-test-page Modified to follow links.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Responsive Design Testing</title> | |
<style> | |
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
.wrapper { width: 6000px; } | |
.frame { float: left; } | |
h2 { margin: 0 0 5px 0; } | |
iframe { margin: 0 20px 20px 0; border: 1px solid #666; } | |
</style> | |
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
<script> | |
jQuery(document).ready(function($) { | |
var frames = $('iframe'); | |
frames.load(function() { | |
var href = this.contentWindow.location.href; | |
frames.each(function() { | |
if (this.contentWindow.location.href != href) { | |
$(this).attr('src', href); | |
} | |
}); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<div class="wrapper"> | |
<div class="frame"> | |
<h2>320<span> x 480</span> <small>(mobile)</small></h2> | |
<iframe src="./" sandbox="allow-same-origin allow-forms allow-scripts" seamless width="320" height="480"></iframe> | |
</div> | |
<div class="frame"> | |
<h2>480<span> x 640</span> <small>(small tablet)</small></h2> | |
<iframe src="" sandbox="allow-same-origin allow-forms allow-scripts" seamless width="480" height="640"></iframe> | |
</div> | |
<div class="frame"> | |
<h2>768<span> x 1024</span> <small>(tablet - portrait)</small></h2> | |
<iframe src="" sandbox="allow-same-origin allow-forms allow-scripts" seamless width="768" height="1024"></iframe> | |
</div> | |
<div class="frame"> | |
<h2>1024<span> x 768</span> <small>(tablet - landscape)</small></h2> | |
<iframe src="" sandbox="allow-same-origin allow-forms allow-scripts" seamless width="1024" height="768"></iframe> | |
</div> | |
<div class="frame"> | |
<h2>1200<span> x 800</span> <small>(desktop)</small></h2> | |
<iframe src="" sandbox="allow-same-origin allow-forms allow-scripts" seamless width="1200" height="800"></iframe> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed this fork a little late. Does the same without a library.