dynamic v-card
Closed this issue · 3 comments
BennerLukas commented
red or green ->
risk -> checkRisk()
status -> localbase variable (TracerDB)
last check -> new Date() last time refresh button clicked
Madhour commented
Added dynamic value change.
Colorchange is still open!
lukasbach00 commented
Function seems to work:
risk_calculation(){
if(this.status == "Infiziert"){
document.getElementById("risk").style.color = '#bc1200'
}
else{
document.getElementById("risk").style.color = '#287A42'
}
},
but the card does not change the css atm. Changes are commited.
lukasbach00 commented
Card changes color depending on the risk status as it should do.