Last active
February 25, 2020 04:26
-
-
Save lfernandez55/08fdada031b45fdc961e432bfd4f6fa2 to your computer and use it in GitHub Desktop.
Revisions
-
lfernandez55 revised this gist
Feb 25, 2020 . No changes.There are no files selected for viewing
-
lfernandez55 created this gist
Feb 25, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ Evolve 1st Day Demos -------------------- A [Pen](https://codepen.io/lfernandez55/pen/rNVjZGN) by [lfernandez55](https://codepen.io/lfernandez55) on [CodePen](https://codepen.io). [License](https://codepen.io/lfernandez55/pen/rNVjZGN/license). This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,51 @@ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title></title> </head> <body> <div id="myid">aaa</div> <table> <tr> <td id="myTableId">ddddd</td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> </body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ document.getElementById('myDiv').addEventListener("click",foo) function foo(){ alert("Foo!") } document.getElementById('myTableId').addEventListener("click",function(){ doit(this) }) function doit(elem){ console.log(elem.innerHTML) elem.style.backgroundColor="aqua" console.log(this.row) } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ tr,td{ border:1px solid black; padding:10px } table{ border-collapse:collapse }