Gitlab CSE Unil

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

alea - traduction etape 3 - B

parent 0532a28d
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"btn_reset": "Reset", "btn_reset": "Reset",
"btn_valid": "Valid", "btn_valid": "Valid",
"orange_wrong": "Orange: wrong guess", "orange_wrong": "Orange: wrong guess",
"blue_right": "Blue: right guess", "blue_right": "Blue: right guess",
"perc_correct": "Percent correct answers", "perc_correct": "Percent correct answers",
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"step2_instru": "Insert 10 values in order to init the process, then valid the value proposed by the computer", "step2_instru": "Insert 10 values in order to init the process, then valid the value proposed by the computer",
"step2_next_ans": "Next answer", "step2_next_ans": "Next answer",
"step2_proposed_value": "Proposed value", "step2_proposed_value": "Proposed value",
"step3_titleA": "Parameters", "step3_titleA": "Parameters",
"step3_titleB": "Algorithm", "step3_titleB": "Algorithm",
"step3_A_info1": "Insert a serial sequence or copy one from those proposed. You can act on the attenuation coefficient which is applied on the older number entries to give more weight to the new ones. The size of the mask allow you to decide how many numbers the computer will use to construct its prediction algorithm.", "step3_A_info1": "Insert a serial sequence or copy one from those proposed. You can act on the attenuation coefficient which is applied on the older number entries to give more weight to the new ones. The size of the mask allow you to decide how many numbers the computer will use to construct its prediction algorithm.",
...@@ -33,6 +33,11 @@ ...@@ -33,6 +33,11 @@
"step3_A_parameters": "Parameters", "step3_A_parameters": "Parameters",
"step3_A_coef_att": "Coefficient of attenuation", "step3_A_coef_att": "Coefficient of attenuation",
"step3_A_mask_size": "Size of mask", "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" "fin": "fin"
} }
\ No newline at end of file
...@@ -33,6 +33,12 @@ ...@@ -33,6 +33,12 @@
"step3_A_parameters": "Paramètres", "step3_A_parameters": "Paramètres",
"step3_A_coef_att": "Coefficient d'atténuation", "step3_A_coef_att": "Coefficient d'atténuation",
"step3_A_mask_size": "Taille du masque", "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" "fin": "fin"
} }
\ No newline at end of file
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<ul class="nav navbar-nav navbar-right"> <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('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 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> </ul>
</div> </div>
</div> </div>
...@@ -71,17 +71,17 @@ ...@@ -71,17 +71,17 @@
<div class="row"> <div class="row">
<div class="col-sm-3"> <div class="col-sm-3">
<ul class="nav nav-pills nav-stacked"> <ul class="nav nav-pills nav-stacked">
<li><a href="index.html">Step 1: test your sequence</a></li> <li><a href="index.html"><span class="i18n" data-lang="step1"></span></a></li>
<li><a href="pasapas.html">Step 2: test the computeur</a></li> <li><a href="pasapas.html"><span class="i18n" data-lang="step2"></span></a></li>
<li class="active"><a href="understand.html">Step 3: understand</a></li> <li class="active"><a href="understand.html"><span class="i18n" data-lang="step3"></span></a></li>
<li><a href="games.html">Game</a></li> <li><a href="games.html"><span class="i18n" data-lang="step4"></span></a></li>
</ul> </ul>
</div> </div>
<div class="col-sm-9" style="padding-left: 20px;"> <div class="col-sm-9" style="padding-left: 20px;">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li><a href="understand.html">Parameters</a></li> <li><a href="understand.html"><span class="i18n" data-lang="step3_titleA"></span></a></li>
<li class="active"><a href="understandA.html">Algorithm</a></li> <li class="active"><a href="understandA.html"><span class="i18n" data-lang="step3_titleB"></span></a></li>
</ul> </ul>
<div class="row" style='margin-top:20px;'> <div class="row" style='margin-top:20px;'>
...@@ -89,10 +89,7 @@ ...@@ -89,10 +89,7 @@
<div class="alert alert-info alert-dismissable"> <div class="alert alert-info alert-dismissable">
<strong>Info!</strong> <strong>Info!</strong>
<p> <p>
Input a sequence of 0 and 1. You will see which <span class="i18n" data-lang="step3_B_info"></span>
arrangements are considered by the computer to
predict the following number as long as the graphic
translation of the computer’s successes.
</p> </p>
</div> </div>
</div> </div>
...@@ -101,12 +98,12 @@ ...@@ -101,12 +98,12 @@
<div class="row" style='margin-top:20px;'> <div class="row" style='margin-top:20px;'>
<div class="col-sm-5"> <div class="col-sm-5">
<div class="row"> <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-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> <button class="btn btn-primary btn-lg" id="user1" onclick="insertVal(1);">1 [1]</button>
</div> </div>
<div class="col-sm-1"> <div class="col-sm-4">
<button class="btn btn-default" onclick="reset();">Reset</button> <button class="btn btn-default" onclick="reset();"><span class="i18n" data-lang="btn_reset"></span></button>
</div> </div>
</div> </div>
...@@ -115,55 +112,24 @@ ...@@ -115,55 +112,24 @@
<textarea class="form-control" readonly="readonly" id="userinput" style="font-size: large;"></textarea> <textarea class="form-control" readonly="readonly" id="userinput" style="font-size: large;"></textarea>
</div> </div>
</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="row" style="margin-top: 20px;display:none;" id='model'>
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-default"> <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="panel-body">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
Proposed value <span class="i18n" data-lang="step2_proposed_value"></span>
<input class="form-control" readonly="readonly" id="guessValueMM" /> <input class="form-control" readonly="readonly" id="guessValueMM" />
</div> </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> </div>
<table class="table table-bordered table-striped" style="margin-top: 10px;"> <table class="table table-bordered table-striped" style="margin-top: 10px;">
<thead> <thead>
<tr> <tr>
<th>Best patterns</th> <th><span class="i18n" data-lang="step3_B_best_patterns"></span></th>
<th>Efficiency</th> <th><span class="i18n" data-lang="step3_B_efficiency"></span></th>
<th>Next value</th> <th><span class="i18n" data-lang="step3_B_next_value"></span></th>
</tr> </tr>
</thead> </thead>
<tbody id="detailModeleME"> <tbody id="detailModeleME">
...@@ -179,15 +145,15 @@ ...@@ -179,15 +145,15 @@
<div class='row'> <div class='row'>
<div class="col-sm-12"> <div class="col-sm-12">
<div class="panel panel-primary"> <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="panel-body">
<div class="row"> <div class="row">
<div class="col-sm-6"> <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" /> <input class="form-control" readonly="readonly" id="guessValueCorrect" />
</div> </div>
<div class="col-sm-6"> <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" /> <input class="form-control" readonly="readonly" id="guessValueCorrect10" />
</div> </div>
</div> </div>
...@@ -217,9 +183,9 @@ ...@@ -217,9 +183,9 @@
}); });
function trigKeyDownInit(event) { function trigKeyDownInit(event) {
if (event.which === 48) { if (event.which === 48 || event.which === 96) {
insertVal(0); insertVal(0);
} else if (event.which === 49) { } else if (event.which === 49 || event.which === 97) {
insertVal(1); insertVal(1);
} }
} }
...@@ -270,6 +236,6 @@ ...@@ -270,6 +236,6 @@
</script> </script>
<script src="../js/main.js"></script> <script src="../js/main.js"></script>
</body> </body>
</html> </html>
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