1234567891011121314151617181920212223242526 |
- (function(){
- var datauri = new Image();
- datauri.onerror = function() {
- Modernizr.addTest('datauri', function () { return false; });
- };
- datauri.onload = function() {
- Modernizr.addTest('datauri', function () { return (datauri.width == 1 && datauri.height == 1); });
- };
- datauri.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
- })();
|