Gitlab CSE Unil

Commit 9c9808d7 authored by M. Chardon's avatar M. Chardon
Browse files

alea - traduction etape 3 - B

parent 0532a28d
......@@ -33,6 +33,11 @@
"step3_A_parameters": "Parameters",
"step3_A_coef_att": "Coefficient of attenuation",
"step3_A_mask_size": "Size of mask",
"step3_B_info": "Input a sequence of 0 and 1. You will see which arrangements are considered by the computer to predict the following number as long as the graphic translation of the computer’s successes.",
"step3_B_model": "Model",
"step3_B_best_patterns": "Best patterns",
"step3_B_efficiency": "Efficiency",
"step3_B_next_value": "Next value",
"fin": "fin"
}
\ No newline at end of file
......@@ -33,6 +33,12 @@
"step3_A_parameters": "Paramètres",
"step3_A_coef_att": "Coefficient d'atténuation",
"step3_A_mask_size": "Taille du masque",
"step3_B_info": "Entrez une suite de 0 et de 1, vous verrez alors les différentes combinaisons considérées par l’algorithme pour prédire le chiffre suivant ainsi que la progression graphique du taux de succès rencontré par l’ordinateur.",
"step3_B_info": "Input a sequence of 0 and 1. You will see which arrangements are considered by the computer to predict the following number as long as the graphic translation of the computer’s successes.",
"step3_B_model": "Modèle",
"step3_B_best_patterns": "Meilleurs patterns",
"step3_B_efficiency": "Efficacité",
"step3_B_next_value": "Valeur suivante",
"fin": "fin"
}
\ No newline at end of file
......@@ -61,7 +61,7 @@
<ul class="nav navbar-nav navbar-right">
<li><a onclick="initLang('en');"><img style="background: white; height:25px;" alt="English" src="../img/flags/english.png"/></a></li>
<li><a onclick="initLang('fr');"><img style="background: white;height:25px;" alt="Français" src="../img/flags/french.png"/></a></li>
<li><a href="help.html">Help</a></li>
<li><a href="help.html"><span class="i18n" data-lang="help"></span></a></li>
</ul>
</div>
</div>
......@@ -71,17 +71,17 @@
<div class="row">
<div class="col-sm-3">
<ul class="nav nav-pills nav-stacked">
<li><a href="index.html">Step 1: test your sequence</a></li>
<li><a href="pasapas.html">Step 2: test the computeur</a></li>
<li class="active"><a href="understand.html">Step 3: understand</a></li>
<li><a href="games.html">Game</a></li>
<li><a href="index.html"><span class="i18n" data-lang="step1"></span></a></li>
<li><a href="pasapas.html"><span class="i18n" data-lang="step2"></span></a></li>
<li class="active"><a href="understand.html"><span class="i18n" data-lang="step3"></span></a></li>
<li><a href="games.html"><span class="i18n" data-lang="step4"></span></a></li>
</ul>
</div>
<div class="col-sm-9" style="padding-left: 20px;">
<ul class="nav nav-tabs">
<li><a href="understand.html">Parameters</a></li>
<li class="active"><a href="understandA.html">Algorithm</a></li>
<li><a href="understand.html"><span class="i18n" data-lang="step3_titleA"></span></a></li>
<li class="active"><a href="understandA.html"><span class="i18n" data-lang="step3_titleB"></span></a></li>
</ul>
<div class="row" style='margin-top:20px;'>
......@@ -89,10 +89,7 @@
<div class="alert alert-info alert-dismissable">
<strong>Info!</strong>
<p>
Input a sequence of 0 and 1. You will see which
arrangements are considered by the computer to
predict the following number as long as the graphic
translation of the computer’s successes.
<span class="i18n" data-lang="step3_B_info"></span>
</p>
</div>
</div>
......@@ -101,12 +98,12 @@
<div class="row" style='margin-top:20px;'>
<div class="col-sm-5">
<div class="row">
<div class="col-sm-9">
<div class="col-sm-8">
<button class="btn btn-info btn-lg" id="user0" onclick="insertVal(0);">0 [0]</button>
<button class="btn btn-primary btn-lg" id="user1" onclick="insertVal(1);">1 [1]</button>
</div>
<div class="col-sm-1">
<button class="btn btn-default" onclick="reset();">Reset</button>
<div class="col-sm-4">
<button class="btn btn-default" onclick="reset();"><span class="i18n" data-lang="btn_reset"></span></button>
</div>
</div>
......@@ -115,55 +112,24 @@
<textarea class="form-control" readonly="readonly" id="userinput" style="font-size: large;"></textarea>
</div>
</div>
<!--div class="row" style="margin-top: 20px;">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Prochaine proposition</div>
<div class="panel-body">
<div class="row">
<div class="col-sm-6">
Valeur proposée :
<input class="form-control" readonly="readonly" id="guessValue" />
</div>
<div class="col-sm-6">
Indice de confiance :
<input class="form-control" readonly="readonly" id="guessValueP" />
</div>
</div>
</div>
</div>
</div>
</div-->
<div class="row" style="margin-top: 20px;display:none;" id='model'>
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Model</div>
<div class="panel-heading"><span class="i18n" data-lang="step3_B_model"></span></div>
<div class="panel-body">
<div class="row">
<div class="col-sm-12">
Proposed value
<span class="i18n" data-lang="step2_proposed_value"></span>
<input class="form-control" readonly="readonly" id="guessValueMM" />
</div>
<!--div class="col-sm-3">
Indice confiance
<input class="form-control" readonly="readonly" id="guessValueMMP" />
</div>
<div class="col-sm-3">
Réussite total
<input class="form-control" readonly="readonly" id="guessValueMMCorrect" />
</div>
<div class="col-sm-3">
10 derniers
<input class="form-control" readonly="readonly" id="guessValueMMCorrect10" />
</div-->
</div>
<table class="table table-bordered table-striped" style="margin-top: 10px;">
<thead>
<tr>
<th>Best patterns</th>
<th>Efficiency</th>
<th>Next value</th>
<th><span class="i18n" data-lang="step3_B_best_patterns"></span></th>
<th><span class="i18n" data-lang="step3_B_efficiency"></span></th>
<th><span class="i18n" data-lang="step3_B_next_value"></span></th>
</tr>
</thead>
<tbody id="detailModeleME">
......@@ -179,15 +145,15 @@
<div class='row'>
<div class="col-sm-12">
<div class="panel panel-primary">
<div class="panel-heading">Percent correct answers</div>
<div class="panel-heading"><span class="i18n" data-lang="perc_correct"></span></div>
<div class="panel-body">
<div class="row">
<div class="col-sm-6">
Total of right guesses:
<span class="i18n" data-lang="tot_right"></span>:
<input class="form-control" readonly="readonly" id="guessValueCorrect" />
</div>
<div class="col-sm-6">
About the last 10 results:
<span class="i18n" data-lang="10_res"></span>:
<input class="form-control" readonly="readonly" id="guessValueCorrect10" />
</div>
</div>
......@@ -217,9 +183,9 @@
});
function trigKeyDownInit(event) {
if (event.which === 48) {
if (event.which === 48 || event.which === 96) {
insertVal(0);
} else if (event.which === 49) {
} else if (event.which === 49 || event.which === 97) {
insertVal(1);
}
}
......
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