The BID18xxCom File

From BOARD18 Project WIKI
Jump to navigation Jump to search
BID18xx Design edit

This file contains two scripts that are common to all bid18xx web pages.

All bid18xx global variables are contained in one 'master variable' called BID18.
This isolates them from global variables in other packages.

BID18 initialization and initial page resizing happen here.

Page Resizing Functions

These 2 functions control the sizing of all BID18xx pages.

function setPage()

Function setPage() adjusts the height and width of rightofpage and the height of lefttofpage.
It is triggered by the resize() function.

function resize()

Function resize() is triggered whenever a window resize event occurs.
Function resize() waits for 200 ms (2 seconds) before executing setPage().
Multiple window resize events that occur within this time peroid will only trigger the setPage function once.