blob: 9d550a3c641a076ad67fedcd6f9eb8eae3af473f (
plain)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
<!doctype html>
<!--
Copyright (c) 2011 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css" />
<script type="text/javascript" src="remoting.js"></script>
<title>Select Role</title>
</head>
<body onload="init();">
<!-- Auth panel -->
<div id="auth_panel">
<form action="">
XMPP Token: <input type="text" id="xmpp_token" /><br />
OAuth2 Token: <input type="text" id="oauth2_token" /><br />
<button onclick="saveCredentials(this.form);">
Save Credentials
</button>
</form>
</div>
<!-- Host UI -->
<div id="host">
<div id="unshared">
<p class="message">
Your desktop is currently unshared.
</p>
<button type="button"
class="ok"
onclick="tryShare();">
Start sharing
</button>
<p>
<a class="switch_mode"
href="#c"
onclick="setGlobalMode('client');">
I want to connect to another computer instead...
</a>
</p>
</div>
<div id="ready_to_share">
<p class="message">
To begin sharing your desktop, read out the access code below to the
person who will be assisting you.
</p>
<p id="access_code_display">
ABCD-1234-WXYZ
</p>
<p class="message">
Waiting for connection...
<button type="button"
class="cancel"
onclick="cancelShare();">
Cancel
</button>
</p>
<p class="message mock">
(For this mock-up, this message will disappear automatically.)
</p>
</div>
<div id="shared">
<p class="message">
Your desktop is currently being shared.
</p>
<button type="button"
class="cancel"
onclick="setHostMode('unshared');">
Stop sharing
</button>
</div>
</div>
<!-- Client UI -->
<div id="client">
<div id="unconnected">
<p class="message">
To connect to another computer, enter the access code provided to you
by that computer's user.
</p>
<form action="">
<input type="text"
id="access_code_entry"/>
<button type="submit"
onclick="tryConnect(this.form);">
Connect
</button>
</form>
<a class="switch_mode"
href="#h"
onclick="setGlobalMode('host');">
I want to share this computer instead...
</a>
</div>
<div id="connecting">
<p class="message">
Verifying access code...
<button type="button"
class="cancel"
onclick="cancelConnect();">
Cancel
</button>
</p>
<p class="message mock">
(For this mock-up, this message will disappear automatically.)
</p>
</div>
</div>
<!-- In-session UI -->
<div id="session">
<p class="message">
Congratulations! You have connected successfully. Your access code was
<em id="access_code_proof"></em>.
</p>
</div>
</body>
</html>
|