User:Reiazur/global.js

var link = $('#link');

link.click(function{

$('#content').toggle('slow');

});

// Makes an clock depending on the time of the user's computer.

var today = new Date; var hours = today.getHours; var minutes = today.getMinutes; var seconds = today.getSeconds; var dn="PM"; if(hours<12){ dn="AM"; }        else if(hours>12){ hours=hours-12; }        else if(hours==0){ hours=12; }        if(minutes<10){ minutes="0"+minutes; }        if(seconds<10){ seconds="0"+seconds; }        document.getElementById("clock").innerHTML= hours+":"+minutes+":"+seconds+" "+dn; setTimeout("clock",1000);