User:Ale jrb/Scripts/statusCheck.js: Difference between revisions

Content deleted Content added
Ale jrb (talk | contribs)
update script: basic recognition of user contribs page, ability for user-defined positioning
Ale jrb (talk | contribs)
update script: allows user positioning relative to right and bottom
Line 7:
\* ======================================================== */
// the following settings are used in this script:
if (offlineAfter == null) var offlineAfter = (1215 * 60); // number of seconds after which a user is considered offline (default: 1215 * 60 seconds)
if (statCloseOnClick == null) var statCloseOnClick = true; // whether to close the status window when clicking on it
if (statPosition == null) var statPosition = new Array(20, 600); // position of the status window [left, top]
Line 37:
statusCheck.interface.win_left = statPosition[0];
statusCheck.interface.win_top = statPosition[1];
if (statPosition[2] != null) statusCheck.interface.win_right = statPosition[2];
if (statPosition[3] != null) statusCheck.interface.win_bottom = statPosition[3];
statusCheck.interface.win_width = 110;
statusCheck.interface.win_height = 35;