Skip to content
Andreas Plesch edited this page Nov 17, 2016 · 2 revisions

Main.js

entry, setup

onload handler: creates x3dcanvas and stores it in global x3dom.canvases creates runtime object loads x3dcanvas with attached runtime

dispatches 'load' event (old style)

redefines getElementById, presumably to make sure it works on all elements

add load and related listeners to window