Sha256: b3e8436d5bf81ff299d0e94025bd78edb6e382cd281f29067d627a4a79214bc8
Contents?: true
Size: 562 Bytes
Versions: 224
Compression:
Stored size: 562 Bytes
Contents
// Testing for HTML5 features if (typeof(Alchemy) === 'undefined') { var Alchemy = {}; } Alchemy.HTML5 = {}; Alchemy.HTML5.hasUploadSupport = function() { return typeof(window.FileReader) !== 'undefined' && supportFileAPI() && supportAjaxUploadProgressEvents(); function supportFileAPI() { var fi = document.createElement('INPUT'); fi.type = 'file'; return 'files' in fi; } function supportAjaxUploadProgressEvents() { var xhr = new XMLHttpRequest(); return !!(xhr && ('upload' in xhr) && ('onprogress' in xhr.upload)); } };
Version data entries
224 entries across 224 versions & 2 rubygems