-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreen.html
69 lines (69 loc) · 3.11 KB
/
screen.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Hello, Screen!</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="icon" href="./img/baseline-cast-24px.png">
<style type="text/css">
#consoleMessagesList {
height: 50vh;
max-height: 50vh;
overflow-y: scroll;
}
</style>
</head>
<body>
<div class="container-fluid">
<h1 class="text-center my-4">
Screen Page<br/>
<small class="text-muted">This is the page is controled by the remote page</small>
</h1>
<div class="alert alert-warning" role="alert" id="receiverAlert" hidden>
<code>navigator.presentation.receiver</code> is <code>null</code>. This page must be opened via the <a href="./remote">remote page</a>
</div>
<div class="row">
<div class="col">
<div class="card mb-2">
<div class="card-header">Connection</div>
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex flex-wrap justify-content-between align-items-center">
<code>binaryType</code>
<var id="connectionBinaryTypeVar">null</var>
</li>
<li class="list-group-item d-flex flex-wrap justify-content-between align-items-center">
<code>id</code>
<var id="connectionIdVar">null</var>
</li>
<li class="list-group-item d-flex flex-wrap justify-content-between align-items-center">
<code>state</code>
<span class="badge badge-secondary" id="connectionStateBadge">null</span>
</li>
<li class="list-group-item d-flex flex-wrap justify-content-between align-items-center">
<code>url</code>
<var id="connectionUrlVar">null</var>
</li>
<li class="list-group-item d-flex flex-wrap justify-content-between align-items-center">
<code class="text-muted" title="Custom property">resolution</code>
<var id="connectionResolutionVar">null</var>
</li>
</ul>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">Console</div>
<div class="list-group list-group-flush" id="consoleMessagesList">
<div class="list-group-item text-muted">
<p class="mb-1">This is the console. It logs all messages sent by the other page.</p>
<p class="mb-1">Whenever the other page sends a message, a <code>message</code> event is sent to this page.</p>
<p class="mb-1">The sending page can also send data, which will be accessible via the <code>data</code> property of the event.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="./js/screen.js" charset="utf-8"></script>
</body>
</html>