-
Notifications
You must be signed in to change notification settings - Fork 1
Integration
noVNC is designed to be easily integrated into existing web sites with the existing structure and styling. For details about the modules that make up noVNC and their Javascript API see the ModulesAPI page.
-
All files necessary for integrating noVNC are in the
include/subdirectory of the project. -
The file
util.jsprovides theUtil.load_scripts()function which can be used to dynamically included other files required for basic noVNC functionality. The global variableINCLUDE_URIis used as the URL prefix for the other noVNC files. The value ofINCLUDE_URIdefaults toinclude/. -
The file
ui.jshas a load() routine UI that will callUtil.load_scripts()to load all the other required scripts and will also initialize the basic noVNC UI and provide default callback handlers. -
The file
base.cssprovides basic styling that is compatible with the UI in vnc.html. The filesblack.cssandblue.cssprovide an alternate styling. -
See
vnc.htmlfor a fleshed out working example with a UI. -
See
vnc_auto.htmlfor a working example that does not useui.js. It statically defines the UI and provides callback functions all on one page.vnc_auto.htmltakes host, port and password settings from the URL query string and automatically connects as soon as the page loads.