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; } $("form.navSearchbarForm").submit(function(e){ e.preventDefault(); window.location = "/suche/?q="+encodeURIComponent(this.q.value||'*'); }); 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, " "); $("#query").val(query); $("#m-suche").val(query); } 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