[js] colored table

dev
MITSUNARI Shigeo 7 years ago
parent c834ac018d
commit 9a89c7ddce
  1. 2
      docs/demo/she-demo2.js
  2. 5
      docs/demo/she2.html
  3. 3
      docs/demo/style.css

@ -92,7 +92,7 @@ function send() {
obj.html('') obj.html('')
{ {
var header = [ var header = [
'EncG1(x)', 'EncG2(y)', 'EncGT(x y)' 'EncG1(x)', 'EncG2(y)', 'EncGT(x * y)'
] ]
var t = $('<tr>').attr('id', 'header') var t = $('<tr>').attr('id', 'header')
for (var i = 0; i < header.length; i++) { for (var i = 0; i < header.length; i++) {

@ -45,10 +45,9 @@ secretKey : <div name="sec" class="hex"></div>
publicKey : <div name="pub" class="hex"></div> publicKey : <div name="pub" class="hex"></div>
<table border=1 id="server_table" width="100%" summary="server"> <table border=1 id="server_table" width="100%" summary="server">
<tr id="header"><th>ciphertext</tr>
</table> </table>
<button type="button" onclick="mul()">3. EncG1(xi) * EncG2(y)</button><br> <button type="button" onclick="mul()">3. compute EncGT(x * y) := EncG1(x) * EncG2(y)</button><br>
<button type="button" onclick="sum()">4. sum Enc(xi * yi)</button> <button type="button" onclick="sum()">4. sum Enc(x * y)</button>
<div>result</div> <div>result</div>
<div name="encSumS" class="hex">0</div> <div name="encSumS" class="hex">0</div>
<button type="button" onclick="recv()">5. return to client</button> <button type="button" onclick="recv()">5. return to client</button>

@ -32,6 +32,9 @@ td {
#header { #header {
background-color: #ddf; background-color: #ddf;
} }
#client_header {
background-color: #ddf;
}
button { button {
margin: 5px; margin: 5px;

Loading…
Cancel
Save