diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-09-22 00:51:40 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-09-22 00:51:40 -0700 |
| commit | d3e7b5708deffbed864c916de22663f48333c58b (patch) | |
| tree | ef76784a7827baff88c03670bf22832a3f146b17 /share/frontend/js/photoblaster-0.1.js | |
| parent | 86c79f4372d7b2e7640a26473c7a4d331cdf7d16 (diff) | |
finishing server
Diffstat (limited to 'share/frontend/js/photoblaster-0.1.js')
| -rw-r--r-- | share/frontend/js/photoblaster-0.1.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/share/frontend/js/photoblaster-0.1.js b/share/frontend/js/photoblaster-0.1.js new file mode 100644 index 0000000..43fc785 --- /dev/null +++ b/share/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); + |
