Commit 3292b3f7 authored by Aleix Pol's avatar Aleix Pol 😾

Merge branch 'autocontar_propostes' into 'master'

afegeix el total de proposta devant del titol

See merge request !46
parents fa62e940 910ec0c0
Pipeline #45305186 passed with stage
in 1 minute and 42 seconds
......@@ -10,10 +10,17 @@ layout: default
</div>
<script type="text/javascript">
// append the amount of points into the title
var h2Title = document.getElementsByTagName("h2")[0];
var points = document.querySelectorAll("ol > li");
if (points) {
h2Title.innerText = points.length + " " + h2Title.innerText;
}
// make the h3 elements expandable
var h3Element = document.getElementsByTagName("h3");
var i;
for (i = 0; i < h3Element.length; i++) {
h3Element[i].addEventListener("click", function() {
this.classList.toggle("active");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment