-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
120 lines (117 loc) · 5.42 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
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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Adze - JavaScript Logging Library</title>
<link rel="icon" type="image/png" href="docs/assets/favicon.png" />
<style>
html,
body {
font-size: 62.5%;
background-color: #fff;
font-family: arial;
}
.main {
text-align: center;
}
.main img {
width: 50%;
height: 50%;
}
h1,
h2 {
text-align: center;
}
h1 {
font-size: 4rem;
}
h2 {
font-size: 2.8rem;
}
p,
pre {
padding: 5rem;
font-size: 1.8rem;
}
</style>
<script type="importmap">
{
"imports": {
"./src": "./dist/index.js",
"picocolors": "./dist/functions/picocolors-dummy.js",
"@ungap/structured-clone": "/node_modules/@ungap/structured-clone/esm/index.js",
"date-fns/formatISO": "/node_modules/date-fns/formatISO.mjs",
"date-fns/format": "/node_modules/date-fns/format.mjs"
}
}
</script>
<script type="module">
import './dist/demo_funcs.js';
const sentences = [
'I just wanted to tell you I could see the love you have for your child by the way you look at her.',
'Love is not like pizza.',
'With a single flip of the coin, his life changed forever.',
'There was coal in his stocking and he was thrilled.',
'The view from the lighthouse excited even the most seasoned traveler.',
'He ran out of money, so he had to stop playing poker.',
"It took me too long to realize that the ceiling hadn't been painted to look like the sky.",
'They were excited to see their first sloth.',
'I was offended by the suggestion that my baby brother was a jewel thief.',
'I became paranoid that the school of jellyfish was spying on me.',
'There was no ice cream in the freezer, nor did they have money to go to the store.',
'The tears of a clown make my lipstick run, but my shower cap is still intact.',
"It's never comforting to know that your fate depends on something as unpredictable as the popping of corn.",
'David subscribes to the "stuff your tent into the bag" strategy over nicely folding it.',
'Cursive writing is the best way to build a race track.',
"For some unfathomable reason, the response team didn't consider a lack of milk for my cereal as a proper emergency.",
'The external scars tell only part of the story.',
'I don’t respect anybody who can’t tell the difference between Pepsi and Coke.',
'The manager of the fruit stand always sat and only sold vegetables.',
"That must be the tenth time I've been arrested for selling deep-fried cigars.",
'Some bathing suits just shouldn’t be worn by some people.',
'He learned the hardest lesson of his life and had the scars, both physical and mental, to prove it.',
'They wandered into a strange Tiki bar on the edge of the small beach town.',
'Fluffy pink unicorns are a popular status symbol among macho men.',
'Eating eggs on Thursday for choir practice was recommended.',
'The dead trees waited to be ignited by the smallest spark and seek their revenge.',
'Excitement replaced fear until the final moment.',
"I'd rather be a bird than a fish.",
"I'm confused: when people ask me what's up, and I point, they groan.",
"I've always wanted to go to Tajikistan, but my cat would miss me.",
'The light in his life was actually a fire burning all around him.',
'He dreamed of leaving his law firm to open a portable dog wash.',
'I received a heavy fine but it failed to crush my spirit.',
'Red is greener than purple, for sure.',
'He drank life before spitting it out.',
'The underground bunker was filled with chips and candy.',
'Harrold felt confident that nobody would ever suspect his spy pigeon.',
'He wore the surgical mask in public not to keep from catching a virus, but to keep people away from him.',
'Rock music approaches at high velocity.',
'The heat',
'I caught my squirrel rustling through my gym bag.',
'The chic gangster liked to start the day with a pink scarf.',
'Swim at your own risk was taken as a challenge for the group of Kansas City college students.',
"Yeah, I think it's a good environment for learning English.",
'We should play with legos at camp.',
'The near-death experience brought new ideas to light.',
"Most shark attacks occur about 10 feet from the beach since that's where the people are.",
'The balloons floated away along with all my hopes and dreams.',
'He found his art never progressed when he literally used his sweat and tears.',
'She had convinced her kids that any mushroom found on the ground would kill them if they touched it.',
];
function randomLog(logger, count = 1) {
for (let i = 0; i < count; i += 1) {
const methodIndex = Math.floor(Math.random() * 9);
const sentenceIndex = Math.floor(Math.random() * 50);
logger()[methods[methodIndex]](sentences[sentenceIndex]);
}
}
</script>
</head>
<body>
<div class="main">
<img src="docs/assets/logo.svg" />
<h2>Open up the console to see the tests.</h2>
</div>
</body>
</html>