if(screen.width < 992) { $('head').append(''); $('head').append(''); $('head').append(''); $('head').append(''); }else{ $('head').append(''); $('head').append(''); $('head').append(''); $('head').append(''); $('head').append(''); } var kokoReDesign = '/solr/js/kokoReDesign.js?013'; if(screen.width < 992) kokoReDesign = '/solr/js/kokoReDesign-mobile.js?008'; var script = document.createElement('script'); script.src = kokoReDesign; var head = document.getElementsByTagName('head')[0]; head.appendChild(script); // !function($, _){ $(document).ready( function(){ var removedHTMLId = screen.width < 992 ? 'ceres-custom-solr-search' : 'ceres-custom-solr-search-mobile'; $('#' + removedHTMLId).remove(); // Read a page's GET URL variables and return them //as an associative array. function getUrlVars(){ var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?')+1).split('&'); for(var i = 0; i < hashes.length; i++){ hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } $(".clearable").each(function() { const $inp = $(this).find("input:text"), $cle = $(this).find(".clearable__clear"); $cle.on("click", function(e) { e.preventDefault(); Manager.store.get('q').val('*:*'); Manager.store.remove('fq'); Manager.doRequest(); }); $($inp).keypress( function onEvent(event) { if (event.key === "Enter") { Manager.store.get('q').val(event.target.value) Manager.doRequest(); } }); }); var params = _ && _.params || getUrlVars() || {}; var query = decodeURIComponent(params["q"]); var banner = decodeURIComponent(params["banner"]); if (query !== "undefined"){ query = query.replace(/[^a-zA-Z0-9äöüÄÖÜ ]/g, " "); $('.search-input').each(function(){this.value = query}).trigger("input"); $('#mobileSearchDropdown').addClass("show"); } if (banner=="sale"){ var megadealBanner ='
' + 'Konsolenkost Deals
'; var newsletterBanner = '
' + '
'+ '
'+ '
'+ '
'+ '
'; $("#newsletter-banner").html(megadealBanner + newsletterBanner); $("#newsletter-banner").show(); } }); }(jQuery, window.globals);
window.google_tag_params = { ecomm_pagetype:'searchresults' }
    user