Skip to main content
m
m
 
Linha 1: Linha 1:
 +
/** ATENÇÃO: O USO DESTA PÁGINA FOI DESATIVADO **/
 
/** Códigos Javascript aqui colocados serão carregados por todos aqueles que acederem à WikiSporting.com **/
 
/** Códigos Javascript aqui colocados serão carregados por todos aqueles que acederem à WikiSporting.com **/
 
/** Solution for sticking footer at bottom in short pages **/
 
$(document).ready(function() {
 
  var docHeight = $(window).height();
 
  var footerHeight = $('#main-footer').height();
 
  var footerTop = $('#main-footer').position().top + footerHeight;
 
  if (footerTop < docHeight) {
 
    $('#main-footer').css('margin-top', 10+ (docHeight - footerTop) + 'px');
 
  }
 
  });
 
 
/** to create a filter table with JavaScript **/
 
$(document).ready(function() {
 
  $(".search").keyup(function () {
 
    var searchTerm = $(".search").val();
 
    var listItem = $('.results tbody').children('tr');
 
    var searchSplit = searchTerm.replace(/ /g, "'):containsi('")
 
  $.extend($.expr[':'], {'containsi': function(elem, i, match, array){
 
        return (elem.textContent || elem.innerText || '').toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
 
    }
 
  });
 
   
 
  $(".results tbody tr").not(":containsi('" + searchSplit + "')").each(function(e){
 
    $(this).attr('visible','false');
 
  });
 
 
  $(".results tbody tr:containsi('" + searchSplit + "')").each(function(e){
 
    $(this).attr('visible','true');
 
  });
 
 
  var jobCount = $('.results tbody tr[visible="true"]').length;
 
    $('.counter').text(jobCount + ' item');
 
  if(jobCount == '0') {$('.no-result').show();}
 
    else {$('.no-result').hide();}
 
  });
 
});
 

Edição atual desde as 17h01min de 15 de outubro de 2016

/** ATENÇÃO: O USO DESTA PÁGINA FOI DESATIVADO **/
/** Códigos Javascript aqui colocados serão carregados por todos aqueles que acederem à WikiSporting.com **/