Skip to content

Commit

Permalink
Make sure to hide the youtube comments initially
Browse files Browse the repository at this point in the history
  • Loading branch information
HielkeMaps committed Apr 13, 2024
1 parent e264f0d commit 2a77b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/js/custom/upcoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $(function () {
if (timeDiff > fiveMinutesAnd45Seconds) {
countdownOverlay.css("display", "flex");
$(".hyvor-comments").remove();
$(".youtube-comments").show();
}

function updateCountDown() {
Expand Down
2 changes: 1 addition & 1 deletion pages/upcoming.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1 id="countdownText"></h1>
page-id="{{page.url}}" loading="manual">
</hyvor-talk-comments>
{% if page.youtube-id %}
<iframe class="youtube-comments" src="https://www.youtube.com/live_chat?v={{page.youtube-id}}&embed_domain=hielkemaps.com" frameborder="0"></iframe>
<iframe class="youtube-comments" style="display: none;" src="https://www.youtube.com/live_chat?v={{page.youtube-id}}&embed_domain=hielkemaps.com" frameborder="0"></iframe>
{% endif %}
</div>
</div>
Expand Down

0 comments on commit 2a77b3f

Please sign in to comment.