michael-spengler/Tracer-wwi19dsa

dynamic v-card

Closed this issue · 3 comments

red or green ->

risk -> checkRisk()
status -> localbase variable (TracerDB)
last check -> new Date() last time refresh button clicked

Added dynamic value change.
Colorchange is still open!

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.

Card changes color depending on the risk status as it should do.