forked from mattkersley/Responsive-Design-Testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (73 loc) · 4.72 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Responsive design testing for the masses">
<title>Teste de Design Responsivo</title>
<style>
*{vertical-align:top;}
body{padding:20px;font-family:sans-serif;overflow-y:scroll;}
h2{margin:0 0 20px 0;}
span.small{font-size:60%;vertical-align:middle;}
#url{margin:0 0 20px 0px;display:block;}
#url input[type=text]{border:solid 1px #666;width:85%;margin:0 auto;font-size:2em;text-align:left;}
#url input[type=submit]{display:none;}
#url #options{float:right;line-height:25px;width:13%;}
#url #options input{margin-top:5px;}
#frames{overflow-x:scroll;width:100%;margin-bottom:10px;padding-bottom:20px;}
.frame{margin-right:20px;float:left;}
.frame:last-child{margin-right:0;}
.frame img{display:none;vertical-align:middle;}
iframe{border:solid 1px #000;}
.widthOnly {height:580px;}
.widthOnly h2 span{display:none;}
.widthOnly h2 .small{display:inline;}
.widthOnly iframe{height:500px;}
</style>
</head>
<body id="container">
<div id="url">
<form method="post">
<input type="text" placeholder="Teste seu site... digite o endereço e aperte enter" />
<input type="submit" value="submit">
<div id="options">
<label for="normal"><input id="normal" type="radio" name="option" value="1" checked>Apenas largura</label><br />
<label for="accurate"><input id="accurate" type="radio" name="option" value="2">Dimensões completas</label>
</div>
</form>
</div>
<div id="frames" class="widthOnly">
<div id="inner">
<div id="f1" class="frame">
<h2>240<span> x 320</span> <span class="small">(telefone pequeno)</span> <img src="http://mattkersley.com/wp-content/themes/mattkersley/images/loader_large.gif" /></h2>
<iframe sandbox="allow-same-origin allow-forms allow-scripts" seamless width="255" height="320"></iframe>
</div>
<div id="f2" class="frame">
<h2>320<span> x 480</span> <span class="small">(iPhone)</span> <img src="http://mattkersley.com/wp-content/themes/mattkersley/images/loader_large.gif" /></h2>
<iframe sandbox="allow-same-origin allow-forms allow-scripts" seamless width="335" height="480"></iframe>
</div>
<div id="f3" class="frame">
<h2>480<span> x 640</span> <span class="small">(tablet pequeno)</span> <img src="http://mattkersley.com/wp-content/themes/mattkersley/images/loader_large.gif" /></h2>
<iframe sandbox="allow-same-origin allow-forms allow-scripts" seamless width="495" height="640"></iframe>
</div>
<div id="f4" class="frame">
<h2>768<span> x 1024</span> <span class="small">(iPad - Portrait)</span> <img src="http://mattkersley.com/wp-content/themes/mattkersley/images/loader_large.gif" /></h2>
<iframe sandbox="allow-same-origin allow-forms allow-scripts" seamless width="783" height="1024"></iframe>
</div>
<div id="f5" class="frame">
<h2>1024<span> x 768</span> <span class="small">(iPad - Landscape)</span> <img src="http://mattkersley.com/wp-content/themes/mattkersley/images/loader_large.gif" /></h2>
<iframe sandbox="allow-same-origin allow-forms allow-scripts" seamless width="1039" height="768"></iframe>
</div>
<div id="f6" class="frame">
<h2>1240<span> x 768</span> <span class="small">(tela gigante)</span> <img src="http://mattkersley.com/wp-content/themes/mattkersley/images/loader_large.gif" /></h2>
<iframe sandbox="allow-same-origin allow-forms allow-scripts" seamless width="1255" height="768"></iframe>
</div>
</div>
</div>
<span>Desenvolvido por <a href="https://github.com/mattkersley/Responsive-Design-Testing">Matt Kersley</a> - Adaptado por <a href="http://nauweb.com">Nauweb</a></span><br /><br />
<span>É possível testar qualquer site usando o link: http://nauweb.com/responsivo?seusite.com</span><br /><br />
<span>Nota: A largura pode não ser "pixel perfect". Foram adicionados 15px aos iFrames para considerar a barras de rolagens</span>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script src="responsive.js"></script>
</body>
</html>