-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (28 loc) · 796 Bytes
/
index.html
File metadata and controls
33 lines (28 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<meta charset="utf-8"/>
<title>Tee-Console.js Tester</title>
<script type="text/javascript" src="tee-console.js"></script>
</head>
<body>
<button onClick="log();" >log</button>
<button onClick="info();" >info</button>
<button onClick="warn();" >warn</button>
<button onClick="error();" >error</button>
<script>
console.setMyConsoleAction((message) => { alert(message) });
function log() {
console.log('this is a log message');
}
function info() {
console.info('this is an info message');
}
function warn() {
console.warn('this is a warning message');
}
function error() {
console.error('this is an error message');
}
</script>
</body>
</html>