I'm exploring the scripts for my favorite Windows gadget wondering if I can port it to DesktopX (plus I really want to change some variables) I've found a select call for the drop-down box where you choose what magnitude you want, but I be darned I cannot find the actual bit where it pulls the data from the web using the selected data. I've looked through 15 files for hours. XML, HTML, JS, CSS. I cannot figure out what I am looking for nor finding it. Here is the starting call, I can link the rest of the files if anyone wants to practice their code analysis.
<select id="data" style="width:196;font-size:12px;">
<option value="1">Magnitude 0+ (Past Day)</option>
<option value="2">Magnitude 2+ (Past 7 Day)</option>
<option value="3">Magnitude 3+ (Past 7 Day)</option>
<option value="4">Magnitude 5+ (Past 7 Day)</option>
<option value="5">Magnitude 7+ (Past 7 Day)</option>
</select>
The original numbers were 0+,1+(Past Day),2.5+,5+,7+ There has to be some place that is feeding two variables into the gadget (magnitude and number of days). It has become more a learning experience than simply changing 2.5+ to 3+.
I don't intend to use the code for anything but my own. I want to figure out how it draws information from USGS and then make my own code. Probably some available variables that I would use besides what he has. I just want to understand how this is used to set the size and period. Right now I have it populating the drop down, but that is no good.
I know that USGS probably publishes a SDK. I find that trying to understand those things just makes me frustrated and I quit. For me it is easier to see how it is used then investigate how it works from there.