diff options
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); + |
