API Docs for: 1.0

src/js/init.js

/*! @file init.js */

/*
 * part of the 'Transfinite Ordinal Calculator'
 * author: Claudio Kressibucher
 * license: GNU LGPL
 */

/*
 * Initialization of object oGui.
 * This must be the last file that's loaded.
 */

/* JSHINT global declaration */
/*global oGui:true, config: true, go:true */

/*
 * Function called as onload event handler.
 * Will initialize the global object oGui
 * and perhaps call the initTest function
 * to run some initialization tests.
 */
window.onload = function initOnLoad() {
	// initialisation of global object oGui
	// needs all HTML content to be loaded
	oGui = go.initGui();
	oGui.update();

	// do initialisation tests if the app is configured to do that
	if (config.testFncOnInit){
		go.initTest();
	}
};