<div id="em-wrapper"><p><div class="em-search-wrapper"> <div class="em-events-search em-search css-search has-search-term has-search-geo has-search-main has-advanced advanced-hidden"> <form action="http://www.emetalspain.com/eventos/ubicaciones/" method="post" class="em-events-search-form em-search-form"> <input type="hidden" name="action" value="search_locations" /> <div class="em-search-main"> <!-- START General Search --> <div class="em-search-text em-search-field"> <script type="text/javascript"> EM.search_term_placeholder = 'Buscar'; </script> <label> <span class="screen-reader-text">Buscar</span> <input type="text" name="em_search" class="em-events-search-text em-search-text" value="" /> </label> </div> <!-- END General Search --><!-- START General Search --> <div class="em-search-geo em-search-field"> <label> <span class="screen-reader-text">cerca...</span> <input type="text" name="geo" class="em-search-geo" value=""/> </label> <input type="hidden" name="near" class="em-search-geo-coords" value="" /> <div id="em-search-geo-attr" ></div> <script type="text/javascript"> EM.geo_placeholder = 'cerca...'; EM.geo_alert_guess = 'Utilizaremos %s para buscar. \n\n Si esto es incorrecto, dale a cancelar y prueba una dirección más específica.'; function em_geo_search_init(){ jQuery('input.em-search-geo').each(function(i){ var input = /** @type {HTMLInputElement} */ jQuery(this); var wrapper = input.closest('div.em-search-geo'); var autocomplete = new google.maps.places.Autocomplete(input[0]); var geo_coords = wrapper.find("input.em-search-geo-coords"); var geo_field_status = function( status ){ wrapper.data('status',status); var em_search = wrapper.closest('.em-search'); if( status == 'on' ){ wrapper.css('background-image', wrapper.css('background-image').replace('search-geo.png', 'search-geo-on.png').replace('search-geo-off.png', 'search-geo-on.png')); em_search.find('select.em-search-country option:first-child').prop('selected','selected').trigger('change'); em_search.find('.em-search-location').slideUp(); em_search.find('.em-search-geo-units').slideDown(); }else{ if( status == 'off' ){ wrapper.css('background-image', wrapper.css('background-image').replace('search-geo.png', 'search-geo-off.png').replace('search-geo-on.png', 'search-geo-off.png')); }else{ wrapper.css('background-image', wrapper.css('background-image').replace('search-geo-off.png', 'search-geo.png').replace('search-geo-on.png', 'search-geo.png')); } geo_coords.val(''); em_search.find('.em-search-location').slideDown(); em_search.find('.em-search-geo-units').slideUp(); } }; var ac_listener = function( place ) { var place = autocomplete.getPlace(); if( !place || !place.geometry ){ //place not found if( input.val() == '' || input.val() == EM.geo_placeholder ){ geo_field_status(false); }else{ if( wrapper.data('last-search') == input.val() ){ geo_field_status('on'); geo_coords.val( wrapper.data('last-coords') ); return; } //do a nearest match suggestion as last resort if( input.val().length >= 2 ){ geo_field_status(false); autocompleteService = new google.maps.places.AutocompleteService(); autocompleteService.getPlacePredictions( {'input': input.val(), 'offset': input.val().length }, function listentoresult(list, status) { if(list != null && list.length != 0) { placesService = new google.maps.places.PlacesService(document.getElementById('em-search-geo-attr')); placesService.getDetails( {'reference': list[0].reference}, function detailsresult(detailsResult, placesServiceStatus) { //we have a match, ask the user wrapper.data('last-search', detailsResult.formatted_address ); wrapper.data('last-coords', detailsResult.geometry.location.lat() + ',' + detailsResult.geometry.location.lng()); if( input.val() == detailsResult.formatted_address || confirm(EM.geo_alert_guess.replace('%s', '"'+detailsResult.formatted_address+'"')) ){ geo_coords.val( detailsResult.geometry.location.lat() + ',' + detailsResult.geometry.location.lng() ); geo_field_status('on'); input.val(detailsResult.formatted_address); }else{ input.data('last-key',false); geo_field_status('off'); } }); }else{ geo_field_status('off'); } }); }else{ geo_field_status('off'); } } wrapper.data('last-search', input.val() ); wrapper.data('last-coords', geo_coords.val()); return; } geo_coords.val( place.geometry.location.lat() + ',' + place.geometry.location.lng() ); geo_field_status('on'); wrapper.data('last-search', input.val() ); wrapper.data('last-coords', geo_coords.val()); }; google.maps.event.addListener(autocomplete, 'place_changed', ac_listener); if( geo_coords.val() != '' ){ geo_field_status('on'); wrapper.data('last-search', input.val() ); wrapper.data('last-coords', geo_coords.val() ); } input.keypress( function(e) { //if enter is pressed once during 'near' input, don't do anything so Google can select location, otherwise let behavior (form submittal) proceed if( e.which == 13 ) { if( input.data('last-key') != 13 || wrapper.data('status') != 'on' ){ e.preventDefault(); } }else{ geo_field_status(false); } }).keyup( function(e) { if( this.value == '' ){ geo_field_status(false); } else if( wrapper.data('last-search') != this.value ){ geo_field_status('off'); } input.data('last-key', e.which); }).blur( function(e){ //create HTML 5 placeholder effect if not HTML 5 if( this.value == '' && !('placeholder' in document.createElement('input')) ) this.value = EM.geo_placeholder; }).focus( function(e){ if( this.value == EM.geo_placeholder ) this.value=''; input.data('last-key', 13); }).attr('placeholder', EM.geo_placeholder); }); } jQuery(document).bind('em_maps_loaded', function(){ em_geo_search_init(); }); </script> </div> <!-- END General Search --> <button type="submit" class="em-search-submit loading"> <!--[if IE 7]><span><![endif]--> <img src="https://i1.wp.com/www.emetalspain.com/wp-content/plugins/events-manager/includes/images/search-mag.png?w=960" alt="Buscar" data-recalc-dims="1" /> <!--[if IE 7]></span><![endif]--> </button> </div> <div class="em-search-advanced" style="display:none"> <div class="em-search-location" > <!-- START Country Search --> <div class="em-search-country em-search-field"> <label> <span>País</span> <select name="country" class="em-search-country em-events-search-country"> <option value=''>Todos los países</option> <option value="ES">España</option> </select> </label> </div> <!-- END Country Search --> <div class="em-search-location-meta" style="display:none;"> <!-- START Region Search --> <div class="em-search-region em-search-field"> <label> <span>Región</span> <select name="region" class="em-search-region em-events-search-region"> <option value=''>Todas las regiones</option> </select> </label> </div> <!-- END Region Search --><!-- START State/County Search --> <div class="em-search-state em-search-field"> <label> <span>Estado / Condado</span> <select name="state" class="em-search-state em-events-search-state"> <option value=''>Todos los estados</option> </select> </label> </div> <!-- END State/County Search --> </div> </div><!-- START Geo Units Search --> <div class="em-search-geo-units em-search-field" style="display:none;"> <label> <span>Dentro</span> <select name="near_distance" class="em-search-geo-distance"> <option value="5" >5</option> <option value="10" >10</option> <option value="25" selected="selected">25</option> <option value="50" >50</option> <option value="100" >100</option> </select> </label> <label> <span class="screen-reader-text">distance units</span> <select name="near_unit" class="em-search-geo-unit"> <option value="mi">mi</option> <option value="km" >km</option> </select> </label> </div> <!-- END Geo Units Search --> </div> <div class="em-search-options"> <a href="#" class="em-toggle" rel=".em-search-advanced:.em-search-form"> <span class="hide-advanced" style="display:none;">Hide Advanced Search</span> <span class="show-advanced">Show Advanced Search</span> </a> </div> </form> </div> </div><div class='css-locations-list'><ul class="em-locations-list"><li><a href="http://www.emetalspain.com/locations/calle-roc-boronat-33-08005-barcelona/">Calle Roc Boronat, 33, 08005 Barcelona</a><ul><li>Calle Roc Boronat, 33, Barcelona</li></ul></li></ul></div></p> <p style="color:#999; font-size:11px;">Powered by <a href="http://wp-events-plugin.com" style="color:#999;" target="_blank">Events Manager</a></p></div><div class="sharedaddy sd-sharing-enabled"><div class="robots-nocontent sd-block sd-social sd-social-icon sd-sharing"><h3 class="sd-title">Comparte esto:</h3><div class="sd-content"><ul><li class="share-facebook"><a rel="nofollow" data-shared="sharing-facebook-774" class="share-facebook sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=facebook" target="_blank" title="Haz clic para compartir en Facebook"><span></span><span class="sharing-screen-reader-text">Haz clic para compartir en Facebook (Se abre en una ventana nueva)</span></a></li><li class="share-twitter"><a rel="nofollow" data-shared="sharing-twitter-774" class="share-twitter sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=twitter" target="_blank" title="Haz clic para compartir en Twitter"><span></span><span class="sharing-screen-reader-text">Haz clic para compartir en Twitter (Se abre en una ventana nueva)</span></a></li><li class="share-google-plus-1"><a rel="nofollow" data-shared="sharing-google-774" class="share-google-plus-1 sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=google-plus-1" target="_blank" title="Haz clic para compartir en Google+"><span></span><span class="sharing-screen-reader-text">Haz clic para compartir en Google+ (Se abre en una ventana nueva)</span></a></li><li class="share-skype"><a rel="nofollow" data-shared="sharing-skype-774" class="share-skype sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=skype" target="_blank" title="Compartir en Skype"><span></span><span class="sharing-screen-reader-text">Compartir en Skype (Se abre en una ventana nueva)</span></a></li><li class="share-linkedin"><a rel="nofollow" data-shared="sharing-linkedin-774" class="share-linkedin sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=linkedin" target="_blank" title="Haz clic para compartir en LinkedIn"><span></span><span class="sharing-screen-reader-text">Haz clic para compartir en LinkedIn (Se abre en una ventana nueva)</span></a></li><li class="share-tumblr"><a rel="nofollow" data-shared="" class="share-tumblr sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=tumblr" target="_blank" title="Haz clic para compartir en Tumblr"><span></span><span class="sharing-screen-reader-text">Haz clic para compartir en Tumblr (Se abre en una ventana nueva)</span></a></li><li class="share-pinterest"><a rel="nofollow" data-shared="sharing-pinterest-774" class="share-pinterest sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=pinterest" target="_blank" title="Haz clic para compartir en Pinterest"><span></span><span class="sharing-screen-reader-text">Haz clic para compartir en Pinterest (Se abre en una ventana nueva)</span></a></li><li class="share-pocket"><a rel="nofollow" data-shared="" class="share-pocket sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=pocket" target="_blank" title="Haz clic para compartir en Pocket"><span></span><span class="sharing-screen-reader-text">Haz clic para compartir en Pocket (Se abre en una ventana nueva)</span></a></li><li class="share-reddit"><a rel="nofollow" data-shared="" class="share-reddit sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=reddit" target="_blank" title="Haz clic para compartir en Reddit"><span></span><span class="sharing-screen-reader-text">Haz clic para compartir en Reddit (Se abre en una ventana nueva)</span></a></li><li class="share-email"><a rel="nofollow" data-shared="" class="share-email sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/?share=email" target="_blank" title="Haz clic para enviar por correo electrónico a un amigo"><span></span><span class="sharing-screen-reader-text">Haz clic para enviar por correo electrónico a un amigo (Se abre en una ventana nueva)</span></a></li><li class="share-print"><a rel="nofollow" data-shared="" class="share-print sd-button share-icon no-text" href="http://www.emetalspain.com/eventos/ubicaciones/#print" target="_blank" title="Haz clic para imprimir"><span></span><span class="sharing-screen-reader-text">Haz clic para imprimir (Se abre en una ventana nueva)</span></a></li><li class="share-end"></li></ul></div></div></div><div class='sharedaddy sd-block sd-like jetpack-likes-widget-wrapper jetpack-likes-widget-unloaded' id='like-post-wrapper-89501804-774-59c73dcf09681' data-src='https://widgets.wp.com/likes/#blog_id=89501804&post_id=774&origin=www.emetalspain.com&obj_id=89501804-774-59c73dcf09681' data-name='like-post-frame-89501804-774-59c73dcf09681'><h3 class="sd-title">Me gusta:</h3><div class='likes-widget-placeholder post-likes-widget-placeholder' style='height: 55px;'><span class='button'><span>Me gusta</span></span> <span class="loading">Cargando...</span></div><span class='sd-text-color'></span><a class='sd-link-color'></a></div>
WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera