-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobiletest.html
More file actions
32 lines (28 loc) · 968 Bytes
/
mobiletest.html
File metadata and controls
32 lines (28 loc) · 968 Bytes
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
<head>
<title>Mobile speed test</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<h1>Mobile browser testing</h1>
Mobile site url <input id="url" type="text"><button type="submit">Start</button><br>
Please make sure the url does not redirect for accurate testing results.
<div style="clear:both;"></div>
<div style="width:50%;float:right;">{{> res_mobile}}</div>
<div style="width:50%;float:left;">{{> res_normal}}</div>
</template>
<template name="res_normal">
<h2>Normal</h2>
<div style="height:{{ data.height }}px;overflow:hidden;"><img src="data:image/png;base64,{{ data.image }}"/></div>
{{#eachProperty data}}
{{property}}: {{value}}<br/>
{{/eachProperty }}
</template>
<template name="res_mobile">
<h2>Klipper</h2>
<div style="height:{{ data.height }}px;overflow:hidden;"><img src="data:image/png;base64,{{ data.image }}"/></div>
{{#eachProperty data}}
{{property}}: {{value}}<br/>
{{/eachProperty }}
</template>