Skip to main content

Nota: Após gravar, terá de limpar a cache do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5
  • Opera: Limpe a cache em Ferramentas → Preferências (Tools → Preferences)
/** Códigos Javascript aqui colocados serão carregados por todos aqueles que acederem à WikiSporting.com **/

/** Tynt Tracking **/
if(document.location.protocol=='http:'){
 var Tynt=Tynt||[];Tynt.push('czzJj69Myr4ly6acwqm_6l');Tynt.i={"ap":"Ler mais:"};
 (function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
}

/** 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 myFunction() {
  // Declare variables
  var input, filter, table, tr, td, i;
  input = document.getElementById("myInput");
  filter = input.value.toUpperCase();
  table = document.getElementById("myTable");
  tr = table.getElementsByTagName("tr");

  // Loop through all table rows, and hide those who don't match the search query
  for (i = 0; i < tr.length; i++) {
    td = tr[i].getElementsByTagName("td")[0];
    if (td) {
      if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
        tr[i].style.display = "";
      } else {
        tr[i].style.display = "none";
      }
    }
  }
});