Last active
August 26, 2016 09:42
-
-
Save tesfabpel/f272d4ae2fb49bb483fac3773fd298e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src='js/jquery.js'></script> | |
<script src='js/bicubicInterpolation.js'></script> <!-- https://github.com/sukhoi1/ie-bicubic-img-interpolation-plugin --> | |
<script type='text/javascript'> | |
$(function() { | |
var ua = window.navigator.userAgent; | |
var msie = ua.indexOf('MSIE '); | |
var trident = ua.indexOf('Trident/'); | |
if(msie > 0 || trident > 0) | |
{ | |
$('img').bicubicImgInterpolation({ | |
crossOrigin: 'anonymous' //otherwise browser security error is triggered | |
}); | |
} | |
}); | |
</script> | |
</head> | |
<body></body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment