| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <html> | 8 <html> |
| 9 | 9 |
| 10 <head> | 10 <head> |
| 11 <link rel="stylesheet" type="text/css" href="main.css" /> | 11 <link rel="stylesheet" type="text/css" href="main.css" /> |
| 12 <script type="text/javascript" src="remoting.js"></script> | 12 <script type="text/javascript" src="remoting.js"></script> |
| 13 <script type="text/javascript" src="oauth2.js"></script> |
| 13 <title>Select Role</title> | 14 <title>Select Role</title> |
| 14 </head> | 15 </head> |
| 15 | 16 |
| 16 <body onload="init();"> | 17 <body onload="init();"> |
| 17 | 18 |
| 18 <!-- Auth panel --> | 19 <!-- Auth panel --> |
| 19 <div id="auth_panel"> | 20 <div id="auth_panel"> |
| 20 Chromoting OAuth1 Token: <span id="oauth1_status"></span> | 21 OAuth2 Token: <span id="oauth2_status"></span> |
| 21 <button onclick="authorizeOAuth1();">Authorize</button> | 22 <button onclick="remoting.oauth2.openOAuth2Window();" |
| 22 <button onclick="clearOAuth1();">Clear</button > | 23 id="oauth2_code_button"> |
| 23 <br /> | 24 Open OAuth2 Window |
| 24 XMPP Token: <span id="xmpp_status"></span> | 25 </button> |
| 25 <button onclick="clearXmpp();" id="xmpp_clear" style="display:none;"> | 26 <button onclick="clearOAuth2();" id="oauth2_clear_button"> |
| 26 Clear | 27 Clear |
| 27 </button> | 28 </button> |
| 28 <form id='xmpp_form' action="" | 29 <form id='oauth2_form' action="" |
| 29 onsubmit="authorizeXmpp(this); return false;"> | 30 onsubmit="authorizeOAuth2(this['oauth2_code'].value); return false;" |
| 30 <label for="xmpp_username">Email:</label> | 31 style="display:none"> |
| 31 <input type="text" name="xmpp_username" id="xmpp_username" /> | 32 <label for="auth2_code">OAuth2 Code (from window):</label> |
| 32 <label for="xmpp_password">App-specific Password:</label> | 33 <input type="text" name="oauth2_code" id="oauth2_code" /> |
| 33 <input type="password" name="xmpp_password" id="xmpp_password" /> | |
| 34 <div id="xmpp_captcha" style="display:none;"> | |
| 35 <img style="display:block;" id="xmpp_captcha_img" /> | |
| 36 <input type="hidden" name="xmpp_captcha_token" /> | |
| 37 <input type="text" name="xmpp_captcha_result" /> | |
| 38 </div> | |
| 39 <input type="submit"/> | 34 <input type="submit"/> |
| 40 </form> | 35 </form> |
| 41 <span id="xmpp_last_error" style="display:none"></span> | 36 <div id="xmpp_div"> |
| 42 <iframe id="xmpp_error" style="display:none"> | 37 XMPP Token: <span id="xmpp_status"></span> |
| 43 <p> No iframe support | 38 <button onclick="clearXmpp();" id="xmpp_clear" style="display:none;"> |
| 44 </iframe> | 39 Clear |
| 40 </button> |
| 41 |
| 42 <form id='xmpp_form' action="" |
| 43 onsubmit="authorizeXmpp(this); return false;"> |
| 44 <label for="xmpp_username">Email:</label> |
| 45 <input type="text" name="xmpp_username" id="xmpp_username" /> |
| 46 <label for="xmpp_password">App-specific Password:</label> |
| 47 <input type="password" name="xmpp_password" id="xmpp_password" /> |
| 48 <div id="xmpp_captcha" style="display:none;"> |
| 49 <img style="display:block;" id="xmpp_captcha_img" /> |
| 50 <input type="hidden" name="xmpp_captcha_token" /> |
| 51 <input type="text" name="xmpp_captcha_result" /> |
| 52 </div> |
| 53 <input type="submit"/> |
| 54 </form> |
| 55 <span id="xmpp_last_error" style="display:none"></span> |
| 56 <iframe id="xmpp_error" style="display:none"> |
| 57 <p> No iframe support |
| 58 </iframe> |
| 59 </div> |
| 45 </div> | 60 </div> |
| 46 | 61 |
| 47 <!-- Host UI --> | 62 <!-- Host UI --> |
| 48 <div id="host"> | 63 <div id="host"> |
| 49 <div id="plugin_wrapper"> | 64 <div id="plugin_wrapper"> |
| 50 </div> | 65 </div> |
| 51 | 66 |
| 52 <div id="unshared"> | 67 <div id="unshared"> |
| 53 <p class="message"> | 68 <p class="message"> |
| 54 Your desktop is currently unshared. | 69 Your desktop is currently unshared. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 onclick="setClientMode('unconnected');"> | 174 onclick="setClientMode('unconnected');"> |
| 160 OK | 175 OK |
| 161 </button> | 176 </button> |
| 162 </div> | 177 </div> |
| 163 | 178 |
| 164 </div> | 179 </div> |
| 165 | 180 |
| 166 </body> | 181 </body> |
| 167 | 182 |
| 168 </html> | 183 </html> |
| OLD | NEW |