Skip to content

Commit 20060b6

Browse files
committed
fix: js errors
Signed-off-by: Carlos Alexandro Becker <[email protected]>
1 parent 862be19 commit 20060b6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

static/templates/index.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
## Stargazers over time
5757

5858
[![Stargazers over time](https://starchart.cc/{{ .FullName }}.svg)](https://starchart.cc/{{ .FullName }})
59+
5960
</code>
6061
<button class="btn copy-btn" data-clipboard-target="#code">Copy</button>
6162
</pre>
@@ -85,9 +86,6 @@
8586
<script src="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.2/timeago.min.js"
8687
integrity="sha512-SVDh1zH5N9ChofSlNAK43lcNS7lWze6DTVx1JCXH1Tmno+0/1jMpdbR8YDgDUfcUrPp1xyE53G42GFrcM0CMVg=="
8788
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
88-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.1.0/languages/markdown.min.js"
89-
integrity="sha512-ADxHovZZYEPiuBlIAejqh6IxCe+Vi7CIYVYpKyXtvain1hzK6DpYlQhoxwo0YBHv11Oj8N3jBqRCoOA8I8lXiw=="
90-
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
9189
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.1.0/highlight.min.js"
9290
integrity="sha512-z+/WWfyD5tccCukM4VvONpEtLmbAm5LDu7eKiyMQJ9m7OfPEDL7gENyDRL3Yfe8XAuGsS2fS4xSMnl6d30kqGQ=="
9391
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
@@ -97,8 +95,9 @@
9795
<script defer data-domain="starchart.cc" src="https://plausible.io/js/plausible.js"></script>
9896
<script>
9997
new ClipboardJS('.copy-btn');
100-
hljs.initHighlightingOnLoad();
101-
timeago.render(document.querySelectorAll('time'));
98+
hljs.highlightAll();
99+
document.querySelectorAll('time').forEach(t => timeago.render(t));
100+
document.querySelectorAll('input#repository').forEach(i => i.select());
102101
</script>
103102
</body>
104103

0 commit comments

Comments
 (0)