Subversion Repositories eFlore/Applications.cel

Rev

Rev 3857 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3845 idir 1
import {utils} from './WidgetsSaisiesCommun.js';
2
import {WidgetsSaisiesASL} from './WidgetsSaisiesASL.js';
3
import {ReleveASL} from './ReleveASL.js';
4
import {PlantesEtLichensASL} from './PlantesEtLichensASL.js';
5
 
6
export const initialiserModule = function(nomSquelette = 'arbres') {
7
	const proprietes = $( '#zone-' + nomSquelette).data();
8
	switch( nomSquelette ) {
9
		case 'plantes' :
10
		case 'lichens' :
11
			const plantesEtLichens = new PlantesEtLichensASL(proprietes);
12
 
13
			plantesEtLichens.init();
14
			break;
15
		case 'arbres' :
16
		default :
17
			const arbres = new ReleveASL(proprietes);
18
		 	arbres.init();
19
		break;
20
	}
21
};
22
 
23
$( document ).ready( function() {
24
	// InitialisationASL.prototype = new WidgetsSaisiesCommun(widgetProp);
25
	const widget = new WidgetsSaisiesASL();
26
	widget.init();
27
 
28
	utils.init();
29
});