Home | History | Annotate | Download | only in include
      1 /*
      2  * noVNC: HTML5 VNC client
      3  * Copyright (C) 2012 Joel Martin
      4  * Licensed under LGPL-3 (see LICENSE.txt)
      5  *
      6  * See README.md for usage and integration instructions.
      7  */
      8 
      9 /*jslint evil: true */
     10 /*global window, document, INCLUDE_URI */
     11 
     12 /*
     13  * Load supporting scripts
     14  */
     15 function get_INCLUDE_URI() {
     16     return (typeof INCLUDE_URI !== "undefined") ? INCLUDE_URI : "include/";
     17 }
     18 
     19 (function () {
     20     "use strict";
     21 
     22     var extra = "", start, end;
     23 
     24     start = "<script src='" + get_INCLUDE_URI();
     25     end = "'><\/script>";
     26 
     27     // Uncomment to activate firebug lite
     28     //extra += "<script src='http://getfirebug.com/releases/lite/1.2/" +
     29     //         "firebug-lite-compressed.js'><\/script>";
     30 
     31     extra += start + "util.js" + end;
     32     extra += start + "webutil.js" + end;
     33     extra += start + "base64.js" + end;
     34     extra += start + "websock.js" + end;
     35     extra += start + "des.js" + end;
     36     extra += start + "input.js" + end;
     37     extra += start + "display.js" + end;
     38     extra += start + "rfb.js" + end;
     39     extra += start + "jsunzip.js" + end;
     40 
     41     document.write(extra);
     42 }());
     43 
     44