-
Notifications
You must be signed in to change notification settings - Fork 0
/
speed-test.html
38 lines (35 loc) · 1.11 KB
/
speed-test.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
<html>
<head>
<title>Chromecast Speed Test</title>
<link rel="stylesheet" type="text/css" href="common.css">
<style>
#powered-by {
/* Place the "powered by" message in the center. */
width: 100%;
}
#embed {
/* The embed should have no border. */
border: none;
/* The embed should take up all its allotted horizontal space. */
width: 100%;
/* The embed should only take up 70% of the vertical screen. This leaves 10%
margin on each side for overscan, plus 10% for "powered by". There should
be no vertical overflow. */
height: 70vh;
overflow: hidden;
/* This is the minimum OpenSpeedTest.com wants for the embedded widget. */
min-height: 360px;
}
</style>
<script src="https://www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>
<script src="start-session.js"></script>
</head>
<body>
<!-- Proper credit. -->
<div id="powered-by">
Chromecast Speed Test - Powered by OpenSpeedtest.com
</div>
<!-- The embedded widget. -->
<iframe id="embed" src="https://openspeedtest.com/speedtest?run"></iframe>
</body>
</html>