%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/javascript/modernizr/feature-detects/
Upload File :
Create Path :
Current File : //usr/share/javascript/modernizr/feature-detects/img-webp.js

// code.google.com/speed/webp/
// by rich bradshaw, ryan seddon, and paul irish


// This test is asynchronous. Watch out.

(function(){

  var image = new Image();

  image.onerror = function() {
      Modernizr.addTest('webp', false);
  };  
  image.onload = function() {
      Modernizr.addTest('webp', function() { return image.width == 1; });
  };

  image.src = 'data:image/webp;base64,UklGRiwAAABXRUJQVlA4ICAAAAAUAgCdASoBAAEAL/3+/3+CAB/AAAFzrNsAAP5QAAAAAA==';

}());

Zerion Mini Shell 1.0