I have to imagine you are jut trying to troll me Baler.
An example would be this:
Quote:
function isUserLoggedIn () {
var loginState = document.getElementById('pt-logout') ? true : false;
return loginState;
}
|
The function returns a true/false value depending on if you are logged into the wiki, by checking if the 'logout' button in the header is present.