/
var
/
www
/
html
/
professoronline
/
theme
/
professoronline
/
javascript
/
Upload File
HOME
$(function(){ //o bloco de navegação aparece na página; if($('.block_navigation').length > 0){ var $context = $('.block_navigation:eq(0)'); var procuras = [ ['span','Páginas do site'], ['a','Minha página inicial'], ['span','Geral'] ]; for(var x=0; x<= procuras.length-1; x++){ findAndHide(procuras[x][0],procuras[x][1],$context); } } $(".single-section:has(.topics #section-2) h3.sectionname").addClass('iconM1'); $(".single-section:has(.topics #section-3) h3.sectionname").addClass('iconM2'); $(".single-section:has(.topics #section-4) h3.sectionname").addClass('iconM3'); $(".single-section:has(.topics #section-5) h3.sectionname").addClass('iconM4'); $(".single-section:has(.topics #section-6) h3.sectionname").addClass('iconM5'); }); function findAndHide(strTag,text,$context){ var $match = $context.find(strTag+':contains("'+text+'")'); if($match.length > 0){ $match.each(function(){ $(this).closest('li').hide(); }); } };