Created
June 30, 2016 09:41
-
-
Save ABooooo/bbf435b70b89b452443101053889f12a to your computer and use it in GitHub Desktop.
check if contain image with timeout
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
setTimeout(function(){ | |
if ($(".contentHeader").find("img").length > 0) { | |
$(".content").css("padding","15px 0"); | |
} else { | |
$(".contentHeader").css("padding","0"); | |
} | |
},100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment