SOLARIS_Web_Simulation/simpleSim.html
2022-12-10 02:35:56 -05:00

153 lines
3.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
</style>
<h1> I am working on it. </h1>
<form action = "simpleInput.py" method = "POST" target = "uploaded">
<h3>Reaction:</h3>
<table>
<tr>
<td>Beam </td>
<td style="text-align:right">A:</td>
<td><input type = "text" name = "beam_A" size="5"/></td>
<td style="text-align:right">Z:</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><input type = "text" name = "beam_Ex" size="5"/></td>
<td style="text-align:left">MeV</td>
</tr>
<tr>
<td>Target</td>
<td style="text-align:right">A:</td>
<td><input type = "text" name = "target_a" size="5"/></td>
<td style="text-align:right">Z:</td>
<td><input type = "text" name = "target_z" size="5"/></td>
</tr>
<tr>
<td>Light recoil</td>
<td style="text-align:right">A:</td>
<td><input type = "text" name = "lRecoil_a" size="5"/></td>
<td style="text-align:right">Z:</td>
<td><input type = "text" name = "lRecoil_z" size="5"/></td>
</tr>
<tr>
<td>Beam Energy</td>
<td></td>
<td><input type = "text" name = "KEA" size="5"/></td>
<td style="text-align:left">MeV/u</td>
</tr>
</table>
<h3>Detector:</h3>
<table>
<tr>
<input type="radio" id="helios" name="SSType" value="HELIOS"/><label for="helios">HELIOS</label>
<br><input type="radio" id="solaris" name="SSType" value="SOLARIS"/><label for="solaris">SOLARIS</label>
</tr>
<tr>
<td>B-field </td>
<td><input type = "text" name = "Bfield" size="5"/></td>
<td style="text-align:left">T</td>
</tr>
<tr>
<td>Array Pos.</td>
<td><input type = "text" name = "posArray" size="5"/></td>
<td style="text-align:left">mm (negative for upstream)</td>
</tr>
<tr>
<td>Recoil Pos.</td>
<td><input type = "text" name = "posRecoil" size="5"/></td>
<td style="text-align:left">mm (negative for upstream)</td>
</tr>
</table>
<h3>DWBA and Ex List:</h3>
<input type="checkbox" id="DWBA" name="DWBA" value="On"/><label for="DWBA">Cal. DWBA</label>
<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>
<tr>
<td>Incoming Channel</td>
<td>
<select name="op1" id="op1">
<option value="An">An.</option>
<option value="Kai">Kai.</option>
</select>
<td>
</tr>
<tr>
<td>Outgoing Channel</td>
<td> <td>
</tr>
</table>
<h3> Plot config:</h3>
<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" />
</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>
</html>