[et_pb_section fb_built=»1″ _builder_version=»3.17.2″][et_pb_row _builder_version=»3.17.2″][et_pb_column type=»4_4″ _builder_version=»3.17.2″ parallax=»off» parallax_method=»on»][et_pb_code _builder_version=»3.17.2″][loginCheck]<!– [et_pb_line_break_holder] –><script><!– [et_pb_line_break_holder] –>window.addEventListener("load", function() {<!– [et_pb_line_break_holder] –> getPlayerWithFilter();<!– [et_pb_line_break_holder] –>});<!– [et_pb_line_break_holder] –>var page = 1;<!– [et_pb_line_break_holder] –>function getPlayerWithFilter() {<!– [et_pb_line_break_holder] –> var postData = '';<!– [et_pb_line_break_holder] –> postData+='nombre='+ document.getElementById('nombreForm').value;<!– [et_pb_line_break_holder] –> postData+='&altura='+ document.getElementById('alturaForm').value;<!– [et_pb_line_break_holder] –> postData+='&posicion='+ document.getElementById('posicionForm').value;<!– [et_pb_line_break_holder] –> postData+='&posicionDef='+ document.getElementById('posicionDefForm').value;<!– [et_pb_line_break_holder] –> postData+='&nacionalidad='+ document.getElementById('nacionalidadForm').value;<!– [et_pb_line_break_holder] –> postData+='&offset='+ (page-1);<!– [et_pb_line_break_holder] –> <!– [et_pb_line_break_holder] –> <!– [et_pb_line_break_holder] –> var xhttp = new XMLHttpRequest();<!– [et_pb_line_break_holder] –> xhttp.onreadystatechange = function() {<!– [et_pb_line_break_holder] –> if (this.readyState == 4 && this.status == 200) {<!– [et_pb_line_break_holder] –> document.getElementById("filterPlayers").innerHTML = this.responseText;<!– [et_pb_line_break_holder] –> document.getElementById("pagNum").innerHTML = "Pag: "+ page;<!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –> if(document.getElementById("filterPlayers").childElementCount >= 12)//8 elementos-> 12<!– [et_pb_line_break_holder] –> document.getElementById("NextButton").style.display="inline-block";<!– [et_pb_line_break_holder] –> else<!– [et_pb_line_break_holder] –> document.getElementById("NextButton").style.display="none";<!– [et_pb_line_break_holder] –> <!– [et_pb_line_break_holder] –> if(page > 1)<!– [et_pb_line_break_holder] –> document.getElementById("PrevButton").style.display="inline-block";<!– [et_pb_line_break_holder] –> else<!– [et_pb_line_break_holder] –> document.getElementById("PrevButton").style.display="none";<!– [et_pb_line_break_holder] –> <!– [et_pb_line_break_holder] –> }<!– [et_pb_line_break_holder] –> };<!– [et_pb_line_break_holder] –> xhttp.open('POST', '/myPHP/filtroJugadores.php', true);<!– [et_pb_line_break_holder] –> xhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');<!– [et_pb_line_break_holder] –> xhttp.send(postData);<!– [et_pb_line_break_holder] –>};<!– [et_pb_line_break_holder] –></script><!– [et_pb_line_break_holder] –><!– [et_pb_line_break_holder] –><h2 style="text-align: center;">Buscador de Jugadores</h2><!– [et_pb_line_break_holder] –><br><!– [et_pb_line_break_holder] –><div>Aqui podras buscar jugadores usando filtros</div><!– [et_pb_line_break_holder] –><br><!– [et_pb_line_break_holder] –><strong>Nombre:</strong><input type='text' size=10 id='nombreForm'/>  <br class="mobile-break"><!– [et_pb_line_break_holder] –><strong>Altura mínima:</strong></strong><input type='number' size=5 style='-webkit-appearance:textfield' id='alturaForm' step='1' min='100' max='250' >cm      <!– [et_pb_line_break_holder] –><br class="mobile-break"><strong>Posición:</strong> <select name='posicion' id='posicionForm' ><!– [et_pb_line_break_holder] –> <option value='' selected>Cualquiera</option><!– [et_pb_line_break_holder] –> <option value='Central'>Central</option><!– [et_pb_line_break_holder] –> <option value='Lateral izquierdo'>Lateral izquierdo</option><!– [et_pb_line_break_holder] –> <option value='Lateral derecho'>Lateral derecho</option><!– [et_pb_line_break_holder] –> <option value='Extremo izquierdo'>Extremo izquierdo</option><!– [et_pb_line_break_holder] –> <option value='Extremo derecho'>Extremo derecho</option><!– [et_pb_line_break_holder] –> <option value='Pivote'>Pivote</option><!– [et_pb_line_break_holder] –> <option value='Portero'>Portero</option><!– [et_pb_line_break_holder] –> </select>  <br class="mobile-break"><!– [et_pb_line_break_holder] –><strong>Defensa:</strong> <select name='posdef' id='posicionDefForm' ><!– [et_pb_line_break_holder] –> <option value='' selected>Cualquiera</option><!– [et_pb_line_break_holder] –> <option value='1º'>1º</option><!– [et_pb_line_break_holder] –> <option value='2º'>2º</option><!– [et_pb_line_break_holder] –> <option value='3º'>3º</option><!– [et_pb_line_break_holder] –> <option value='1º y 2º'>1º y 2º</option><!– [et_pb_line_break_holder] –> <option value='2º y 3º'>2º y 3º</option><!– [et_pb_line_break_holder] –> <option value='1º y avanzado'>1º y avanzado</option><!– [et_pb_line_break_holder] –> <option value='2º y avanzado'>2º y avanzado</option><!– [et_pb_line_break_holder] –> <option value='3º'>Portero</option><!– [et_pb_line_break_holder] –> </select>  <br class="mobile-break"><!– [et_pb_line_break_holder] –><strong>Nacionalidad:</strong>[getNacionalityFilter] <br class="mobile-break"><!– [et_pb_line_break_holder] –><div class='mobileRightButtonForm' style='display: inline;' onclick='page=1;getPlayerWithFilter();' >Buscar</div> <!– [et_pb_line_break_holder] –><div style="min-Height:50vh" id="filterPlayers"><!– [et_pb_line_break_holder] –></div><!– [et_pb_line_break_holder] –><br><!– [et_pb_line_break_holder] –><div style='float: right;margin-right: 10%;font-size: 20px;'><!– [et_pb_line_break_holder] –> <span class='arrowButton' onClick='page–;getPlayerWithFilter()' id="PrevButton" >❮</span><!– [et_pb_line_break_holder] –> <span id="pagNum" style="margin-left:5px;margin-right:5px">Pag: 1</span><!– [et_pb_line_break_holder] –> <span class='arrowButton' onClick='page++;getPlayerWithFilter()' id="NextButton">❯</span><!– [et_pb_line_break_holder] –></div>[/et_pb_code][/et_pb_column][/et_pb_row][/et_pb_section]