for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
document.addEventListener('DOMContentLoaded', function(){
//Get Modal
var modal = document.getElementById('vd-modal');
//Get button that opens modal
var btn_detail = document.getElementById('btn-detail');
//get close span
var span_close = document.getElementsByClassName("close")[0];
// btn_detail onclick event
btn_detail.onclick = function(){
modal.style.display = "block";
}
// span_close onclick event
span_close.onclick = function(){
modal.style.display = "none";
//close when user clicks anywhere outside the modal
window.onclick = function(){
if(event.target == modal){
event
/** global: event */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
}, false);
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.