Images
Rewrote displaySun and displayRain as one function, displayWeather, and created new variable weatherOpacity to translate gameWeather into opacity. Deleted mentions of displaySun and displayRain
displayWeather works.
Added gameRoots object in global objects
Added code in upperBound function to change values of gameRoots object to maxRoot and minRoot
Added variable and function rainOpacity to replace weatherOpacity. Create if-else statements to determine rain opacity. Feed rainopacity as argument to displayWeather.
declared variables rainOpacity and sunOpacity at top of weatherResults function, without setting them equal to anything. function weatherOpacity is called inside displayWeather, which is called using rainOpacity and sunOpacity as arguments.
Tested displayWeather function and opacity. WORKS.
Moved fadeWeather into weatherResults function, uses setTimeout to delay fade. deleted second animation on #sun and #rain to prevent overwriting opacity in the HTML as 0. WORKS!
Made weatherReport a global variable that is updated by weatherResults if-else statements
Changed values of weatherReport to include too and enough as qualifiers for wet and dry. Included new text in index.html dialog to give context to results. added jquery to fill in spans in dialog. NOT working - weatherReport.
Moved call to updateGame to be after assignment of weatherReport in if-else statements. Now results dialog shows weather report. SUCCESS