Last active
January 26, 2016 10:13
Revisions
-
kraftner revised this gist
Jan 26, 2016 . 1 changed file with 1 addition and 1 deletion.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 @@ -32,7 +32,7 @@ <body> <div id="back">back</div> <iframe id="iframe" src="http://bl.ocks.org/kraftner/raw/d59ff5f45d8d178cf5e7/"></iframe> <div id="top">TOP</div> <script> var el = document.getElementById("top"); -
kraftner revised this gist
Jan 22, 2016 . 1 changed file with 2 additions and 2 deletions.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 @@ -32,12 +32,12 @@ <body> <div id="back">back</div> <iframe id="iframe" src="http://bl.ocks.org/kraftner/raw/fb2d46bb21b91592bea5/"></iframe> <div id="top">TOP</div> <script> var el = document.getElementById("top"); el.addEventListener("click", function( event ) { console.log('outside'+Math.random()); }, false); </script> -
kraftner revised this gist
Jan 22, 2016 . 1 changed file with 28 additions and 16 deletions.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 @@ -1,29 +1,41 @@ <!DOCTYPE html> <head> <meta charset="utf-8"> <style class="cp-pen-styles"> #back { width: 100vw; height: 100vh; } #iframe { position:fixed; top:300px; left:300px; background-color:red; width:300px; height:300px; } #top { position:fixed; top:350px; left:350px; width:100px; height:100px; } </style> </head> <body> <div id="back">back</div> <iframe id="iframe" src="http://bl.ocks.org/kraftner/raw/fea754a3dd36df736403/"></iframe> <div id="top">TOP</div> <script> var el = document.getElementById("top"); el.addEventListener("click", function( event ) { console.log('iframe'+Math.random()); }, false); -
kraftner revised this gist
Jan 22, 2016 . 1 changed file with 1 addition and 1 deletion.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 @@ -7,7 +7,7 @@ } #top { position:fixed; top:300px; left:300px; background-color:red; -
kraftner revised this gist
Jan 22, 2016 . 1 changed file with 2 additions and 2 deletions.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 @@ -20,14 +20,14 @@ </head> <body> <div id="all">back</div> <iframe id="top" src="http://bl.ocks.org/kraftner/raw/fea754a3dd36df736403/"></iframe> <script> var el = document.getElementById("all"); el.addEventListener("click", function( event ) { console.log('iframe'+Math.random()); }, false); </script> </body> </html> -
kraftner revised this gist
Jan 22, 2016 . 1 changed file with 13 additions and 14 deletions.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 @@ -2,20 +2,19 @@ <head> <meta charset="utf-8"> <style class="cp-pen-styles">#all { width: 100vw; height: 100vh; } #top { position:absolute; top:300px; left:300px; background-color:red; width:300px; height:300px; } </style> </head> -
kraftner revised this gist
Jan 22, 2016 . 1 changed file with 30 additions and 6 deletions.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 @@ -1,10 +1,34 @@ <!DOCTYPE html> <head> <meta charset="utf-8"> <style class="cp-pen-styles">#all { width: 100vw; height: 100vh; } #top { position:absolute; top:300px; left:300px; background-color:red; width:300px; height:300px; } </style> </head> <body> <script> var el = document.getElementById("all"); el.addEventListener("click", function( event ) { console.log('iframe'+Math.random()); }, false); </script> <div id="all">back</div> <iframe id="top" src="http://bl.ocks.org/kraftner/raw/fea754a3dd36df736403/"></iframe> </body> </html> -
kraftner revised this gist
Jan 22, 2016 . 1 changed file with 1 addition and 1 deletion.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 @@ -2,7 +2,7 @@ <meta charset="utf-8"> <body> <script> document.getElementsByTagName("body")[0].addEventListener("click", function( event ) { console.log('iframe'); // display the current click count inside the clicked div event.target.innerHTML = "click count: " + event.detail; -
kraftner created this gist
Jan 22, 2016 .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,10 @@ <!DOCTYPE html> <meta charset="utf-8"> <body> <script> document.getElementsByTagName("body").addEventListener("click", function( event ) { console.log('iframe'); // display the current click count inside the clicked div event.target.innerHTML = "click count: " + event.detail; }, false); </script>