Skip to content
Snippets Groups Projects
Commit 6b10bcd5 authored by Haley Glavina's avatar Haley Glavina
Browse files

Added comments to inforGenerator.js

parent 073cdc4e
No related branches found
No related tags found
No related merge requests found
/**
* Generates html text to fill info windows on a Google Maps API
* @param names String array of scientific fish names
* @param dates Array of JSON objects containing 3 arrays: Year[], Month[], Day[]
* @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 =[];
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 day = dates[i][2];
var name = names[i];
var count = count[i];
// Generate string of html
var contentString = <div id=content>+
<div id=siteNotice>+
</div>‘+
......@@ -26,7 +33,4 @@ function infoGenerator(names, dates, count){
}
return infoArray;
}
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