Skip to content

Instantly share code, notes, and snippets.

@rickdog
Forked from anonymous/dabblet.css
Last active December 20, 2015 07:59
Show Gist options
  • Save rickdog/6097264 to your computer and use it in GitHub Desktop.
Save rickdog/6097264 to your computer and use it in GitHub Desktop.
filepicker.io
/**
* filepicker.io
*/
background: #f06;
background: linear-gradient(75deg, blue,green, yellow, orange, red,black,white);
min-height: 100%;
filepicker.io all javascript
//http://closure-compiler.appspot.com/code/jsc37c3d858e3f4d97c1a1733dd0a5fe14e/default.js
var start = function ()
{
doDialog();
};
if (typeof filepicker == 'undefined')
{
var s = document.createElement('script');
s.src = 'http://api.filepicker.io/v1/filepicker.js';
if (s.addEventListener)
{
s.addEventListener('load', start, false);
}
else
{
s.onreadystatechange = function ()
{
if (this.readyState == 'complete')
{
start();
s = null;
}
}
}
s.type = 'text/javascript';
document.getElementsByTagName('head') [0].appendChild(s);
}
else
{
start();
}
function doDialog()
{
filepicker.setKey('A0b1GBdwgSyv6Pop9ZFNQz');
filepicker.pick(function (InkBlob) { console.log(InkBlob.url); } );
}
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"result"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment