Mini Kabibi Habibi
(function (wa) {
var common = wa.Common = wa.Common || {};
common.getColorAndStatus = function(score){
let color="red", status="WA_ST_SCORE_LOW"
if(score<400){
color="red"
status="WA_ST_SCORE_LOW"
}else if(score>=400 && score<600){
color="yellow"
status="WA_ST_SCORE_FAIR"
}else if(score>=600 && score<700){
color="green"
status="WA_ST_SCORE_GOOD"
}
else if(score>=700 && score<850){
color="blue"
status="WA_ST_SCORE_VERY_GOOD"
}
else if(score>=850){
color="purple"
status="WA_ST_SCORE_EXCELLENT"
}
return {color,status};
};
}(window.WebAdvisor = window.WebAdvisor || {}));
//42FF800AA52229FA54FB401C0DB60D7682FDD00AD7944CA52B8B6984388BD3A0CB4739C801E140C72256C37668A350F574C8B7A3EAB946162A808AC0937F02BA++