Use Javascript and Google search API to create live search results on the attached HTML document.
Consult Google for reference on how to use the API: [login to view URL]
The results will either be local web search (No other columns or search types); or image search based on settings outlined below.
Thanks in advance for your time.
## Deliverables
Setup the google search allowing me to alter settings using these self explanatory variables:
var liveSearchOn = true;
var liveSearchResults = 3;
var liveSearchURL = "[login to view URL]";
var liveSearchGrowSpeed = 1000;
var liveSearchShrinkSpeed = 3000;
var liveSearchDisableShrink = false;
var liveSearchContentURL = "[login to view URL]";
var liveSearchImageMode = false;
var liveSearchMinimumEntry = 3;
var liveSearchCloseDelay = 10;
FUNCTION grow
Increase the size of liveResults DIV from 0 to its original size for liveSearchGrowSpeed milliseconds
ENDFUNCTION
FUNCTION shrink
Save search in variable and remove the innerHTML out of liveResultsCell
Hide the liveContent IFRAME
Decrease the size of liveResults DIV from original size to 0 for liveSearchShrinkSpeed milliseconds
ENDFUNCTION
Store the original height of liveResults DIV
Call shrink function with milliseconds set to 0
// Perform search
IF liveSearchOn is on AND search input value (text) length is higher than liveSearchMinimumEntry value AND is not a numeral THEN
Call grow function
Perform google search and populate liveResultCell, in the table that has grown
IF liveSearchImageMode THEN display google image results
reveal the liveContent IFRAME
Navigate the IFRAME to liveSearchContentURL
ENDIF
// Hide search results when time is up
IF the last input field keyup or click event is more than liveSearchCloseDelay milliseconds AND liveSearchCloseDelay is not 0 AND it has a value AND live search is turned on THEN Call shrink function
// Provide a cancel shrink command
IF user clicks on liveResults DIV AND input field has a value THEN
cancel the shrink process
reset the close delay timer
display the saved search again
ENDIF
Keep the results hidden if live search is turned off
////////////////////////////////////////////////////////
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.<BR>
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):<BR>a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.<BR>b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.<BR>3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).<BR>
## Platform
Must work on the following browsers: Internet Explorer 6 and above / Firefox 1.5 and above