Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (23 sloc) 511 Bytes
<!doctype html>
<html>
<head>
<title>Hello Dialog</title>
<link href="build/build.css" rel="stylesheet">
<script src="build/build.js"></script>
</head>
<body>
<h1>Hello Dialog</h1>
<button id="button">Open</button>
<script>
var Dialog = require('dialog');
var dom = require('dom');
dom('#button').on('click', openDialog);
function openDialog(){
var dialog = new Dialog('Hello World', 'Welcome human!')
.closable()
.modal();
dialog.show();
}
</script>
</body>
</html>