debug/examples/browser/colors.html
2017-09-13 15:40:33 +02:00

29 lines
649 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>debug()</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="../../dist/debug.js"></script>
<script>
debug.enable('*')
for (var i=0; i < debug.colors.length; i++) {
const d = debug('example:' + i);
d('The color is %o', d.color);
}
</script>
<style type="text/css">
body {
padding-top: 100px;
text-align: center;
font-family: sans-serif;
}
</style>
</head>
<body>
Open your
<strong>Web Inspector</strong>
to see the <code>debug</code> output
</body>
</html>