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
073cdc4e
Commit
073cdc4e
authored
6 years ago
by
Ray Liu
Browse files
Options
Downloads
Patches
Plain Diff
Finished info Generator file
parent
97622441
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tomcat/webapps/Trawl/infoGenerator.js
+32
-0
32 additions, 0 deletions
tomcat/webapps/Trawl/infoGenerator.js
with
32 additions
and
0 deletions
tomcat/webapps/Trawl/infoGenerator.js
0 → 100644
+
32
−
0
View file @
073cdc4e
function
infoGenerator
(
names
,
dates
,
count
){
var
infoArray
=
[];
for
(
int
i
=
0
;
i
<
names
.
length
;
i
++
){
var
year
=
dates
[
i
][
0
];
var
month
=
dates
[
i
][
1
];
var
day
=
dates
[
i
][
2
];
var
name
=
names
[
i
];
var
count
=
count
[
i
];
var
contentString
=
‘
<
div
id
=
“
content
”
>
‘
+
‘
<
div
id
=
“
siteNotice
”
>
‘
+
‘
<
/div>‘+
‘
<
h1
id
=
“
firstHeading
”
class
=
“
firstHeading
”
>
’
+
name
+
‘
<
/h1>‘+
‘
<
div
id
=
“
bodyContent
”
>
‘
+
‘
<
p
><
b
>
Name
:
<
/b>’ + name + ‘</
p
>
‘
+
‘
<
p
><
b
>
Date
:
<
/b>’ + month + ' ' + day + ‘, ’ + year + ‘</
p
>
‘
+
‘
<
p
><
b
>
Count
:
<
/b>’ + count + ‘</
p
>
‘
+
‘
<
/div>‘+
‘
<
/div>’;
infoArray
.
push
(
contentString
);
}
return
infoArray
;
}
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