Skip to content

Instantly share code, notes, and snippets.

@tesfabpel
Last active August 26, 2016 09:42
Show Gist options
  • Save tesfabpel/f272d4ae2fb49bb483fac3773fd298e2 to your computer and use it in GitHub Desktop.
Save tesfabpel/f272d4ae2fb49bb483fac3773fd298e2 to your computer and use it in GitHub Desktop.
<!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