×
Create a new article
Write your page title here:
We currently have 302 articles on Knights of the Olde Speech. Type your article name above or click on one of the titles below and start writing!



Knights of the Olde Speech

MediaWiki:MusicPlayer.js: Difference between revisions

Created page with "if (document.getElementById('musicPlayerAllow') !== null) { var rail = document.getElementById('WikiaRail'); var node = document.createElement("div"); var textnode..."
 
No edit summary
Line 1: Line 1:
if (document.getElementById('musicPlayerAllow') !== null) {
document.getElementsByTagName('body')[0].onload = "addEmulatorFrame()";
    var rail = document.getElementById('WikiaRail');
 
    var node = document.createElement("div");
function addEmulatorFrame() {
    var textnode = document.createTextNode("Loading iframe...");
    if (document.getElementById('musicPlayerAllow') !== null) {
    node.appendChild(textnode);
        var rail = document.getElementById('WikiaRail');
    node.classList.add("EmulatorFrame");
        var node = document.createElement("div");
    //node.style.display = "none";
        var textnode = document.createTextNode("Loading iframe...");
    rail.appendChild(node);
        node.appendChild(textnode);
        node.classList.add("EmulatorFrame");
        //node.style.display = "none";
        rail.appendChild(node);
    }
}
}

Revision as of 10:07, 10 June 2020

document.getElementsByTagName('body')[0].onload = "addEmulatorFrame()";

function addEmulatorFrame() {
    if (document.getElementById('musicPlayerAllow') !== null) {
        var rail = document.getElementById('WikiaRail');
        var node = document.createElement("div");
        var textnode = document.createTextNode("Loading iframe...");
        node.appendChild(textnode);
        node.classList.add("EmulatorFrame");
        //node.style.display = "none";
        rail.appendChild(node);
    }
}