-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.js
1 lines (1 loc) · 1.48 KB
/
config.js
1
(function () {var a={},b=[{label:"Good",color:"#009900"},{label:"Satisfactory",color:"#59B300"},{label:"Moderate",color:"#DFDF31"},{label:"Poor",color:"#E68A00"},{label:"Very Poor",color:"#E82C0C"},{label:"Severe",color:"#A52A2A"}],c={pm25:[0,30,60,90,120,250,1e3],pm10:[0,50,100,250,350,430,1e3],so2:[0,40,80,380,800,1600,2e3],no:[0,40,80,180,280,400,1e3],nox:[0,40,80,180,280,400,1e3],no2:[0,40,80,180,280,400,1e3],o3:[0,50,100,168,280,400,1e3],co:[0,1,2,10,17,34,50],aqi:[0,50,100,200,300,400,500]},d={pm25:"\xB5g/m3",pm10:"\xB5g/m3",so2:"\xB5g/m3",no2:"\xB5g/m3",nox:"\xB5g/m3",benzene:"\xB5g/m3",o3:"\xB5g/m3",nh3:"\xB5g/m3",co:" mg/m3",co2:"\xB5g/m3",no:" \xB5g/m3",temperature:"\xB0C"},e={pm25:"\xB5g/m<sup>3</sup>",pm10:"\xB5g/m<sup>3</sup>",so2:"\xB5g/m<sup>3</sup>",no2:"\xB5g/m<sup>3</sup>",nox:"\xB5g/m<sup>3</sup>",benzene:"\xB5g/m<sup>3</sup>",o3:"\xB5g/m<sup>3</sup>",nh3:"\xB5g/m<sup>3</sup>",co:" mg/m<sup>3</sup>",co2:"\xB5g/m<sup>3</sup>",no:" \xB5g/m<sup>3</sup>",temperature:"\xB0C"},f={pm25:"Particulate matter 2.5",pm10:"Particulate matter 10",so2:"Sulphur dioxide",nox:"Nitrogen oxides",o3:"Ozone",co:"Carbon monoxide"},g={pm25:"PM 2.5",pm10:"PM 10",so2:"SO2",nox:"NOX",o3:"O3",co:"CO"};a={POLLUTANT_LABEL_COLOR_REF:b,POLLUTANT_RANGE_REF:c,POLLUTANT_UNITS:d,POLLUTANT_FULL_NAME:f,POLLUTANT_OPTIONS:g,POLLUTANT_UNITS_WITH_TAGS:e};if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=a}else if(typeof define==="function"&&define.amd){define(function(){return a})}})();