-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpxe.html
62 lines (58 loc) · 1.8 KB
/
pxe.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
<!DOCTYPE html>
<meta http-equiv="Permissions-Policy" content="interest-cohort=()">
<html>
<script type="text/javascript">
function submitResult() {
var result = '[' +
' {' +
' "id": "e325753d-5474-4527-a8b0-364a96e98018",' +
' "lang": "fa",' +
' "survey": [' +
' {' +
' "answer": "good",' +
' "question": "text-messaging"' +
' },' +
' {' +
' "answer": "ok",' +
' "question": "audio-call-quality"' +
' },' +
' {' +
' "answer": "bad",' +
' "question": "video-call-quality"' +
' }' +
' ],' +
' "timestamp": 1234,' +
' "experiment_type": "survey"' +
' },' +
' {' +
' "asn": "0",' +
' "download": "2099.08",' +
' "id": "e325753d-5474-4527-a8b0-364a96e98018",' +
' "jitter": "1.60",' +
' "lang": "fa",' +
' "latency": "5.69",' +
' "timestamp": 1234,' +
' "experiment_type": "speed-test",' +
' "upload": "1067.03"' +
' }' +
' ]';
if (typeof Pxe !== "undefined" && typeof Pxe.submitResult === "function") {
Pxe.submitResult('https://example.org', result);
}
else {
console.log(result);
}
}
</script>
</head>
<body>
<div style="float: left;width: 50%;">
<input type="text" style="width: 180px;" name="myText" id="mytextId" />
</div>
<div style="clear: both;height: 3px;"> </div>
<div>
<input value="submit" type="button" name="submit" id="btnSubmit"
onclick="javascript:return submitResult();" />
</div>
</body>
</html>