File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 < link rel ="stylesheet " href ="styles.css ">
77</ head >
88< body >
9- < form id ="form ">
9+ <!-- < form id="form">
1010 <input id="input" type="text">
1111 <input type="submit" value="enviar">
12+
1213 </form>
13-
14+ <button id="button">Click me</button> -->
15+ .gallery_item{$}*9
16+
1417 < script src ="script.js "> </ script >
1518</ body >
1619</ html >
Original file line number Diff line number Diff line change 11const form = document . getElementById ( 'form' ) ;
22const input = document . getElementById ( 'input' ) ;
3+ const button = document . getElementById ( 'button' ) ;
34
45// input.addEventListener('keyup',(e)=>{
56// console.log(e);
@@ -8,9 +9,6 @@ const input = document.getElementById('input');
89// addEventListener('click',(e)=>{
910// console.log(e.clientX,e.clientY);
1011// })
11- input . addEventListener ( 'keyup' , ( e ) => {
12- if ( e . key === 'x' ) {
13- console . log ( e . key ) ;
14- }
15-
12+ button . addEventListener ( 'click' , ( e ) => {
13+ console . log ( e . target ) ;
1614 } ) ;
You can’t perform that action at this time.
0 commit comments