This file contains 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
/** | |
* Hover button | |
*/ | |
a { | |
font: 2em arial; | |
display: inline-block; | |
text-decoration: none; | |
color: #fff; | |
margin: 2em 0 0 2em; |
This file contains 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
// Use on webplatform.org to show prototype of how live code could work. | |
var el = document.querySelector('a[href="http://docs.webplatform.org/wiki/html"]'); | |
el.href="http://denbuzze.com/code/webplatform_codepen/"; | |
el.rel="lightbox"; | |
el.target="_blank"; | |
el.innerText="live example" | |
// Reload the lightbox |