User:Jono Bean/common.js: Difference between revisions
From DQWiki
Jump to navigationJump to search
(Created page with "→Lorekeeper Widget Loader (Personal): (function() { // Prevents loading multiple times if (document.getElementById('lorekeeper-widget-container')) return; var container = document.createElement('div'); container.id = 'lorekeeper-widget-container'; container.style.cssText = 'position: fixed; bottom: 25px; right: 25px; z-index: 100000;'; container.innerHTML = '<iframe src="https://npc-forge-qh4gc.web.app/lore?widget=true" ' +...") |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Lorekeeper Widget Loader ( | /* Lorekeeper Widget Loader (Local Test) */ | ||
(function() { | (function() { | ||
if (document.getElementById('lorekeeper-widget-container')) return; | if (document.getElementById('lorekeeper-widget-container')) return; | ||
| Line 8: | Line 7: | ||
container.style.cssText = 'position: fixed; bottom: 25px; right: 25px; z-index: 100000;'; | container.style.cssText = 'position: fixed; bottom: 25px; right: 25px; z-index: 100000;'; | ||
// Using your local dev server IP | |||
container.innerHTML = | container.innerHTML = | ||
'<iframe src=" | '<iframe src="http://192.168.4.252:3000/lore?widget=true" ' + | ||
'style="width: 450px; height: 650px; border: 1px solid rgba(139, 92, 246, 0.4); ' + | 'style="width: 450px; height: 650px; border: 1px solid rgba(139, 92, 246, 0.4); ' + | ||
'border-radius: 32px; box-shadow: 0 25px 70px rgba(0,0,0,0.7); ' + | 'border-radius: 32px; box-shadow: 0 25px 70px rgba(0,0,0,0.7); ' + | ||
| Line 16: | Line 16: | ||
document.body.appendChild(container); | document.body.appendChild(container); | ||
})(); | })(); | ||
Revision as of 07:44, 25 February 2026
/* Lorekeeper Widget Loader (Local Test) */
(function() {
if (document.getElementById('lorekeeper-widget-container')) return;
var container = document.createElement('div');
container.id = 'lorekeeper-widget-container';
container.style.cssText = 'position: fixed; bottom: 25px; right: 25px; z-index: 100000;';
// Using your local dev server IP
container.innerHTML =
'<iframe src="http://192.168.4.252:3000/lore?widget=true" ' +
'style="width: 450px; height: 650px; border: 1px solid rgba(139, 92, 246, 0.4); ' +
'border-radius: 32px; box-shadow: 0 25px 70px rgba(0,0,0,0.7); ' +
'background: #09090b; display: block;" ' +
'frameborder="0" allow="microphone; autoplay"></iframe>';
document.body.appendChild(container);
})();