-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (40 loc) · 1.23 KB
/
index.html
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Logger Demonstration - Version 0.43</title>
<!-- Include jQuery -->
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<!-- Include Files for Logger (log.css & log.js) //-->
<link rel="stylesheet" type="text/css" href="log.css" />
<script src="log.js"></script>
<!-- Logger Demo -->
<script>
$(document).ready(function() {
//Create a new Logger with an id of "Test" and a var name of "logger" - target the "footer"
var logger = new Log("Test", "footer");
//Write a test message with overwrite == false
logger.w("Test Message", false);
//Write a second test message
logger.w("Second Test Message", false);
//Create a second Logger with an id of "Test2" and a var name of "logger2" - target the "footer"
var logger2 = new Log("Test2", "footer");
//Create a third Logger with an id of "Test3" and a var name of "logger3" - do not target any DOM element
var logger3 = new Log("Test3");
});
</script>
</head>
<body>
<div id="page">
<div id="header">
<h1>Page Title</h1>
</div>
<div id="main">
<p>Main Section</p>
</div>
<div id="footer">
<p>Footer</p>
</div>
</div>
</body>
</html>