Skip to content
Permalink
Browse files

Update webclient UI

  • Loading branch information...
JeanJacquesSerpoul committed Sep 26, 2019
1 parent 4fe648c commit c13f6ec53c20a86890a8654dc9e7ea64a561deb0
Showing with 13 additions and 13 deletions.
  1. +2 −9 webclient/index.html
  2. +11 −4 webclient/js/bridge.js
@@ -9,7 +9,7 @@
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="js/bridge.js?v=0053"></script>
<script src="js/bridge.js?v=0055"></script>
<title>Bridge-Generateur de donnes</title>
</head>

@@ -358,18 +358,11 @@
</div>
<div id="tabs-4">
<div id="showpbn">
<input
title="Affiche la donne au format PBN.(Si la 1ere main n'est pas Nord, mettre au debut du PBN E: pour Est, S: pour Sud, W: pour Ouest, puis cliquer sur PBN)"
class="button" name="setpbnbtn" id="setpbnbtn" type="button" onclick="setPbn();" value="PBN">
<br />
<input type="text" id="currentpbn" name="currentpbn" placeholder="PBN" size="65">
<input type="text" id="currentpbn" name="currentpbn" placeholder="" size="65">
</div>
</div>
<div id="tabs-5">
<div id="showindex">
<input title="Génère la donne associée à l'index." class="button" type="button" name="getfromindexbtn"
id="getfromindexbtn" onclick="getFromIndex();" value="Index">
<br />
<input type="text" id="index-donne" name="index-donne" size="65" placeholder="Index de la donne">
</div>
</div>
@@ -289,7 +289,6 @@ function pbn() {
});
}


}


@@ -511,11 +510,11 @@ function getIdemList(result) {
}

function setContract(nbTricks) {
var levelContract= 6
var levelContract = 6
var r = nbTricks - levelContract
if (r <= 0) {
return "-"
}
}
return r
}

@@ -584,7 +583,7 @@ function calcPar() {
}

function generate() {
if (activeTabs() >= 3) {
if (activeTabs() >= 5) {
return;
}
initCalc();
@@ -655,6 +654,14 @@ function generate() {
}
});
}
if (activeTabs() == 3) {
setPbn();
}
if (activeTabs() == 4) {
getFromIndex();
}


}

function activeTabs() {

0 comments on commit c13f6ec

Please sign in to comment.
You can’t perform that action at this time.