-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdefaults.js
59 lines (48 loc) · 1.77 KB
/
defaults.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
let debug=false; //development mode ON/OFF
/*
Default configuration and debug mode (backend and frontend)
this file is intended to help development
note: remember to change Vue.js to production in file "index.html"
*/
/*frontend elements visibility*/
ecam_logo.visible = 1;
linear_menu.visible = 1;
stages_menu.visible = 0;
/*add input values*/
if(debug){
/*add a not used constant*/
Cts.ct_unused={value:0,descr:"not used constant",unit:"uses"};
/*input values*/
Global.General.Country="Afghanistan";
select_scenario.set_variables_from_selected_country();
/*add substages*/
Structure.filter(s=>s.sublevel).forEach(stage=>{
stages_menu.add_substage(stage.level, stage.sublevel);
//stages_menu.add_substage(stage.level, stage.sublevel);
});
/*default input values*/
Global.Water.Distribution[0].wsd_serv_pop=100;
Global.Water.ws_resi_pop =1000;
Global.Waste.Treatment[0].wwt_serv_pop =100;
Global.Waste.ww_resi_pop =1000;
/*default energy consumption in substages*/
let energy=1;//kWh
Structure.filter(s=>s.sublevel).forEach(stage=>{
Global[stage.level][stage.sublevel].forEach(ss=>ss[stage.prefix+'_nrg_cons']=energy++);
});
/*add another scenario*/
let s = ecam.new_scenario();
compare_scenarios.scenarios_compared.push(s);
/*default filters on for tier B*/
//tier_b.filters_on=true;
/*default language*/
//Languages.current="null";
/*tutorial tips*/
landing.include_tutorial_tips=false;
/*default page*/
//go_to('Water','Abstraction'); //"inventory"
//variable.view('wwt_slu_sto_EF'); //variable detailed info
//ecam.show('select_scenario');
ecam.show("more");
/**/
}