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

update counters

parent a8666aac
No related branches found
No related tags found
No related merge requests found
Pipeline #20182 passed
...@@ -77,20 +77,12 @@ ...@@ -77,20 +77,12 @@
</thead> </thead>
<tbody class="border-x border-b border-gray-100"> <tbody class="border-x border-b border-gray-100">
<tr> <tr>
<th class="font-bold text-left px-4 py-2 border-r border-r-gray-100">Setina</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="hundredth">0</th> <th class="font-normal px-4 py-2" id="fifth-of-present-members">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>
</tr> </tr>
<tr> <tr>
<th class="font-bold text-left px-4 py-2 border-r border-r-gray-100">Pětina</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="fifth">0</th> <th class="font-normal px-4 py-2" id="tenth-of-present-members">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>
</tr> </tr>
</tbody> </tbody>
</table> </table>
...@@ -105,17 +97,6 @@ ...@@ -105,17 +97,6 @@
</tr> </tr>
</thead> </thead>
<tbody class="border-x border-b border-gray-100"> <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"> <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-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> <th class="font-normal px-4 py-2" id="ongoing-motion">0</th>
......
This diff is collapsed.
...@@ -20,22 +20,14 @@ $(window).ready( ...@@ -20,22 +20,14 @@ $(window).ready(
return; return;
} }
const hundredth = Math.ceil(memberCount / 100); const fifthOfPresentMembers = Math.ceil(memberCount / 5);
const fifth = Math.ceil(memberCount / 5); const tenthOfPresentMembers = Math.ceil(memberCount / 10);
const twoSquareRoots = Math.ceil(2 * Math.sqrt(memberCount));
$("#hundredth").html(hundredth); $("#fifth-of-present-members").html(fifthOfPresentMembers);
$("#tenth").html(Math.ceil(memberCount / 10)); $("#tenth-of-present-members").html(tenthOfPresentMembers);
$("#fifth").html(fifth);
$("#two-square-roots").html(twoSquareRoots);
const motionStart = Math.max( $("#ongoing-motion").html(tenthOfPresentMembers);
Math.min(fifth, twoSquareRoots), hundredth $("#motion-start").html(fifthOfPresentMembers);
);
const motion = Math.ceil(motionStart / 2);
$("#member-motion,#ongoing-motion").html(motion);
$("#motion-start").html(motionStart);
} }
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment