debug/example/browser.html
Nathan Rajlich 7df6b473ca example: fix "browser.html" example
To use new browserify standalone build
2014-06-01 10:41:09 -07:00

26 lines
461 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>debug()</title>
<script src="../dist/debug.js"></script>
<script>
// type debug.enable('*') in
// the console and refresh :)
var a = debug('worker:a');
var b = debug('worker:b');
setInterval(function(){
a('doing some work');
}, 1000);
setInterval(function(){
b('doing some work');
}, 1200);
</script>
</head>
<body>
</body>
</html>