Enable dark mode for Remarkbox embeds
Add mode=dark query parameter to Remarkbox embed URLs on both pages to ensure consistent dark mode display matching the site's design. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
cbc4d48345
commit
4722d0f4ae
2 changed files with 9 additions and 5 deletions
|
|
@ -60,12 +60,14 @@
|
|||
var thread_uri = window.location.href;
|
||||
var thread_title = window.document.title;
|
||||
var thread_fragment = window.location.hash;
|
||||
|
||||
|
||||
// rb owner was here.
|
||||
var rb_src = "https://my.remarkbox.com/embed" +
|
||||
var mode_param = "&mode=dark";
|
||||
var rb_src = "https://my.remarkbox.com/embed" +
|
||||
"?rb_owner_key=" + rb_owner_key +
|
||||
"&thread_title=" + encodeURI(thread_title) +
|
||||
"&thread_uri=" + encodeURIComponent(thread_uri) +
|
||||
"&thread_uri=" + encodeURIComponent(thread_uri) +
|
||||
mode_param +
|
||||
thread_fragment;
|
||||
|
||||
function create_remarkbox_iframe() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue