Created
February 14, 2017 21:47
-
-
Save tonysaffo/d35e1f7542a6f84c1fe9f37da3629226 to your computer and use it in GitHub Desktop.
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> | |
$(document).ready(function(){ | |
var imgs = document.getElementsByClassName('swipebox'); | |
for (var i = imgs.length; i > 0; i--) { | |
//console.log("string",imgs[i]); | |
if ($('.swipebox').eq(i).attr('href') == "") { | |
console.log($('.swipebox').eq(i).parent()); | |
$('.swipebox').eq(i).parent().remove(); | |
} | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment