fixed bluesky embed in light mode

This commit is contained in:
Ell 2024-12-14 13:41:39 +01:00
parent 649fb2de63
commit b922369f5c

View file

@ -8,7 +8,7 @@
<div class="col-auto" style="padding: 10px;"> <div class="col-auto" style="padding: 10px;">
<div style="width: 350px; height: 600px; overflow-y: scroll;"> <div style="width: 350px; height: 600px; overflow-y: scroll;">
<script src="https://cdn.jsdelivr.net/npm/bsky-embed/dist/bsky-embed.es.js" async></script> <script src="https://cdn.jsdelivr.net/npm/bsky-embed/dist/bsky-embed.es.js" async></script>
<bsky-embed username="tinylifegame.bsky.social" mode="dark" limit="10" load-more="true"></bsky-embed> <bsky-embed username="tinylifegame.bsky.social" limit="10" load-more="true"></bsky-embed>
</div> </div>
<span class="social-bottom">Or view on <a href="https://bsky.app/profile/tinylifegame.bsky.social">Bluesky</a> or <a href="https://twitter.com/TinyLifeGame">Twitter</a></span> <span class="social-bottom">Or view on <a href="https://bsky.app/profile/tinylifegame.bsky.social">Bluesky</a> or <a href="https://twitter.com/TinyLifeGame">Twitter</a></span>
</div> </div>
@ -20,7 +20,7 @@
<script> <script>
let theme = darkTheme ? "dark" : "light"; let theme = darkTheme ? "dark" : "light";
$("#discord-widget").attr("src", `https://discordapp.com/widget?id=181435613147430913&theme=${theme}`); $("#discord-widget").attr("src", `https://discordapp.com/widget?id=181435613147430913&theme=${theme}`);
$(".twitter-timeline").attr("data-theme", theme); $("bsky-embed").attr("mode", theme)
</script> </script>
</div> </div>