Line 12: | Line 12: | ||
$("div.modal").click( function(){ | $("div.modal").click( function(){ | ||
var cl = this.getAttribute('class').split(" ")[1] | var cl = this.getAttribute('class').split(" ")[1] | ||
+ | console.log(cl) | ||
var modal = document.getElementById( cl + "Modal" ); | var modal = document.getElementById( cl + "Modal" ); | ||
modal.style.display = "none"; | modal.style.display = "none"; |
Revision as of 12:16, 17 October 2016