<!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> | |
</head> | |
<body> | |
<div class="wrapper"> | |
<div class="frame"> | |
<h2>320 × 480 <small>(mobile)</small></h2> | |
<iframe src="./" sandbox="allow-same-origin allow-forms" seamless width="320" height="480"></iframe> | |
</div> | |
<div class="frame"> | |
<h2>480 × 640 <small>(small tablet)</small></h2> | |
<iframe src="./" sandbox="allow-same-origin allow-forms" seamless width="480" height="640"></iframe> | |
</div> | |
<div class="frame"> | |
<h2>768 × 1024 <small>(tablet - portrait)</small></h2> | |
<iframe src="./" sandbox="allow-same-origin allow-forms" seamless width="768" height="1024"></iframe> | |
</div> | |
<div class="frame"> | |
<h2>1024 × 768 <small>(tablet - landscape)</small></h2> | |
<iframe src="./" sandbox="allow-same-origin allow-forms" seamless width="1024" height="768"></iframe> | |
</div> | |
<div class="frame"> | |
<h2>1200 × 800 <small>(desktop)</small></h2> | |
<iframe src="./" sandbox="allow-same-origin allow-forms" seamless width="1200" height="800"></iframe> | |
</div> | |
</div> | |
</body> | |
</html> |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
herjen
commented
Jan 27, 2012
I have to add a html extension to the file to view it in Safari. And it opens Finder windows instead of showing de website in de iframes. Am i doing something wrong? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
AkenRoberts
Jan 27, 2012
@herjen Ideally you should save this gist as an html file, then place it in the same directory as the file you want to test. Then, for each iframe, change the "src" attribute to the name of the file you want to test. Then, load this file in your browser.
AkenRoberts
commented
Jan 27, 2012
@herjen Ideally you should save this gist as an html file, then place it in the same directory as the file you want to test. Then, for each iframe, change the "src" attribute to the name of the file you want to test. Then, load this file in your browser. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
ollie
commented
Jan 27, 2012
Hi @lensco do you mind if I take this gist, modify it, make it a git repo and push it to my GitHub account? I would link to your original gist and blog post in the readme. I'd like to avoid any copyright issues so I thought I'd ask first. |
herjen
commented
Jan 27, 2012
@lensco it works. Mabye an idea to make the default source "index.html". Thanks. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
gmodarelli
Feb 23, 2012
I forked your gist to allow javascript in the iframes, https://gist.github.com/1892251
Just added "allow-scripts" to the sandbox attribute
gmodarelli
commented
Feb 23, 2012
I forked your gist to allow javascript in the iframes, https://gist.github.com/1892251 |
I have to add a html extension to the file to view it in Safari. And it opens Finder windows instead of showing de website in de iframes. Am i doing something wrong?