FANDOM


Wikia.js

importArticles({
    type: "script",
    articles: [
        "MediaWiki:Test1.js",
        "MediaWiki:Test2.js",
        "MediaWiki:Test3.js",
        "MediaWiki:Test4.js",
    ]
});

Test1.js

(function() {
    addOnloadHook(function() {
        $('#script-test-a').html('Done').css({'font-weight':'bold','color':'green'});
    });
})();

Test2.js

(function() {
    addOnloadHook(function() {
        $('#script-test-b').html('Done').css({'font-weight':'bold','color':'green'});
    });
})()

Test3.js

(function() {
    addOnloadHook(function() {
        $('#script-test-c').html('Done').css({'font-weight':'bold','color':'green'});
    });
})();

Test4.js

(function() {
    addOnloadHook(function() {
        $('#script-test-d').html('Done').css({'font-weight':'bold','color':'green'});
    });
})()


Test results Edytuj

load.php Edytuj

http://pl.nanaki.wikia.com/load.php?debug=false&lang=pl&mode=articles&skin=oasis&missingCallback=importArticleMissing&articles=MediaWiki%3ATest1.js%7CMediaWiki%3ATest2.js%7CMediaWiki%3ATest3.js%7CMediaWiki%3ATest4.js&only=scripts

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Więcej z Fandomu

Losowa wiki