This repository was archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmailchimp.html
More file actions
49 lines (43 loc) · 2.04 KB
/
mailchimp.html
File metadata and controls
49 lines (43 loc) · 2.04 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
<!DOCTYPE html>
<html>
<head>
<base target="_top" />
</head>
<body>
<? var data = LibMailchimpHTML.getData('All Programs!A:Q'); ?>
<? if (Array.isArray(data) && data.length) { ?>
<h3>Contents</h3>
<p>To be pasted in after interesting tools:</p>
<textarea id="code" name="code" rows="5" cols="50">
<? for (var row in data) { ?>
<tr>
<td style="vertical-align: top; width: 12px;"><span style="display:block; font-size:15px; margin-left:2px; margin-right:4px; width:12px"><em>β</em></span></td>
<td><a href="<?= data[row]['URL']; ?>" target="_blank"><strong><?= data[row]['Tool/Product/Project'].trim(); ?></strong></a> – <?= data[row]['What is it?'].trim(); ?></td>
</tr>
<? } ?>
<tr>
<td style="vertical-align: top; width: 12px;"><span style="display:block; font-size:16px; margin-left:2px; margin-right:4px; width:12px">></span></td>
<td><a href="https://podcast.console.dev" target="_blank"><strong>Podcast</strong></a> – Topic, with Guest (Org).</td>
</tr>
</tbody>
</table>
<hr style="border: none; border-top: none; padding-top: 6px; padding-bottom: 12px;" />
</textarea>
<h3>Content</h3>
<textarea id="code" name="code" rows="5" cols="50">
<? for (var row in data) { ?>
<h2><a href="<?= data[row]['URL']; ?>" target="_blank"><strong><?= data[row]['Tool/Product/Project'].trim(); ?></strong></a><? if (!data[row]['Tool/Product/Project'].includes(data[row]['Company/Org'])) { ?>, from <?= data[row]['Company/Org'].trim(); ?><? } ?></h2>
<h4><?= data[row]['What is it?'].trim(); ?></h4>
<span style="font-family:courier new,courier,lucida sans typewriter,lucida typewriter,monospace"><?= data[row]['Category']; ?>, <?= data[row]['Type']; ?>, <?= data[row]['Access']; ?> Access</span>
<? if (row < (data.length - 1)) { ?>
<hr style="border: none; border-top: none; padding-top: 6px;" />
<? } else { ?>
<hr style="border: none; border-top: none; padding-top: 6px; padding-bottom: 12px;" />
<? } ?>
<? } ?>
</textarea>
<? } else { ?>
<p>No items scheduled.</p>
<? } ?>
</body>
</html>