You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 06-Modal/starter/script.js
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,20 @@ const OpenModal = function () {
13
13
constcloseModal=function(){
14
14
modal.classList.add('hidden');// Quando o botão for clicado a classe será adicionada novamente.
15
15
overlay.classList.add('hidden');
16
+
16
17
};
17
18
18
19
for(leti=0;i<btnsOpenModal.length;i++){
19
20
btnsOpenModal[i].addEventListener('click',OpenModal);// Não invocamos a função pois o javaScript vai fazer isso automaticamente quando o botão for clicado.
0 commit comments