Skip to content
Snippets Groups Projects
Commit ce253268 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

update counters

parent a8666aac
Branches main test
No related tags found
No related merge requests found
Pipeline #20182 passed
......@@ -77,20 +77,12 @@
</thead>
<tbody class="border-x border-b border-gray-100">
<tr>
<th class="font-bold text-left px-4 py-2 border-r border-r-gray-100">Setina</th>
<th class="font-normal px-4 py-2" id="hundredth">0</th>
</tr>
<tr class="bg-gray-100">
<th class="font-bold text-left px-4 py-2">Desetina</th>
<th class="font-normal px-4 py-2" id="tenth">0</th>
<th class="font-bold text-left px-4 py-2 border-r border-r-gray-100">Pětina přítomných členů</th>
<th class="font-normal px-4 py-2" id="fifth-of-present-members">0</th>
</tr>
<tr>
<th class="font-bold text-left px-4 py-2 border-r border-r-gray-100">Pětina</th>
<th class="font-normal px-4 py-2" id="fifth">0</th>
</tr>
<tr class="bg-gray-100">
<th class="font-bold text-left px-4 py-2">2x odmocnina</th>
<th class="font-normal px-4 py-2" id="two-square-roots">0</th>
<th class="font-bold text-left px-4 py-2 border-r border-r-gray-100">Desetina přítomných členů</th>
<th class="font-normal px-4 py-2" id="tenth-of-present-members">0</th>
</tr>
</tbody>
</table>
......@@ -105,17 +97,6 @@
</tr>
</thead>
<tbody class="border-x border-b border-gray-100">
<tr>
<th class="font-bold text-left px-4 py-2 border-r border-r-gray-100">
<a
class="underline"
href="https://redmine.pirati.cz/projects/predsedani-celostatnimu-foru/issues/new?issue%5Bsubject%5D=%C5%BD%C3%A1dost%20o%20rozesl%C3%A1n%C3%AD%20%C4%8Dlensk%C3%A9ho%20podn%C4%9Btu"
>
Rozeslání členského podnětu
</a>
</th>
<th class="font-normal px-4 py-2" id="member-motion">0</th>
</tr>
<tr class="bg-gray-100">
<th class="font-bold text-left px-4 py-2">Zařazení na běžící jednání</th>
<th class="font-normal px-4 py-2" id="ongoing-motion">0</th>
......
This diff is collapsed.
......@@ -20,22 +20,14 @@ $(window).ready(
return;
}
const hundredth = Math.ceil(memberCount / 100);
const fifth = Math.ceil(memberCount / 5);
const twoSquareRoots = Math.ceil(2 * Math.sqrt(memberCount));
const fifthOfPresentMembers = Math.ceil(memberCount / 5);
const tenthOfPresentMembers = Math.ceil(memberCount / 10);
$("#hundredth").html(hundredth);
$("#tenth").html(Math.ceil(memberCount / 10));
$("#fifth").html(fifth);
$("#two-square-roots").html(twoSquareRoots);
$("#fifth-of-present-members").html(fifthOfPresentMembers);
$("#tenth-of-present-members").html(tenthOfPresentMembers);
const motionStart = Math.max(
Math.min(fifth, twoSquareRoots), hundredth
);
const motion = Math.ceil(motionStart / 2);
$("#member-motion,#ongoing-motion").html(motion);
$("#motion-start").html(motionStart);
$("#ongoing-motion").html(tenthOfPresentMembers);
$("#motion-start").html(fifthOfPresentMembers);
}
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment