Commit 83735065 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

mise à jour ergo

parent afbdc526
......@@ -346,26 +346,27 @@
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<button type="button" class="btn-espace" onclick="space()">Espace</button>
</td>
</tr>
</table>
</div>
<div class="tab-pane fade d-flex flex-column justify-content-center align-items-center" id="nav-pinyin" role="tabpanel" aria-labelledby="nav-pinyin-tab">
<!-- PINYIN -->
<div style="text-align: center;">
<div id="pinyinLabAPI" style="height: 25px;display:none"></div>
<div id="pinyinLab" class="contours" style="font-size: 6em; height:150px"></div>
</div>
<div class="d-flex justify-content-around m-2" style="width:100%">
<div class="d-flex justify-content-around m-2" style="width:100%;">
<button type="button" class="btn btn-primary" onclick="space()">空格</button>
<button type="button" class="btn btn-outline-success px-5" onclick="validPinyin()">OK了!</button>
<button type="button" class="btn btn-outline-success px-5" onclick="recupPhon('syll_'+[currentSyll.initiale.phon, currentSyll.glide.phon, currentSyll.tonale.phon, currentSyll.finale.phon, currentSyll.tone].join('.'))">OK了!</button>
<button type="button" class="btn btn-danger" onclick="erasePinyin()">重置</button>
</div>
</div>
<div class="tab-pane fade" id="nav-pinyin" role="tabpanel" aria-labelledby="nav-pinyin-tab">
<div class="d-flex flex-column justify-content-center align-items-center">
<!-- PINYIN -->
<div style="text-align: center;">
<div id="pinyinLabAPI" style="height: 25px;display:none"></div>
<div id="pinyinLab" class="contours" style="font-size: 6em; height:150px"></div>
</div>
<div class="d-flex justify-content-around m-2" style="width:100%; padding-top:20px">
<button type="button" class="btn btn-primary" onclick="space()">空格</button>
<button type="button" class="btn btn-outline-success px-5" onclick="validPinyin()">OK了!</button>
<button type="button" class="btn btn-danger" onclick="erasePinyin()">重置</button>
</div>
</div>
</div>
<div class="tab-pane fade show active" id="nav-aide" role="tabpanel" aria-labelledby="nav-aide-tab">
<strong>Bienvenue dans la nouvelle version du PhonoDrop !</strong>
......
......@@ -397,6 +397,11 @@ function validPinyin() {
}
function erasePinyin() {
$("#syll1").click();
$("#syll2").click();
$("#syll3").click();
$("#syll4").click();
toggleTone(5);
document.getElementById('pinyinLab').innerHTML = '';
document.getElementById('pinyinLabAPI').innerHTML = '';
document.getElementById('pinyinLab').classList.remove("pinyinAtteste");
......
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