The prophecy is true
by Julien Roche
HTML
<script src="https://cdn.rawgit.com/mikeflynn/egg.js/master/egg.min.js"></script>
<h1>Just type "prophecy"</h1>
CSS
html, body {
background-color: white;
}
.prophecy-is-true {
border: 1px solid #eaeaea;
height: 315px;
left: 50%;
margin-left: -280px;
margin-top: -157px;
position: absolute;
top: 50%;
width: 560px;
z-index: 999999999999999999999;
}
Babel + JSX
let prophecy = `<iframe width="560" height="315" src="https://www.youtube.com/embed/uwmeH6Rnj2E?rel=0&controls=0&showinfo=0&autoplay=1" frameborder="0" allowfullscreen></iframe>`;
let egg = new Egg();
egg
.addCode('p,r,o,p,h,e,c,y', () => {
let element = document.createElement('div');
element.classList.add('prophecy-is-true');
element.innerHTML = prophecy;
document.body.appendChild(element);
});
egg.listen();