$(pattern, container).each(function() {
if (aboveViewport(container, this, settings.threshold)
|| belowViewport(container, this, settings.threshold)) {
$(this).html(settings.placeholder);
} else {
$(pattern, container).each(function() {
if (aboveViewport(container, this, settings.threshold)
|| belowViewport(container, this, settings.threshold)) {
$(this).html(settings.placeholder);
} else {