Davidacevedo (Talk | contribs) |
Davidacevedo (Talk | contribs) |
||
Line 104: | Line 104: | ||
} | } | ||
#color1 { | #color1 { | ||
+ | opacity: 0; | ||
left: 48%; | left: 48%; | ||
top: 54.5%; | top: 54.5%; | ||
Line 113: | Line 114: | ||
} | } | ||
#color2 { | #color2 { | ||
+ | display: none; | ||
left: 56%; | left: 56%; | ||
top: 54.5%; | top: 54.5%; | ||
Line 122: | Line 124: | ||
} | } | ||
#color3 { | #color3 { | ||
+ | display: none; | ||
left: 48%; | left: 48%; | ||
top: 63%; | top: 63%; | ||
Line 131: | Line 134: | ||
} | } | ||
#color4 { | #color4 { | ||
+ | display: none; | ||
left: 56%; | left: 56%; | ||
top: 63%; | top: 63%; | ||
Line 270: | Line 274: | ||
if (event.relatedTarget.id == "alan") { | if (event.relatedTarget.id == "alan") { | ||
document.getElementById(draggableElementID).style.display = "none"; | document.getElementById(draggableElementID).style.display = "none"; | ||
− | document.getElementById(" | + | document.getElementById("color1").css("opacity","1"); |
} else if (event.relatedTarget.id == "esteban") { | } else if (event.relatedTarget.id == "esteban") { | ||
document.getElementById(draggableElementID).style.display = "none"; | document.getElementById(draggableElementID).style.display = "none"; | ||
− | document.getElementById(" | + | document.getElementById("color2").css("opacity","1"); |
} else if (event.relatedTarget.id == "acebae") { | } else if (event.relatedTarget.id == "acebae") { | ||
document.getElementById(draggableElementID).style.display = "none"; | document.getElementById(draggableElementID).style.display = "none"; | ||
− | document.getElementById(" | + | document.getElementById("color3").css("opacity","1"); |
} else if (event.relatedTarget.id == "sofi") { | } else if (event.relatedTarget.id == "sofi") { | ||
document.getElementById(draggableElementID).style.display = "none"; | document.getElementById(draggableElementID).style.display = "none"; | ||
− | document.getElementById(" | + | document.getElementById("color3").css("opacity","1"); |
− | + | ||
− | + | ||
− | + | ||
} | } | ||
//console.log("d"); | //console.log("d"); |
Revision as of 05:35, 14 October 2018