-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
llsposto
committed
Feb 8, 2016
1 parent
95cf6fa
commit 8722fce
Showing
290 changed files
with
135,103 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,47 @@ | ||
package edu.usc.polar; | ||
import org.apache.wicket.markup.head.IHeaderResponse; | ||
import org.apache.wicket.markup.head.JavaScriptHeaderItem; | ||
import org.apache.wicket.markup.head.OnDomReadyHeaderItem; | ||
import org.apache.wicket.markup.html.WebPage; | ||
import org.apache.wicket.markup.html.basic.Label; | ||
import org.apache.wicket.request.resource.PackageResourceReference; | ||
import org.apache.wicket.resource.TextTemplateResourceReference; | ||
import org.apache.wicket.util.lang.Objects; | ||
import org.apache.wicket.util.template.PackageTextTemplate; | ||
import org.apache.wicket.util.template.TextTemplate; | ||
|
||
import java.util.HashMap; | ||
|
||
public class Polar extends WebPage { | ||
private static final String jsResourceFiles[] = { | ||
"jquery.min.js", | ||
"bootstrap.min.js", | ||
"jquery.easing.min.js", | ||
"scrolling-nav.js", | ||
"d3.min.js" | ||
}; | ||
private static final String jsResourceTemplates[] = { | ||
"d3examples.js" | ||
}; | ||
public Polar() { | ||
add(new Label("message", "Polar Deep Search Engine!")); | ||
} | ||
|
||
public void renderHead(IHeaderResponse response) { | ||
for (String jsFile : jsResourceFiles) { | ||
System.out.println(urlFor(new PackageResourceReference(getClass(), "js/" + jsFile), null)); | ||
PackageResourceReference jsRef = new PackageResourceReference(getClass(), "js/" + jsFile); | ||
JavaScriptHeaderItem js = JavaScriptHeaderItem.forReference(jsRef); | ||
response.render(js); | ||
} | ||
|
||
for (String jsTemplate : jsResourceTemplates) { | ||
TextTemplate template = new PackageTextTemplate(Polar.class, "js/" + jsTemplate, "text/javascript", "UTF-8"); | ||
HashMap<String, Object> vars = new HashMap<String, Object>(); | ||
vars.put("dataResourcePath", urlFor(new PackageResourceReference(getClass(), "data/data.tsv"), null)); | ||
String jsString = template.asString(vars); | ||
response.render(OnDomReadyHeaderItem.forScript(jsString)); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
date close | ||
1-May-12 23 | ||
24-Apr-12 22 | ||
23-Apr-12 19 | ||
20-Apr-12 14 | ||
9-Apr-12 12 | ||
5-Apr-12 15 | ||
4-Apr-12 17 | ||
27-Mar-12 16 | ||
23-Mar-12 20 | ||
16-Mar-12 15 | ||
6-Mar-12 13 | ||
5-Mar-12 12 | ||
27-Feb-12 15 | ||
24-Feb-12 14 | ||
23-Feb-12 15 | ||
16-Feb-12 18 | ||
15-Feb-12 20 | ||
7-Feb-12 21 | ||
6-Feb-12 19 | ||
31-Jan-12 18 | ||
30-Jan-12 16 | ||
27-Jan-12 15 | ||
18-Jan-12 13 | ||
27-Dec-11 14 | ||
23-Dec-11 17 | ||
22-Dec-11 16 | ||
28-Nov-11 14 | ||
25-Nov-11 12 | ||
23-Nov-11 11 | ||
15-Nov-11 10 | ||
14-Nov-11 11 | ||
10-Nov-11 12 | ||
1-Nov-11 12 | ||
31-Oct-11 11 | ||
28-Oct-11 10 | ||
7-Oct-11 11 | ||
21-Sep-11 9 | ||
20-Sep-11 11 | ||
7-Sep-11 12 | ||
6-Sep-11 10 | ||
2-Sep-11 10 | ||
1-Sep-11 12 | ||
24-Aug-11 13 | ||
11-Aug-11 13 | ||
9-Aug-11 12 | ||
29-Jul-11 14 | ||
27-Jul-11 16 | ||
19-Jul-11 17 | ||
6-Jul-11 14 | ||
27-Jun-11 13 | ||
24-Jun-11 11 | ||
13-Jun-11 10 | ||
10-Jun-11 12 | ||
9-Jun-11 14 | ||
8-Jun-11 13 | ||
1-Jun-11 14 | ||
31-May-11 15 | ||
19-May-11 13 | ||
18-May-11 11 | ||
9-May-11 10 | ||
5-May-11 12 | ||
25-Apr-11 10 | ||
21-Apr-11 9 | ||
12-Apr-11 7 | ||
11-Apr-11 12 | ||
8-Apr-11 15 | ||
30-Mar-11 13 | ||
29-Mar-11 14 | ||
28-Mar-11 16 | ||
25-Mar-11 16 | ||
1-Mar-11 16 | ||
28-Feb-11 14 | ||
25-Feb-11 15 | ||
24-Feb-11 13 | ||
15-Feb-11 11 | ||
14-Feb-11 10 | ||
11-Feb-11 9 | ||
25-Jan-11 7 | ||
18-Jan-11 6 |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.