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 1
Expand file tree
/
Copy pathmailchimp.html
More file actions
46 lines (40 loc) · 2.02 KB
/
mailchimp.html
File metadata and controls
46 lines (40 loc) · 2.02 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
<!DOCTYPE html>
<html>
<head>
<base target="_top" />
</head>
<body>
<? var data = LibMailchimpHTML.getData('All Tools!A:O'); ?>
<? if (Array.isArray(data) && data.length) { ?>
<h3>Contents</h3>
<textarea id="code" name="code" rows="5" cols="50">
<table style="line-height: 150%; border-collapse:separate; border-spacing: 0 6px">
<tbody>
<? for (var row in data) { ?>
<tr>
<td style="vertical-align: top; width: 12px;"><strong style="display:block; font-size:12px; font-weight:bold; margin-right:4px; margin-top:1px; width:12px">+</strong></td>
<td><a href="<?= data[row]['URL']; ?>"><strong><?= data[row]['Tool/Product/Project'].trim(); ?></strong></a> – <?= data[row]['What is it?'].trim(); ?></td>
</tr>
<? } ?>
</textarea>
<h3>Content</h3>
<textarea id="code" name="code" rows="5" cols="50">
<? for (var row in data) { ?>
<h2><a href="<?= data[row]['URL']; ?>"><strong><?= data[row]['Tool/Product/Project'].trim(); ?></strong></a></h2>
<h4><?= data[row]['What is it?'].trim(); ?></h4>
<p><strong>What we like:</strong> <?= data[row]['What we like'].trim(); ?></p>
<p><strong>What we don't like:</strong> <?= data[row]['What we dislike'].trim(); ?></p>
<? if (data[row]['Interview']) { ?><p><strong>Interview:</strong> EXCITING WORDS. <a href="https://console.dev<?= data[row]['Interview']; ?>">Read the interview</a>.</p><? } ?>
<? if (data[row]['Sponsored']) { ?><p><strong>✦ <em style="font-size:14px; font-style:italic">Sponsored:</em></strong> <em style="font-size:14px; font-style:italic">All reviews are editorially independent, and partners must meet our <a href="https://console.dev/selection-criteria/">selection criteria</a>.</em></p><? } ?>
<? 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>