vis_files/init.js
/// Initialises everything before the app is started
Initialises everything before the app is started
Initialises everything before the app is started
function init()
{
	if(!jsonstr){
		ById("loading").innerHTML = "visBEEPmbp must be loaded from the output directory of an analysis";
		return;
	}
	visjson = JSON.parse(jsonstr);
	menu_structure();     
	init_page();          
	init_canvas();        
	init_spatial_map();   
	init_compmodel();     
	init_paramlink();     
	init_mouse_key();     
	init_variables();     
	init_clickable_map(); 
	initdone = 1;
	buttoninit();
}
function init ( ) { if ( ! jsonstr ) { ById ( "loading" ) . innerHTML = "visBEEPmbp must be loaded from the output directory of an analysis" ; return ; } visjson = JSON . parse ( jsonstr ) ; menu_structure ( ) ; init_page ( ) ; init_canvas ( ) ; init_spatial_map ( ) ; init_compmodel ( ) ; init_paramlink ( ) ; init_mouse_key ( ) ; init_variables ( ) ; init_clickable_map ( ) ; initdone = 1 ; buttoninit ( ) ; }
Initialises everything before the app is started
Initialises everything before the app is started
//pr(jsonstr.substr(6960492-400,800)); // Initialises the menu structure on the left // Initialises HTML elements on the page // Initialises canvases for plotting results // Initialises the spatial maps // Initialises the compartmental model // Initialises links gor  // Initialises input operations using the mouse and keys // Initialises various parameters // Initialises clickable maps