Skip to content

Commit a19d7ab

Browse files
committed
fixing more line encodings
1 parent 8746e90 commit a19d7ab

1 file changed

Lines changed: 53 additions & 53 deletions

File tree

‎console-proxy/js/handler.js‎

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -17,56 +17,56 @@ specific language governing permissions and limitations
1717
under the License.
1818
*/
1919

20-
//
21-
// Callback handlers for AJAX viewer
22-
// Author
23-
// Kelven Yang
24-
// 11/18/2009
25-
//
26-
function onKickoff() {
27-
ajaxViewer.stop();
28-
$('#toolbar').remove();
29-
$('#main_panel').html('<p>This session is terminated because a session for the same VM has been created elsewhere.</p>');
30-
}
31-
32-
function onDisconnect() {
33-
ajaxViewer.stop();
34-
$('#toolbar').remove();
35-
$('#main_panel').html('<p>This session is terminated as the machine you are accessing has terminated the connection.</p>');
36-
}
37-
38-
function onClientError() {
39-
ajaxViewer.stop();
40-
$('#toolbar').remove();
41-
$('#main_panel').html('<p>Client communication error, please retry later.</p>');
42-
}
43-
44-
function onCanvasSizeChange(width, height) {
45-
$('#toolbar').width(width);
46-
}
47-
48-
function onStatusNotify(status) {
49-
if(status == ajaxViewer.STATUS_SENDING || status == ajaxViewer.STATUS_RECEIVING)
50-
$('#light').removeClass('dark').addClass('bright');
51-
else
52-
$('#light').removeClass('bright').addClass('dark');
53-
}
54-
55-
function sendCtrlAltDel() {
56-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 45, ajaxViewer.CTRL_KEY | ajaxViewer.ALT_KEY);
57-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 45, ajaxViewer.CTRL_KEY | ajaxViewer.ALT_KEY);
58-
}
59-
60-
function sendCtrlEsc() {
61-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 17, 0);
62-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 27, ajaxViewer.CTRL_KEY);
63-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 27, ajaxViewer.CTRL_KEY);
64-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 17, 0);
65-
}
66-
67-
function sendAltTab() {
68-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 18, 0);
69-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 9, ajaxViewer.ALT_KEY);
70-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 9, ajaxViewer.ALT_KEY);
71-
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 18, 0);
72-
}
20+
//
21+
// Callback handlers for AJAX viewer
22+
// Author
23+
// Kelven Yang
24+
// 11/18/2009
25+
//
26+
function onKickoff() {
27+
ajaxViewer.stop();
28+
$('#toolbar').remove();
29+
$('#main_panel').html('<p>This session is terminated because a session for the same VM has been created elsewhere.</p>');
30+
}
31+
32+
function onDisconnect() {
33+
ajaxViewer.stop();
34+
$('#toolbar').remove();
35+
$('#main_panel').html('<p>This session is terminated as the machine you are accessing has terminated the connection.</p>');
36+
}
37+
38+
function onClientError() {
39+
ajaxViewer.stop();
40+
$('#toolbar').remove();
41+
$('#main_panel').html('<p>Client communication error, please retry later.</p>');
42+
}
43+
44+
function onCanvasSizeChange(width, height) {
45+
$('#toolbar').width(width);
46+
}
47+
48+
function onStatusNotify(status) {
49+
if(status == ajaxViewer.STATUS_SENDING || status == ajaxViewer.STATUS_RECEIVING)
50+
$('#light').removeClass('dark').addClass('bright');
51+
else
52+
$('#light').removeClass('bright').addClass('dark');
53+
}
54+
55+
function sendCtrlAltDel() {
56+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 45, ajaxViewer.CTRL_KEY | ajaxViewer.ALT_KEY);
57+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 45, ajaxViewer.CTRL_KEY | ajaxViewer.ALT_KEY);
58+
}
59+
60+
function sendCtrlEsc() {
61+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 17, 0);
62+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 27, ajaxViewer.CTRL_KEY);
63+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 27, ajaxViewer.CTRL_KEY);
64+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 17, 0);
65+
}
66+
67+
function sendAltTab() {
68+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 18, 0);
69+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_DOWN, 9, ajaxViewer.ALT_KEY);
70+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 9, ajaxViewer.ALT_KEY);
71+
ajaxViewer.sendKeyboardEvent(ajaxViewer.KEY_UP, 18, 0);
72+
}

0 commit comments

Comments
 (0)