some improvement

This commit is contained in:
Ryan@fsunuc 2022-12-15 18:02:38 -05:00
parent 116e49485a
commit 333af94f51
2 changed files with 14 additions and 12 deletions

View File

@ -61,8 +61,6 @@
<h1>HELIOSmatics</h1>
<hr>
<h1 id='reactionName' style="color: #1363A7"> 24F(d,p)25F@10MeV/u</h1>
<table>
@ -164,7 +162,7 @@
<td></td>
</tr>
</tr>
<td><input type="text" id='Ex2' name="Ex" size="8" value="0" enterkeyhint="done"/></td>
<td><input type="text" id='Ex2' name="Ex" size="8" value="1" enterkeyhint="done"/></td>
<td><input type="text" id='theta2' name="thetaCM" size="8" value="40" enterkeyhint="done"/></td>
<td></td>
<td></td>
@ -374,8 +372,12 @@ function addRow() {
let table = document.getElementById("ExTable");
let nRow = table.rows.length;
let row = table.insertRow(nRow-1);
row.innerHTML = '<td><input type="text" name="Ex" size="8" value=\"' + (nRow-2) + '\" id=\"Ex' + (nRow-1) + '\" enterkeyhint=\"done\"/></td> \
<td><input type="text" name="thetaCM" size="8" value=\"10\" id=\"theta' + (nRow-1) + '\" enterkeyhint=\"done\"/></td> \
let energy = Math.random()*Math.min(heavy[4], heavy[5], heavy[6]);
let angle = Math.floor(Math.random() * 30) + 10;
row.innerHTML = '<td><input type="text" name="Ex" size="8" value=\"' + energy.toFixed(3) + '\" id=\"Ex' + (nRow-1) + '\" enterkeyhint=\"done\"/></td> \
<td><input type="text" name="thetaCM" size="8" value=\"' + angle + '\" id=\"theta' + (nRow-1) + '\" enterkeyhint=\"done\"/></td> \
<td></td> \
<td></td> \
<td></td> \
@ -727,10 +729,10 @@ function PlotEZ(){
yRange = [0, haha2];
let layout = {
xaxis: {range: xRange, title: "Z [mm]", mirror : "allticks", linewidth : "1"},
xaxis: {range: xRange, title: { text : "Z [mm]", standoff : 1}, mirror : "allticks", linewidth : "1"},
yaxis: {range: yRange, title: "Energy [MeV]" , mirror : "allticks", linewidth : "1"},
title: reactionName,
margin: { l: 40, r: 40, b : 40, t : 40},
margin: { l: 40, r: 40, b : 60, t : 40},
legend: {yanchor:"top", xanchor:"left", x:"0.01",y:"0.99" }
};
@ -865,11 +867,11 @@ function PlotRZ(){
let yyy = [0, parseInt(document.getElementById('rRange').value)];
let layout = {
xaxis: {range: xxx, title: "Z [mm]", mirror : "allticks", linewidth : "1"},
xaxis: {range: xxx, title: { text : "Z [mm]", standoff : 1}, mirror : "allticks", linewidth : "1"},
yaxis: {range: yyy, title: "R [mm]" , mirror : "allticks", linewidth : "1"},
title: reactionName,
showlegend : true,
margin: { l: 40, r: 40, b : 40, t : 40},
margin: { l: 40, r: 40, b : 60, t : 40},
legend: { yanchor:"top", xanchor:"left", x:"0.01",y:"0.99"}
};

View File

@ -3,14 +3,14 @@
<html>
<head>
</head>
<body>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
</style>
<body>
<h1>DWBA and Monte Carlo Simulation</h1>
<form action = "simpleInput.py" method = "POST" target = "uploaded">