MediaWiki:Common.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Embed the Rumba interactive views (timeline + knowledge graph). */
$(function(){
function embed(id, src){
var el = document.getElementById(id);
if(!el) return;
var f = document.createElement('iframe');
f.src = src;
f.setAttribute('loading','lazy');
f.setAttribute('style','width:100%;height:78vh;border:1px solid #33363d;'
+ 'border-radius:10px;background:#16181d');
el.innerHTML = '';
el.appendChild(f);
}
embed('rumba-graph-embed', '/rumba/graph.html');
embed('rumba-timeline-embed', '/rumba/timeline.html');
});