mirror of
https://github.com/debug-js/debug.git
synced 2025-12-08 20:59:48 +00:00
29 lines
649 B
HTML
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>
|