UI improvemen

This commit is contained in:
Ryan@fsunuc 2022-12-10 02:35:56 -05:00
parent 306789a0e1
commit c18b0fd94e
5 changed files with 76 additions and 17 deletions

BIN
FSU_logo_640.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 KiB

View File

@ -172,9 +172,11 @@ if dwbaPNG != "" :
print ("<br> Downlaod the <a href=\"files/%s\" download=\"%s\">%s</a>" % (fn4+".in", fn4+".in", fn4+".in")) print ("<br> Downlaod the <a href=\"files/%s\" download=\"%s\">%s</a>" % (fn4+".in", fn4+".in", fn4+".in"))
print ("<br> Downlaod the <a href=\"files/%s\" download=\"%s\">%s</a>" % (fn4+".out", fn4+".out", fn4+".out")) print ("<br> Downlaod the <a href=\"files/%s\" download=\"%s\">%s</a>" % (fn4+".out", fn4+".out", fn4+".out"))
print ("<br> Downlaod the <a href=\"files/%s\" download=\"%s\">%s</a>" % (fn4+".Xsec.txt", fn4+".Xsec.txt", fn4+".Xec.txt")) print ("<br> Downlaod the <a href=\"files/%s\" download=\"%s\">%s</a>" % (fn4+".Xsec.txt", fn4+".Xsec.txt", fn4+".Xec.txt"))
print ("<br> Downlaod the <a href=\"files/%s\" download=\"%s\">%s</a>" % (fn4+".root", fn4+".root", fn4+".root"))
if pngName != "" : if pngName != "" :
print ("<img src=\"files/%s\">" % pngName) print ("<img src=\"files/%s\">" % pngName)
print ("<br> Downlaod the simulation <a href=\"files/transfer.root\" download=\"transfer.root\">root file</a>")
print ("<br><br><br>#################################### programs text output") print ("<br><br><br>#################################### programs text output")
print ("<table>") print ("<table>")

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>SOLARIS Simulation </title> <title>SOLARIS Si-Array Mode Simulation </title>
</head> </head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">

View File

@ -26,7 +26,19 @@
</ul> </ul>
</p> </p>
<h4>This page is created and hosted by FSU</h4> <h4>This page is created and hosted by FSU. Contact Ryan Tang (rtang at fsu.edu)</h4>
<img src="FSU_logo_640.png" width="300">
<h2> Todo : </h2>
<ul>
<li>Better descriptions of the input files</li>
<li>Finsih the simiple input</li>
<li>File name of the images of past calculations include reaction</li>
<li>Change the legend position of the DWBA calcualtion</li>
<li>Use interactibe root canvas</li>
<li>A 3-D simulation? </li>
<li>modified transfer.root, so it store the position of maximum radius of the heavy recoil </li>
</ul>
</body> </body>
</html> </html>

View File

@ -24,6 +24,8 @@
<td><input type = "text" name = "beam_A" size="5"/></td> <td><input type = "text" name = "beam_A" size="5"/></td>
<td style="text-align:right">Z:</td> <td style="text-align:right">Z:</td>
<td><input type = "text" name = "beam_Z" size="5"/></td> <td><input type = "text" name = "beam_Z" size="5"/></td>
<td style="text-align:right">J-pi</td>
<td><input type = "text" name = "beam_Jpi" size="5"/><td>
<td style="text-align:right">Ex:</td> <td style="text-align:right">Ex:</td>
<td><input type = "text" name = "beam_Ex" size="5"/></td> <td><input type = "text" name = "beam_Ex" size="5"/></td>
<td style="text-align:left">MeV</td> <td style="text-align:left">MeV</td>
@ -76,32 +78,75 @@
<h3>DWBA and Ex List:</h3> <h3>DWBA and Ex List:</h3>
<p> How to allow as many as Ex??? may be hard coded for 5 max?</p> <input type="checkbox" id="DWBA" name="DWBA" value="On"/><label for="DWBA">Cal. DWBA</label>
<p> May be just on/off, and selection of GOP? the L transfer should put in Ex List? </p>
<p></p>
<table id="ExTable">
<tr>
<td> Ex [MeV]</td>
<td> J-pi</td>
<td> Orbital </td>
</tr>
</tr>
<td><input type="text" size="5" value="0"/></td>
<td><input type="text" size="5" value="0+"/></td>
<td><input type="text" size="5" value="0d3/2"/></td>
</tr>
<tr>
<td><button type="button" onclick="addRow()">Add Ex</button></td>
<td></td>
<td><button type="button" onclick="deleteRow()">Remove Ex</button></td>
</tr>
</table>
<p></p>
<table> <table>
<tr> <tr>
<td>Incomming</td> <td>Incoming Channel</td>
<td>Outgoing</td> <td>
<select name="op1" id="op1">
<option value="An">An.</option>
<option value="Kai">Kai.</option>
</select>
<td>
</tr> </tr>
<tr> <tr>
<td> <td>Outgoing Channel</td>
<input type="radio" id="op1" name="GOP1" value="An"/><label for="op1">An.</label> <td> <td>
<br><input type="radio" id="op2" name="GOP1" value="Kai"/><label for="p[2">Kai</label>
</td>
<td>
<input type="radio" id="op1" name="GOP2" value="An"/><label for="op1">An.</label>
<br><input type="radio" id="op2" name="GOP2" value="Kai"/><label for="p[2">Kai</label>
</td>
</tr> </tr>
</table> </table>
<h3> Plot config:</h3> <h3> Plot config:</h3>
<p> click boxes...</p>
<input type="checkbox" id="pcExZ" name="pcExZ" value="On"/><label for="pxExZ">e vs z</label>
<p></p>
<input type = "submit" value = "Submit and Run Simulation" /> <input type = "submit" value = "Submit and Run Simulation" />
</form> </form>
<script>
function addRow() {
var table = document.getElementById("ExTable");
var nRow = table.rows.length;
var row = table.insertRow(nRow-1);
row.innerHTML = '<td><input type="text" size="5"/></td> \
<td><input type="text" size="5"/></td> \
<td><input type="text" size="5"/></td>';
}
function deleteRow(){
var table = document.getElementById("ExTable");
var nRow = table.rows.length;
if ( nRow > 3){
table.deleteRow(nRow-2);
}
}
</script>
</body> </body>
</html> </html>