Jump to content

User:FlightTime Public/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by FlightTime Public (talk | contribs) at 16:32, 18 January 2020 (Update). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// [[User:SimmeD/Scripts/confirm logout.js]]

/*
 * This script will make you confirm if you want to logout!
 */
var confirm_logout = function()
{
    var txt;
	var r = confirm("Are you sure that you want to logout?");
	if (r === true) {
	    txt = "You pressed OK!";
	    return true;
	} else {
	    txt = "You pressed Cancel!";
	    return false;
	}
}
document.getElementById('pt-logout').onclick = confirm_logout;