Find file
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (68 sloc) 2.06 KB
<!doctype html>
<link rel="stylesheet" href="styles/bootstrap.min.css" />
<link rel="stylesheet" href="styles/app.css" />
<script src="lib/jquery.js"></script>
<script src="lib/filer.min.js"></script>
<script src="lib/knockout-2.0.0.js"></script>
<script src="controller.js"></script>
$(document).ready(function() {
$('input[type="file"]').change(function(e) {
var file =[0];,, file.type);
$("#save").click(function() {
$("#edit").click(function() {
$("#share").click(function() {
$("#pick").click(function() {
Scrappy.startPick(function(data) {
var filename = "";
// try and work out the file name.;
<header id="titlebar">
<p>Scrappy is a file studio that lets you collect files from around the web and do stuff with them.</p>
<div id="filelist">
<div class="padder">
<input type="file" class="btn" value="Add" />
<button class="btn primary" id="pick">Pick</button>
<div id="files">
<ul data-bind="foreach: files">
<a data-bind="text: name, attr: { 'data-path': fullPath }, click: $parent.selectFile" href="#" class="file"></a>
<div id="view">
<button class="btn" id="edit">Edit</button>
<button class="btn" id="save">Save</button>
<button class="btn" id="share">Share</button>
<button class="btn danger">Delete</button>
<img id="viewer" />
<audio id="audio"></audio>
<video id="video"></video>