Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

Index 

Índice
outlinetrue
exclude.*ndice
stylenone

 

 

Speaking of extracurricular activities...

In this section, the student has access to all the extracurricular activities of the classes in which he is registered, as well as information on the situation of each activity.

...

HTML
<a id="toggleAll" href="#" >Expand/hide additional information. </a>
 <script type="text/javascript">
 
 var abertos = 0;
 var fechados = 0;
 function contador() {
    abertos = 0;
    fechados = 0;
    jQuery(".expand-control").each( function() {
		if (document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded") {
           	fechados++;
        } else {
        	abertos++;
        }
    });
 }
 AJS.toInit(function() {
 
    contador();
	var soma = abertos + fechados;
	$("#toggleAll").html('Expand/hide ' + soma  + ' additional information.');

    AJS.$('#toggleAll').click(function() {
        contador();
        if (abertos >= fechados) {
            jQuery(".expand-control").each(
                function() {
                    if (document.getElementById(this.id).children[0].className == "expand-control-icon icon expanded") {
                        jQuery(this).trigger("click");
                    }
                }
            )
        } else {
            jQuery(".expand-control").each(
                function() {
                    if (document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded") {
                        jQuery(this).trigger("click");
                    }
                }
            )
        }
    });
});
 </script>

Basic Path

 

01. In the main menu, click Learning.

...

04. View all the subject classes in which you are enrolled and the ones that have extracurricular activities.

 

Alternative Path

 

View extracurricular activity

 

01. Select the class to view the extracurricular activity.

...