Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2XB3FinalProject
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Schankula
2XB3FinalProject
Commits
04fd2f62
Commit
04fd2f62
authored
6 years ago
by
Christopher Schankula
Browse files
Options
Downloads
Plain Diff
Merge branch 'web' of git@gitlab.cas.mcmaster.ca:schankuc/2XB3.git into web
parents
c540c3f1
6b822221
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tomcat/webapps/Trawl/index.jsp
+1
-1
1 addition, 1 deletion
tomcat/webapps/Trawl/index.jsp
tomcat/webapps/Trawl/infoGenerator.js
+38
-1
38 additions, 1 deletion
tomcat/webapps/Trawl/infoGenerator.js
with
39 additions
and
2 deletions
tomcat/webapps/Trawl/index.jsp
+
1
−
1
View file @
04fd2f62
...
...
@@ -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"
>
...
...
This diff is collapsed.
Click to expand it.
tomcat/webapps/Trawl/infoGenerator.js
+
38
−
1
View file @
04fd2f62
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
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment