J.D.B. DIASOLUKA Nz. Luyalu
Calcul des RDVs, version 3
mardi 7 mai 2019 - 2 / 11 - 5:31:00
Le code source du programme :
<html><head><meta http-equiv="Content-Type" content="text/html;
charset=windows-1252" />
<base target="_top">
<title>Utilitaire de Machine à scrutin 1.0</title>
<meta content="30 days" name=Revisit-after>
<meta name=ROBOTS content="INDEX,FOLLOW">
<meta http-equiv=Page-Enter
content="RevealTrans(Duration=3,Transition=23)">
<meta http-equiv=Page-Exit
content="RevealTrans(Duration=3,Transition=23)">
<meta http-equiv=Content-Language content=fr-be>
<meta name=Title content="Logiciel de Machine à voter|Societe">
<meta name=Created content="Lundi 06 mai 2019 - 09:08:28 (AM)">
<meta name=Modified content="Lundi 06 mai 2019 - 18:10:22 (PM)">
<meta name=description content="Logiciel de Machine à voter">
<meta name=keywords content="machine à
voter,vote,élections,scrutin,urnes,candidat,postulant,prétendant,candidats,po
stulants,prétendants,scruter">
<meta name="author" content="Dr. Jean-Baptiste Dadet DIASOLUKA
Nzoyifuanga Luyalu (CNOM : 0866) - Ophtalmologiste">
<meta name="license" content="gratuit">
<meta name="author-site" content="http://diasmath.blogg.org">
<meta name="author-site2" content="http://www.amessi.org/diasoluka">
<meta name="author-site3" content="https://www.vk.com/diasoluyalu">
<script type = "text/javascript"> "use strict";
const Elus = [];
let voix = [], cand, encore="",totvoix=0,
cumulcand,tcumulcand,prevcandidat;
function scruter(p){
const voted=(p.innerHTML);
totvoix++;
if(!Elus.includes(voted)){
Elus.push(voted);
voix.push(1);
cand=Elus.indexOf(voted);
console.log(`\n# ${encore} LISTE DES ÉLUS = `);
console.log(Elus);
console.log("Leurs Voix =",voix);
console.log("Donc Nb des candidats déjà élus = ",cand+1);
encore="ENCORE UN NOUVEL ÉLU :";
prevcandidat=voted, cumulcand=1;
}
else {
cand=Elus.indexOf(voted);
voix[cand]++;
if(voted==prevcandidat) ++cumulcand;
else cumulcand=1;