Split util into two file:

- util.js that contains essential functions
 - webutils.js that contains the GUI utility function.js

this helps to include noVNC in other project, especially Cappuccino Application
i
This commit is contained in:
Antoine Mercadal
2010-09-30 03:11:23 +08:00
committed by Joel Martin
parent a679a97d1b
commit 8d5d2c8230
12 changed files with 175 additions and 121 deletions
+3 -3
View File
@@ -50,7 +50,7 @@
cell.scrollTop = cell.scrollHeight;
}
fname = Util.getQueryVar('data', null);
fname = WebUtil.getQueryVar('data', null);
if (fname) {
message("Loading " + fname);
@@ -109,9 +109,9 @@
}
window.onload = function() {
iterations = Util.getQueryVar('iterations', 3);
iterations = WebUtil.getQueryVar('iterations', 3);
$('iterations').value = iterations;
mode = Util.getQueryVar('mode', 3);
mode = WebUtil.getQueryVar('mode', 3);
if (mode === 'realtime') {
$('mode2').checked = true;
} else {