/* * noVNC: HTML5 VNC client * Copyright (C) 2010 Joel Martin * Licensed under LGPL-3 (see LICENSE.txt) * * See README.md for usage and integration instructions. */ "use strict"; /*jslint white: false */ /*global $, Util, RFB, Canvas, VNC_uri_prefix, Element, Fx */ var UI = { settingsOpen : false, // Render default UI and initialize settings menu load: function(target) { var html = '', i, sheet, sheets, llevels; /* Populate the 'target' DOM element with default UI */ if (!target) { target = $D('vnc'); } else if (typeof target === 'string') { target = $D(target); } if ((!document.createElement('canvas').getContext) && window.ActiveXObject) { // Suggest Chrome frame for Internet Explorer users html += '
'; html += ' You are using a version of Internet Explorer '; html += ' that does not have HTML5 Canvas support. '; html += ' To use noVNC you must use a browser with HTML5 '; html += ' Canvas support or install '; html += ' '; html += ' Google Chrome Frame.'; html += '
'; target.innerHTML = html; return; } html += '
'; html += '