Skip to content
Snippets Groups Projects
Commit 04fd2f62 authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

Merge branch 'web' of git@gitlab.cas.mcmaster.ca:schankuc/2XB3.git into web

parents c540c3f1 6b822221
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ Double Handle Slider Modified from: http://jqueryui.com/slider/#range
Genus:
<select name="pickSciR" id="pickGenus" size="1" onChange="callUpdateSci(this)"><!--Dynamically Filled--></select>
Species:
<select name="pickSciR" id="pickSpecies" size="1" onChange="alert('No function atm')"><!--Dynamically Filled--></select>
<select name="pickSciR" id="pickSpecies" size="1"><!--Dynamically Filled--></select>
</section>
<section id="yearIn">
......
function findMonth(month){
switch(month){
case 1:
return "January";
case 2:
return "February";
case 3:
return "March";
case 4:
return "April";
case 5:
return "May";
case 6:
return "June";
case 7:
return "July";
case 8:
return "August";
case 9:
return "September";
case 10:
return "October";
case 11:
return "November";
case 12:
return "December";
}
}
/**
* Generates html text to fill info windows on a Google Maps API
* @param names String array of scientific fish names
......@@ -5,6 +41,7 @@
* @param count Integer array of counts of each fish species
* @returns String array where each entry is html code to describe a marker on a map
*/
function infoGenerator(names, dates, count){
var infoArray =[];
......@@ -12,7 +49,7 @@ function infoGenerator(names, dates, count){
for (int i=0; i < names.length; i++){
// Initialize variables to each data point's information
var year = dates[i][0];
var month = dates[i][1];
var month = findMonth(dates[i][1]);
var day = dates[i][2];
var name = names[i];
var count = count[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment