Skip to content

Instantly share code, notes, and snippets.

@pavenuto
Created December 16, 2013 14:22
Show Gist options
  • Save pavenuto/7987669 to your computer and use it in GitHub Desktop.
Save pavenuto/7987669 to your computer and use it in GitHub Desktop.
if ( $('body').is(".index") ) {
// var canvas = document.createElement('canvas');
// canvas.id = "blur-layer";
// canvas.width = $(window).width();
// canvas.height = $(window).height();
// context = canvas.getContext("2d");
// document.body.appendChild(canvas);
// image = new Image();
// image.src = 'img/homepage.jpg';
// image.onload = function () {
// context.drawImage(image, 0, 0);
// canvas.style.webkitFilter = "blur(5px)";
// };
// $('window').resize( function(){
// canvas.width = $(window).width();
// canvas.height = $(window).height();
// });
// setTimeout(function(){
// canvas.hide();
// }, 200);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment