Conduit API
Case Study
Gadget only API -> ChangeSize
 
This function is used to set the height and width of the gadget window.
 
ChangeSize(newWidth, newHeight)
 
Parameter Description Range Type
newWidth The width (in pixels) of the gadget window. >=0 int
newHeight The height (in pixels) of the gadget window. >=0 int
 
None.
 
This function can only be used with the gadget window.
*Notice: API methods must be invoked after the web page has triggered the "onload" event.
 
This example contains an icon  ChangeSize  which is located within the gadget window, that when clicked upon will cause the height and width of the gadget window to decrease by 10px every 50 milliseconds, until the gadget window is completely closed.