Created
November 11, 2013 17:20
-
-
Save bbrodriges/7416842 to your computer and use it in GitHub Desktop.
Custom 404 on tumbl.com
This file contains 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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script> | |
/* Custom 404 */ | |
$(document).ready(function() { | |
var page_404 = $("section.post h2 a:contains(Not Found)").length; | |
if (page_404) { | |
// you can do magic... | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment