Commit 910ec0c0 authored by Franchi's avatar Franchi

afegeix el total de proposta devant del titol

d'aquesta manera no cal tenir aquest numero en el MD de les propostes ja que s'autocalcula el carregar la web
parent 44d82181
Pipeline #44975535 passed with stage
in 1 minute and 27 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