var body = document.body; body.className += " u-body u-xl-mode"; body.style.cssText += " "; var dataBg = ''; if (dataBg) { body.setAttribute('data-bg', dataBg); } Forthcoming {module id="130"} (function($){ $(document).ready(function(){ $('#eshop_result').hide(); $('input.product_search').val(''); $(window).click(function(){ $('#eshop_result').hide(); }) function search() { var query_value = $('input.product_search').val(); $('b#search-string').html(query_value); if(query_value !== '') { $('.product_search').addClass('eshop-loadding'); $.ajax({ type: "POST", url: $('#live_site').val() + "index.php?option=com_eshop&view=search&format=raw&layout=ajax&lang=en", data: '&keyword=' + query_value + '&image_width=' + $('#image_width').val() + '&image_height=' + $('#image_height').val() + '&category_ids=' + $('#category_ids').val() + '&description_max_chars=' + $('#description_max_chars').val(), cache: false, success: function(html){ $("ul#eshop_result").html(html); $('.product_search').removeClass('eshop-loadding'); } }); } return false; } $('#eshop-search').on('keyup', '#keyword', function(e) { //Set Timeout clearTimeout($.data(this, 'timer')); // Set Search String var search_string = $(this).val(); // Do Search if (search_string == '') { $('.product_search').removeClass('eshop-loadding'); $("ul#eshop_result").slideUp(); } else { $("ul#eshop_result").slideDown('slow'); $(this).data('timer', setTimeout(search, 100)); }; }); }); })(jQuery); #eshop_result { background-color: #ffffff; width: 270px; position: absolute; z-index: 9999; } CATEGORIES - All products - Bilingual - Coco B éditions - Other editions - In stock - Novelties - Forthcoming - Special offers 20