diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-08-07 18:33:30 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-08-07 18:33:30 -0700 |
| commit | 236fd1d9f2009083fbbfce7190c27fbf1d7c88b8 (patch) | |
| tree | 6077ff15b4b770b4b292aaa14d9cbfff1ba82fae /frontend/js/photoblaster-0.1.js | |
| parent | c89619f1b1f908d0f330c468866cea669ce8bf6c (diff) | |
getting ready
Diffstat (limited to 'frontend/js/photoblaster-0.1.js')
| -rw-r--r-- | frontend/js/photoblaster-0.1.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/frontend/js/photoblaster-0.1.js b/frontend/js/photoblaster-0.1.js new file mode 100644 index 0000000..43fc785 --- /dev/null +++ b/frontend/js/photoblaster-0.1.js @@ -0,0 +1,22 @@ +(function($){ + $.photoblaster = function(url, name, success, error){ + if (! url) return; + var API_HEADER = "#@im", + success = success || function (data) {}, + error = error || function () {}, + params = { + 'url': url, + 'name': name || 'api', + 'transparent': true, + 'fuzz': 5, + }; + $.ajax({ + 'url': "http://asdf.us/cgi-bin/im/generate", + 'data': params, + 'dataType': "jsonp", + 'success': success, + 'error': error + }); + }; +})(jQuery); + |
