Toggle template and placeholder text

mgibbs189

{{gist file=”test.js” lang=”javascript”}}
<script>
(function($) {
$(document).on(‘facetwp-loaded’, function() {
if (” == FWP.build_query_string()) { // no facets selected
$(‘.facetwp-template’).hide();
$(‘.placeholder-text’).show();
}
else {
$(‘.facetwp-template’).show();
$(‘.placeholder-text’).hide();
}
});
})(jQuery);
</script>
{{/gist}}