-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (126 loc) · 3.7 KB
/
Copy pathindex.html
File metadata and controls
141 lines (126 loc) · 3.7 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html>
<head>
<title>logdown.js</title>
<link rel="icon" type="image/png" href="https://cdn.rawgit.com/caiogondim/logdown.js/master/img/favicon.png" />
<style>
html {
height: 100%;
}
body {
margin: 0;
height: 100%;
}
h1 {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 300;
text-transform: uppercase;
color: #333333;
padding: 20px;
display: inline-block;
border: 2px solid #333333;
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
text-rendering: optimizelegibility;
text-align: center;
}
.fork-on-github {
background-color: #999999;
color: #FFFFFF;
text-transform: uppercase;
position: absolute;
text-decoration: none;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 300;
padding: 15px;
transform: rotate(45deg);
width: 300px;
top: 75px;
right: -65px;
text-align: center;
}
</style>
</head>
<body>
<h1 class="open-devtools">Open your devtools</h1>
<a
href="https://github.com/caiogondim/logdown"
class="fork-on-github"
target="_blank"
>
Fork me on GitHub
</a>
<script>
localStorage.debug = '*'
</script>
<script src="./dist/logdown.js"></script>
<script>
var demo = logdown('demo')
function showLogMessages() {
var gap = 2000
var i = 1
var timeout
demo.log('Initializing demo')
timeout = i * gap
i += 1
setTimeout(function() {
var log1 = logdown('foo:bar')
log1.log('Lorem *ipsum* dolor sit _amet_ foo bar')
log1.warn('The method `foo()` is deprecated. You should use `bar()`')
}, timeout)
timeout = i * gap
i += 1
setTimeout(function() {
var log2 = logdown('foo:quz')
log2.log('Lorem *ipsum* dolor sit _amet_ foo bar')
log2.warn('The method `foo()` is deprecated. You should use `bar()`')
}, timeout)
timeout = i * gap
i += 1
setTimeout(function() {
var log3 = logdown('baz')
log3.info('Sit viderer eripuit tincidunt an')
log3.error('The method `dolor()` is no longer supported.')
}, timeout)
timeout = i * gap
i += 1
setTimeout(function() {
var log4 = logdown('corge')
log4.log('Id ius atqui interpretaris. Usu ea *dolor* alterum labores')
log4.warn('Simul *nonumes* qui ei.')
}, timeout)
timeout = i * gap
i += 1
setTimeout(function() {
var log4 = logdown('grault')
log4.log('Molestie nominati _recteque_ no eam, qui *ei* putant delicatissi')
log4.log('Cum at `delenit()` *apeirian* forensibus')
}, timeout)
timeout = i * gap
i += 1
setTimeout(function() {
var log6 = logdown('waldo')
log6.log('Molestie nominati _recteque_ no eam, qui *ei* putant delicatissi', {foo: 1, bar: 2})
log6.log('Cum at delenit *apeirian* forensibus', [1, 2, 3, 4, 5])
}, timeout)
timeout = i * gap
i += 1
setTimeout(function() {
demo.log('Demo finished')
}, timeout)
}
showLogMessages()
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga')
ga('create', 'UA-60987420-1', 'auto')
ga('send', 'pageview')
</script>
</body>
</html>