Commit 42f0fb7a authored by Martins Berzins's avatar Martins Berzins
Browse files

Added colors depending on event type

parent 5b4ae11e
......@@ -188,6 +188,26 @@ $(document).ready(function() {
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
switch(info.type) {
case "Birthday":
el[0].style.backgroundColor = "#00b300"
break;
case "Appointment":
el[0].style.backgroundColor = "#0099cc"
break;
case "Lecture":
el[0].style.backgroundColor = "#cc00cc"
break;
case "Reminder":
el[0].style.backgroundColor = "#e6b800"
break;
case "Meeting":
el[0].style.backgroundColor = "#ff5050"
break;
}
el[0].onclick = function() {
modal.style.display = "block";
document.getElementById("evTitle").textContent = info.title
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment