Welcome to Assassin's Creed Wiki! Log in and join the community.

User talk:Faded-Myth: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Wikia
welcoming new contributor
 
imported>SilverSummoner
m →‎Era.. stuff: new section
Line 20: Line 20:
'''Happy Editing! ^_^'''
'''Happy Editing! ^_^'''
|}
|}
== Era.. stuff ==
Hi there. I just want to ask, are these all the codes needed?
<pre>
function showEras(className)
{
    if(typeof(SKIP_ERAS) != 'undefined' && SKIP_ERAS)
        return;
    var titleDiv = document.getElementById(className);
    if(titleDiv == null || titleDiv == undefined)
        return;
    var cloneNode = titleDiv.cloneNode(true);
    var firstHeading = getFirstHeading();
    firstHeading.insertBefore(cloneNode, firstHeading.childNodes[0]);
    cloneNode.style.display = "block";
}
function getFirstHeading()
{
    var elements = getElementsByClass('firstHeading', document.getElementById('content'), 'h1');
    return (elements != null && elements.length > 0) ? elements[0] : null;
}
function moveRating()
{
    var elements = getElementsByClass('ratings-top', document.getElementById('content'), 'div');
    if(elements[0] == null || elements[0] == undefined)
        return;
    var cloneNode = elements[0].cloneNode(true);
    var firstHeading = getFirstHeading();
    firstHeading.insertBefore(cloneNode, firstHeading.childNodes[0]);
    cloneNode.style.display = "block";
}
</pre>
- [[User:SilverSummoner|<span style="font-family:Trebuchet MS"><font color="skyblue">'''Silver'''</font><font color="dodgerblue">'''Summoner'''</font></span>]][[User talk:SilverSummoner|<sup><font color="royalblue">''TaLk''</font></sup>]] 05:34, January 21, 2010 (UTC)

Revision as of 07:34, 21 January 2010

"Faded-Myth! It's good you've come. We need your help!"

Welcome to the Assassin's Creed Wiki

Please enjoy your stay here and help us to improve this wiki. As starters, you can refer to this links:
The Community Portal * Assassin's Creed Wiki Administrators

Should you have more questions, don't worry! Simply ask one of our prominent users by leaving a message on their talk page.
Happy Editing! ^_^

Era.. stuff

Hi there. I just want to ask, are these all the codes needed?

function showEras(className)
{
    if(typeof(SKIP_ERAS) != 'undefined' && SKIP_ERAS)
        return;

    var titleDiv = document.getElementById(className);

    if(titleDiv == null || titleDiv == undefined)
        return;

    var cloneNode = titleDiv.cloneNode(true);
    var firstHeading = getFirstHeading();
    firstHeading.insertBefore(cloneNode, firstHeading.childNodes[0]);
    cloneNode.style.display = "block";
}

function getFirstHeading()
{
    var elements = getElementsByClass('firstHeading', document.getElementById('content'), 'h1');
    return (elements != null && elements.length > 0) ? elements[0] : null;
}

function moveRating()
{
    var elements = getElementsByClass('ratings-top', document.getElementById('content'), 'div');
    if(elements[0] == null || elements[0] == undefined)
        return;
    var cloneNode = elements[0].cloneNode(true);
    var firstHeading = getFirstHeading();
    firstHeading.insertBefore(cloneNode, firstHeading.childNodes[0]);
    cloneNode.style.display = "block";
}

- SilverSummonerTaLk 05:34, January 21, 2010 (UTC)