-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
25 lines (25 loc) · 7.38 KB
/
index.js
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
module.exports.generate = (
title = "title",
version = "1.0.0",
body = '<a href="/api">go to /api</a>'
) => {
return `
<html>
<head>
<title>${title}</title>
<style type="text/css">
* {
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<div style="padding-left: 20px; padding-top: 20px;">
<a href="https://willowgreen.io/"><img width="115px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL8AAABaCAYAAADpY4c3AAAT9klEQVR4AezYA7AsVxQF0H62Ytu2bdtOSrHLKcS2bdu2bdvD7+eZ6azYHk+fqlXmufvuRlBNE0000VwRC4Krvg6CK2P1tNHHdMzGvCzIQj+YnzmZkclpo56A6tnJlbEfNdHNNMz6m30syPzMxcxMRRdN5baPaC6P/3ig9fQxH+uyNydwNQ/xMu/zBXFSpEmR5Cs+4lUe4goOY1sWpY86Ki3ozczMGuzD6dzGs7zDZ3+yj6/5hLd4mjs4j0PYnmWZkdboUhRrrk39eKgNTM3KHMgVvEicYcI8yZDmBc5ic6ajjnINfBuLczC38TGDhHmSZQIfch8nsA3z0R5cFY8uQ4FabC524VLeZBJhEY3wFieyFM0EwVHZ0u7n6u8CNxU7cycpcoRFkiHGQxzGakz+/0oiCn0Ds7IbN/AFGcIykOISlqGBUpXC5OzBi4wSloFJvMixrEzXP389ilq+kzU4hw/JEJapBMcyAwHF2lMj6/Eoo4RlagKPsC+zU/+7HUWhjxObml15gImEFSLHc6xFPYUuhyk5lnGEFSLLx5zK0jQTBFdRs6G/Cq3J/rzEKGGFSrAPLRQq+PNyF1nCCpXiClb7aVfXxmuu6afhAF4v0GHm6CfGezzPQ9zBjVzPjdzBw7zIh6T+x1+jAY6gg3wHf0le/B/NO4kveZOnuJdbuIHruYV7eILX+JSxjBAWwHiuYWWaqYl3+h5240UyeXysjuU1buBwd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