-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharticle.html
More file actions
247 lines (239 loc) · 14.2 KB
/
article.html
File metadata and controls
247 lines (239 loc) · 14.2 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<script>document.documentElement.setAttribute('data-theme','light');</script>
<style>html{color-scheme:light}</style>
<title>Articles — Evidence-Based Supplement Science | SupplementScore</title>
<meta name="description" content="Browse 600+ evidence-based articles on supplements, drug interactions, safety recalls, and the science behind common health claims. All backed by peer-reviewed trials.">
<meta name="robots" content="index, follow">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%231F7A6B'/%3E%3Cpath d='M5 19C5 11 11 5 19 5C19 13 13 19 5 19Z' fill='%23F8F4ED'/%3E%3Cpath d='M5 19C9 15 13 11 19 5' stroke='%231F7A6B' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Mona+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/styles.css?v=20260527-zero-broken">
<style>
/* Article-page-only: narrower wrap for readability + category pill colors. */
.dt-wrap{max-width:840px}
.dt-cat{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 9px;border-radius:5px;margin-bottom:10px}
.dt-cat-guide{background:var(--t2bg);color:var(--t2tx)}
.dt-cat-breakthrough{background:var(--t1bg);color:var(--t1tx)}
.dt-cat-myth{background:var(--t3bg);color:var(--t3tx)}
.dt-cat-safety{background:var(--t4bg);color:var(--t4tx)}
.dt-cat-kids{background:rgba(190,24,93,.10);color:#9D174D}
.dt-meta{font-size:13px;color:var(--color-text-tertiary);margin-bottom:20px}
.dt-callout{background:var(--color-background-primary);border:1px solid var(--color-border-tertiary);border-left:3px solid var(--color-brand);border-radius:10px;padding:18px 20px;margin:14px 0}
.dt-callout p{margin:0;font-size:14px;line-height:1.55;color:var(--color-text-secondary)}
.sup-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.sup-list a{padding:10px 12px;background:var(--color-background-secondary);border:1px solid var(--color-border-tertiary);border-radius:10px;font-size:13.5px;color:var(--color-text-primary);text-decoration:none;display:flex;align-items:center;justify-content:space-between;gap:8px}
.sup-list a:hover{border-color:var(--color-brand);color:var(--color-brand)}
</style>
<link rel="canonical" href="https://supplementscore.org/article.html">
<script>
/* Dynamic canonical / noindex for the article SPA.
Static article files live at /a/<kebab-slug>.html — there's no
/a/<numeric-id>.html. So:
(a) /article.html?id=<kebab-slug> → canonical to /a/<slug>.html
(b) /article.html?id=<number> → noindex (legacy; no static counterpart at this path)
Updated 2026-05-20: was setting canonical to /a/<numeric-id>.html which 404s. */
(function(){
try {
var id = new URLSearchParams(location.search).get('id');
if (!id) return;
if (/^[a-z0-9-]+$/.test(id) && !/^\d+$/.test(id)) {
// Kebab slug — map to static file
var staticUrl = 'https://supplementscore.org/a/' + id + '.html';
var c = document.querySelector('link[rel="canonical"]');
if (c) c.href = staticUrl;
var og = document.querySelector('meta[property="og:url"]');
if (og) og.setAttribute('content', staticUrl);
} else {
// Numeric or non-slug — legacy form, noindex to keep Google's index clean
var m = document.createElement('meta');
m.name = 'robots';
m.content = 'noindex,follow';
document.head.appendChild(m);
}
} catch (_) {}
})();
</script>
<meta property="og:title" content="Articles | SupplementScore">
<meta property="og:description" content="Browse evidence-based articles on supplements, drug interactions, and the science behind common health claims.">
<meta property="og:url" content="https://supplementscore.org/article.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="SupplementScore">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Articles | SupplementScore">
<meta name="twitter:description" content="Browse evidence-based articles on supplements, drug interactions, and the science behind common health claims.">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"name": "Articles | SupplementScore",
"description": "Browse evidence-based articles on supplements, drug interactions, and the science behind common health claims.",
"url": "https://supplementscore.org/article.html",
"isPartOf": {
"@type": "WebSite",
"name": "SupplementScore",
"url": "https://supplementscore.org"
},
"publisher": {
"@type": "Organization",
"name": "SupplementScore"
}
}
</script>
<!-- SEO-BREADCRUMB:start -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://supplementscore.org/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Article",
"item": "https://supplementscore.org/article.html"
}
]
}
</script>
<!-- SEO-BREADCRUMB:end -->
<!-- Analytics: uncomment one line below to enable Plausible (privacy-friendly, no cookies, GDPR-clean).
Sign up at https://plausible.io and replace the data-domain if needed. -->
<script defer data-domain="supplementscore.org" src="https://plausible.io/js/script.js"></script>
<link rel="manifest" href="/manifest.webmanifest">
<link rel="apple-touch-icon" sizes="180x180" href="/icons/icon-180-apple.svg">
<meta name="theme-color" content="#1F7A6B">
<meta name="apple-mobile-web-app-title" content="SuppScore">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://unpkg.com https://plausible.io; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com data:; img-src 'self' data: https:; connect-src 'self' https://formspree.io https://plausible.io https://www.fda.gov https://www.efsa.europa.eu; frame-ancestors 'none'; base-uri 'self'; form-action 'self' https://formspree.io;">
<script src="_site-ux.js?v=20260527-rel-path-fix" defer></script>
</head>
<body>
<!-- 2026-05-24 — Stripped .beta-bar tagline + full .site-nav. The
wrapper-page detail view should open clean. Single close ✕ in the
top-right (.pg-close-fab) returns the user via history.back(). -->
<a href="#" class="pg-close-fab" aria-label="Close and return"
onclick="if(history.length>1){history.back();return false;}else{location.href='/';return false;}">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</a>
<main class="dt-wrap" id="dt-root"></main>
<script src="data.js?v=20260504a"></script>
<script src="search-index.js?v=20260509q"></script>
<script src="nav-search.js?v=20260509i"></script>
<script src="supplement-modal.js?v=20260527-rel-path-fix" defer></script>
<script>
(function(){
function escapeHtml(s){return String(s==null?'':s).replace(/[&<>"']/g,function(c){return ({'&':'&','<':'<','>':'>','"':'"',"'":'''})[c]});}
var p = new URLSearchParams(location.search);
var id = (p.get('id') || '').trim();
var root = document.getElementById('dt-root');
if (!id){ root.innerHTML = '<a class="dt-back" href="index.html">‹ Back</a><h1 class="dt-h1">No article specified</h1>'; return; }
var a = window.SS.getArticle(id);
if (!a){ root.innerHTML = '<a class="dt-back" href="search.html">‹ Back to search</a><h1 class="dt-h1">Article not found</h1><p>No article #' + escapeHtml(id) + '.</p>'; return; }
document.title = a.t + ' — SupplementScore';
// Reverse-derive: which supplements does this article reference?
var AM = window.SS.getArticleMap();
var related = [];
Object.keys(AM).forEach(function(suppName){
var arr = AM[suppName] || [];
if (arr.some(function(x){ return String(x.id) === String(id); })) {
var s = window.SS.getSupplement(window.SS.slugify(suppName));
related.push({ name: suppName, ref: s });
}
});
var cat = (a.c || 'article').toLowerCase();
var catLabel = cat.replace(/^./, function(c){return c.toUpperCase();});
function suppLink(p){
var s = p.ref;
var tier = s ? '<span class="dt-tier dt-tier-' + s.t + '">' + window.SS.tierMeta(s.t).badge + '</span>' : '';
var url = s ? window.SS.urlFor('supplement', window.SS.slugify(s.n)) : 'search.html?q=' + encodeURIComponent(p.name);
return '<a href="' + url + '"><span>' + escapeHtml(p.name) + '</span>' + tier + '</a>';
}
root.innerHTML =
'<a class="dt-back" href="index.html#research">‹ All articles</a>'
+ '<span class="dt-cat dt-cat-' + cat + '">' + escapeHtml(catLabel) + '</span>'
+ '<h1 class="dt-h1">' + escapeHtml(a.t) + '</h1>'
+ '<div class="dt-meta">Article #' + escapeHtml(String(id)) + (a.m ? ' · ' + a.m + ' min read' : '') + '</div>'
+ '<div class="dt-callout"><p>The full body of this article lives on the main Index in the Research tab. Below are the supplements it references — each one links to its own scored detail page.</p></div>'
+ '<section class="dt-card"><h2>Supplements referenced in this article</h2>'
+ (related.length ? '<ul class="sup-list">' + related.map(suppLink).join('') + '</ul>' : '<div style="font-size:13px;color:var(--color-text-tertiary)">No supplements explicitly cross-linked to this article.</div>')
+ '</section>'
+ '<p class="dt-disclaim">All articles are reviewed and updated regularly. <a href="index.html#research">Open the full Research tab</a> to read the latest version.</p>';
})();
</script>
<!-- SS_FOOTER_BEGIN -->
<!-- 2026-05-23 — Footer rewritten in centered-column layout (Direction B from
the mockup review). Single vertical axis: brand → tagline → inline link
row (hairlines top/bottom) → centered contributor CTA → legal at bottom.
The previous brand+3-column grid is gone; .site-footer-grid and
.site-footer-col classes are no longer emitted. Old CSS rules for those
remain in place harmlessly (no markup references them). -->
<footer class="site-footer" role="contentinfo">
<div class="site-footer-inner">
<div class="site-footer-brand-row">
<span class="site-footer-leaf" aria-hidden="true">
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 19C5 11 11 5 19 5C19 13 13 19 5 19Z"/></svg>
</span>
<span class="site-footer-brand">SupplementScore<span class="site-footer-brand-tld">.org</span></span>
</div>
<nav class="site-footer-links" aria-label="Footer navigation">
<a href="/">Home</a>
<a href="/compare/index.html">Compare</a>
<a href="/#research" onclick="window._tabSwitchByUser=true">Research</a>
<a href="/#profile" onclick="window._tabSwitchByUser=true">Profile <span class="site-footer-beta" aria-label="Beta">(Beta)</span></a>
<a href="/about.html">About</a>
</nav>
<div class="site-footer-contrib">
<div class="site-footer-contrib-eyebrow">Non-profit · volunteer-run</div>
<div class="site-footer-contrib-title">Help build the database</div>
<div class="site-footer-contrib-desc">Clinicians, researchers, developers, help us improve this site.</div>
<form class="site-footer-contrib-form" onsubmit="return ssFooterContrib(event)" novalidate>
<input type="email" placeholder="your@email.com" aria-label="Your email address" required>
<button type="submit" aria-label="Send" title="Send"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg></button>
<div class="site-footer-contrib-success" role="status" aria-live="polite">✓ Thanks! We'll be in touch.</div>
</form>
</div>
<div class="site-footer-bottom">© 2026 SupplementScore · CC-BY 4.0 · <a href="/privacy.html">Terms & Privacy</a> · Educational reference, not medical advice. Always consult a clinician before changing your supplement regimen.</div>
</div>
<script>
/* Footer contributor form — small handler shared by every page that ships the
shared site-footer. Defined once on window so re-loads on subsequent pages
are no-ops. Posts to the same Formspree endpoint as the about-page form,
tagged with source='contributor-footer' so leads from here are attributable. */
window.ssFooterContrib = window.ssFooterContrib || function(e){
e.preventDefault();
var form = e.target;
var input = form.querySelector('input[type=email]');
var btn = form.querySelector('button');
var email = (input.value || '').trim();
if (!email || email.indexOf('@') < 0 || email.length < 5) {
input.classList.add('is-invalid');
setTimeout(function(){ input.classList.remove('is-invalid'); }, 2000);
return false;
}
btn.disabled = true; btn.textContent = 'Sending…';
fetch('https://formspree.io/f/mnjoylkz', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' },
body: JSON.stringify({ email: email, source: 'contributor-footer', date: new Date().toISOString() })
}).then(function(r){
if (r.ok) { form.classList.add('is-success'); }
else { btn.disabled = false; btn.textContent = 'Try again'; }
}).catch(function(){ btn.disabled = false; btn.textContent = 'Try again'; });
return false;
};
</script>
</footer>
<!-- SS_FOOTER_END -->
</body>
</html>