Reading from the DOM in Mithril
by basti1012
HTML
<div id="alert">
</div>
Babel + JSX
var style='#alert{position :absolute;height:25%;width:25%;top : 50%;left : 50%;transform : translate(-50%,-50%);padding:2%;border: 1px solid black;box-shadow : 0 0 1em black;background:#aaaaaa;}#button{position:absolute;bottom:0px;width:100%;background:yellow; }';
$('<style type="text/css">' + style + '</style>').appendTo($('head'));
var h = document.getElementById("alert").offsetWidth/2;
document.getElementById('alert').innerHTML='<div id="button" ><center><button id="close"style="position: absolute;bottom:5%;" >Schliessen</button> </center></div>';