Add header only if there isn't one already

This commit is contained in:
Brian Miyaji
2015-08-29 05:10:11 +10:00
parent f28d7d86d7
commit dc846627b0

View File

@@ -10,7 +10,9 @@ function viewport() {
(function($) {
/* Header */
$('body').prepend( '<div class="sp-header"></div>' );
if ( ! $('.sp-header').size() ) {
$('body').prepend( '<div class="sp-header sp-header-loaded"></div>' );
}
/* Countdown */
$("[data-countdown]").each(function() {