Last active
January 26, 2016 10:13
-
-
Save kraftner/816fad55b889f86347c3 to your computer and use it in GitHub Desktop.
NoScript Debug
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 characters
<!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/d59ff5f45d8d178cf5e7/"></iframe> | |
<div id="top">TOP</div> | |
<script> | |
var el = document.getElementById("top"); | |
el.addEventListener("click", function( event ) { | |
console.log('outside'+Math.random()); | |
}, false); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment