Skip to content

Commit e496dbd

Browse files
committed
Donate: Use noscript tag
1 parent 7aee3b2 commit e496dbd

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

_includes/pages/donate.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ <h2 class="title is-size-2" id="support-luanti">{{ "Support Luanti" | i18n }}</h
3636
<section class="section">
3737
<div class="container">
3838
<h3 class="title is-size-3" id="credits">{{ "Supporters" | i18n }}</h3>
39-
<!-- to reduce translator burden, not making this translatable -->
40-
<p id="noscript">
41-
JavaScript is required to see supporters here.
42-
Alternatively, you can view them on <a href="https://opencollective.com/luanti">Open Collective</a>.
43-
</p>
44-
<p id="credits-loading" style="display: none;">{{ "Loading…" | i18n }}</p>
39+
<noscript>
40+
<!-- to reduce translator burden, not making this translatable -->
41+
<p>
42+
JavaScript is required to see supporters here.
43+
Alternatively, you can view them on <a href="https://opencollective.com/luanti">Open Collective</a>.
44+
</p>
45+
</noscript>
46+
<p id="credits-loading">{{ "Loading…" | i18n }}</p>
4547
<div id="credits-container" class="columns is-multiline"></div>
46-
<script src="/assets/js/opencollective.js?v=2"></script>
48+
<script src="/assets/js/opencollective.js"></script>
4749
</div>
4850
</section>
4951

public/assets/js/opencollective.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,4 @@ async function load() {
123123
}
124124
}
125125

126-
document.getElementById("noscript").style.display = "none";
127-
document.getElementById("credits-loading").style.display = "block";
128-
129126
window.addEventListener("load", load());

0 commit comments

Comments
 (0)