Skip to content

Commit

Permalink
Add demo html
Browse files Browse the repository at this point in the history
  • Loading branch information
kapetan committed Apr 13, 2015
1 parent 7f75523 commit a649a4f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,3 +1,3 @@
node_modules
demo
demo/index.js
.DS_Store
2 changes: 1 addition & 1 deletion .npmignore
@@ -1 +1 @@
demo
demo
23 changes: 23 additions & 0 deletions demo/index.html
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Title bar demo</title>
</head>
<body>
<script type="text/javascript" src="index.js"></script>
<script type="text/javascript">
var log = function(name) {
return function(e) {
console.log(name, e);
};
};

titlebar()
.appendTo(document.body)
.on('close', log('close'))
.on('minimize', log('minimize'))
.on('fullscreen', log('fullscreen'))
.on('maximize', log('maximize'));
</script>
</body>
</html>

0 comments on commit a649a4f

Please sign in to comment.