(index === 1 && value === theme_store_id)
) {
theme_name_for_hacking = theme_array.shift();
}
});
});
if (theme_name_for_hacking.length > 0) {
snize_search_results_page_classes += ' snize-' + theme_name_for_hacking.replace(/ /g, '-') + '-css-fix';
}
document.body.className += snize_search_results_page_classes;
}
var snize_results = document.getElementById('snize_results');
if (snize_results != null && snize_results != undefined && snize_results.innerHTML != '') {
return;
}
sInterval = setInterval(function() {
var snize_results = document.getElementById('snize_results');
if (snize_results != null && snize_results != undefined && snize_results.innerHTML != '') {
clearInterval(sInterval);
var skeleton_results = document.getElementById('snize_skeleton_results');
skeleton_results.parentNode.removeChild(skeleton_results);
return;
}
var grid_wrapper = document.getElementById('snize-search-results-wrapper');
if (grid_wrapper.offsetWidth >= 1055) {
grid_wrapper.className = grid_wrapper.className.replace(/(?:^| )snize-three-columns(?!S)/g , '').replace(/(?:^| )snize-four-columns(?!S)/g , '');
if (!grid_wrapper.className.match(/(?:^| )snize-five-columns(?!S)/)) {
grid_wrapper.className += ' snize-five-columns';
}
} else if (grid_wrapper.offsetWidth >= 915) {
grid_wrapper.className = grid_wrapper.className.replace(/(?:^| )snize-three-columns(?!S)/g , '').replace(/(?:^| )snize-five-columns(?!S)/g , '');
if (!grid_wrapper.className.match(/(?:^| )snize-four-columns(?!S)/)) {
grid_wrapper.className += ' snize-four-columns';
}
} else {
grid_wrapper.className = grid_wrapper.className.replace(/(?:^| )snize-four-columns(?!S)/g , '').replace(/(?:^| )snize-five-columns(?!S)/g , '');
if (!grid_wrapper.className.match(/(?:^| )snize-three-columns(?!S)/)) {
grid_wrapper.className += ' snize-three-columns';
}
}
}, 30);
if (window.location.href.indexOf('collection=') != -1) {
var elements = document.getElementsByClassName('snize-search-results-page-title');
var elementsArray = Array.prototype.slice.call(elements);
elementsArray.forEach(function(domElement) {
domElement.style.display = 'none';
});
}
})(window);