FANDOM


function onloadhookcustom() {
SpareFunctions();

}


if (window.addEventListener){window.addEventListener("load",onloadhookcustom,false);}
else if (window.attachEvent) {window.attachEvent("onload",onloadhookcustom);}


function IRC(){
var replace = document.getElementById("IRC");
var windowwidth= document.getElementById("article");
var widthtwo=document.width-245;
var test = 500;

if (null != replace) {
var getvalue = replace.getAttribute("width");
replace.innerHTML='<iframe src="http://webchat.freenode.net/?channels=Kongregate" width="'+widthtwo+'" height="400"></iframe>';
}
}

function PurgeButton(){
var replace = document.getElementById("control_share_feature");

if (null != replace) {

replace.innerHTML='



  • <img class="sprite share" src="blank.gif"><a id="ca-share_feature" href="#" rel="nofollow">Share this article</a><img class=spriate share" src="Hardrefresh.png"><a href="javascript:Purge();" accesskey="w" title="Purge the cache of this page">Purge<a></li>';
    }} function Purge(){
    location.reload(true);
    } function ModifyCSS(){
    appendCSS(".color1, .yui-panel .hd {background-color: #FFFFFF;color:white:}");
    } function Timezone(){
    var replace = document.getElementById("TIMEZONE");
    var d = new Date(); var curr_hour = d.getHours();
    var curr_min = d.getMinutes();
    var curr_display = curr_hour + ":" + curr_min; if (null != replace) {
    replace.innerHTML=+curr_display+' ';
    }
    } function SpareFunctions(){
    IRC();
    PurgeButton();
    ModifyCSS();
    Timezone();
    HoverObject();
    Chatango();
    Clock();
    } function Clock(){
    $('#request_wiki').after('
    test
    ');
    newClock();

    }

    function newClock()
    {
    var replace=document.getElementById("newclock");
    var today=new Date();
    var oldh=today.getHours();
    var ampm="pm"
    if(oldh>=12){
    var h=today.getHours()-12;
    ampm="pm";
    }else {
    var h = today.getHours();
    ampm="am";
    } var m=today.getMinutes();
    var s=today.getSeconds();

    m=checkTime(m);
    s=checkTime(s);
    // add a zero in front of numbers<10 replace.innerHTML='

    '+h+':'+m+':'+s+' '+ampm+'
    ';

    t=setTimeout('newClock()',500);
    }

    function checkTime(i)
    { if (i<10)
    {
    i="0" + i;
    }
    return i;
    } function CloseIRC(){


    var replace = document.getElementById("NewOnlineChat");
    setCookie('UnforgottenCookie',0,365);
    if (null != replace) {
    replace.innerHTML='
    <a href="javascript:OpenIRC();">Open (+)</a>
    ';
    }
    }

    function OpenIRC(){
    var replace = document.getElementById("NextOnlineChat");
    setCookie('UnforgottenCookie',1,365);
    if (null != replace) {
    Chatango();
    }
    }

    function Chatango()
    {
    var replace = document.getElementById("OnlineChat");
    if (null != replace)
    {
    ucookie=getCookie('UnforgottenCookie');
    if (ucookie!=null)
    {
    if(ucookie==1)
    {
    var getvalue = replace.getAttribute("class");
    replace.innerHTML='
    <object width="200" height="300" id="obj_1269491649983"><param name="movie" value="http://UserShadowTale.chatango.com/group"/><param name="AllowScriptAccess" VALUE="always"/><param name="AllowNetworking" VALUE="all"/><param name="AllowFullScreen" VALUE="true"/><param name="flashvars" value="cid=1269491649983&a=000000&b=100&c=999999&d=848484&e=000000&g=CCCCCC&h=333333&i=29&j=CCCCCC&k=666666&l=333333&m=000000&n=CCCCCC&s=1&t=0"/><embed id="emb_1269491649983" src="http://UserShadowTale.chatango.com/group" width="200" height="300" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" allowFullScreen="true" flashvars="cid=1269491649983&a=000000&b=100&c=999999&d=848484&e=000000&g=CCCCCC&h=333333&i=29&j=CCCCCC&k=666666&l=333333&m=000000&n=CCCCCC&s=1&t=0"></embed></object>
    <a href="javascript:CloseIRC();" style="float:right">Close (-)</a></br>
    ';
    }else
    {
    replace.innerHTML='
    <a href="javascript:OpenIRC();">Open (+)</a>
    ';
    }
    }
    else
    {
    setCookie('UnforgottenCookie',1,365);
    }
    }
    } function HoverObject(){
    $('#request_wiki').after('
    loading
    ');
    }

    //<a title="dizzy..." href="/wiki/User:Bawolff/sandbox"><img height="131" width="180" src="180px-Mandelbrot_1-lambda.png" alt="dizzy..."></a>

    function resizeText(multiplier) {
    if (document.body.style.fontSize == "") {
    document.body.style.fontSize = "1.0em";
    }
    document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "em";
    }


    function getCookie(c_name)
    { if (document.cookie.length>0)
    {
    c_start=document.cookie.indexOf(c_name + "=");
    if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1 ;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end));
    }
    }
    return ""
    }

    function setCookie(c_name,value,expiredays)
    { var exdate=new Date();
    exdate.setDate(exdate.getDate()+expiredays);
    document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate.toUTCString());
    }

    function checkCookie()
    {

    } </li>

  • 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.