diff options
author | Freeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace> | 2013-05-26 17:49:14 +1200 |
---|---|---|
committer | Freeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace> | 2013-05-26 18:13:06 +1200 |
commit | 8bc292b34f76a61a5fbdb841d185df813fb55213 (patch) | |
tree | 600ff2dc8b09abceb3301f6205df083b5a90322b /public/index.html | |
parent | 86aae357a05f2c52f3fb019dac8bdb620ec346f6 (diff) | |
download | manavis-8bc292b34f76a61a5fbdb841d185df813fb55213.tar.gz manavis-8bc292b34f76a61a5fbdb841d185df813fb55213.tar.bz2 manavis-8bc292b34f76a61a5fbdb841d185df813fb55213.tar.xz manavis-8bc292b34f76a61a5fbdb841d185df813fb55213.zip |
Implement remote resource loading
mv.loader.use takes an array of URLs, which are fetched via d3.xhr.
This also restructures mv.loader to refactor out some shared functionality
between mv.loader.use and the file selector change events.
mv.loader could still use some cleanup.
http://css-tricks.com/examples/ButtonMaker/ makes a pretty neat css button.
Hopefully, it's visually attractive enough so people in a hurry know where
to go. :)
Diffstat (limited to 'public/index.html')
-rw-r--r-- | public/index.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/public/index.html b/public/index.html index 67e83a4..e3ad3c3 100644 --- a/public/index.html +++ b/public/index.html @@ -75,8 +75,11 @@ <p>Both raw server logs (.log) and scrubbed datasets (.scrubbed) will work fine. If using the latter, make sure it has .scrubbed in the file name!</p> <p>You can load any number of files at once.</p> <p>Please note that this is very js intensive. The tab may briefly lock up as it loads everything.</p> - <input type="file" id="input" name="records[]" multiple /> - <output id="list"></output> + <div> + <input type="file" id="input" name="records[]" multiple /> + <output id="list"></output> + or <a href="javascript:mv.loader.use(['/logs/map.scrubbed.latest.zip']);" class="button">Use the most recent dataset</a> + </div> <div id="filesbar" class="progressbar fader"> <div class="percent">0%</div> </div> |