added copy and paste settings
This commit is contained in:
parent
5af7c34acc
commit
7143576773
|
@ -9,6 +9,7 @@
|
||||||
<style>
|
<style>
|
||||||
body{
|
body{
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
background : #6DB33E;
|
||||||
}
|
}
|
||||||
.column{
|
.column{
|
||||||
float : left;
|
float : left;
|
||||||
|
@ -57,10 +58,12 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<body bgcolor="#6DB33E">
|
<body">
|
||||||
|
|
||||||
<h1>HELIOSmatics</h1>
|
<h1>HELIOSmatics</h1>
|
||||||
|
|
||||||
|
<button onclick="CopyInputs()">Copy settings to clipboard</button>
|
||||||
|
|
||||||
<h1 id='reactionName' style="color: #1363A7"> 24F(d,p)25F@10MeV/u</h1>
|
<h1 id='reactionName' style="color: #1363A7"> 24F(d,p)25F@10MeV/u</h1>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
|
@ -316,7 +319,6 @@ The calculation only give θ<sub>CM</sub> after the bending.
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<!-- ===================================================== -->
|
<!-- ===================================================== -->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -413,6 +415,8 @@ HELIOSmatics was first built by Ben P. Kay in MS Excel around 2010. It was modif
|
||||||
<br>
|
<br>
|
||||||
The calculation can be found in the source code (heliosmatics.js or press F12)
|
The calculation can be found in the source code (heliosmatics.js or press F12)
|
||||||
|
|
||||||
|
<p></p>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<hr>
|
<hr>
|
||||||
Experimental 3D model
|
Experimental 3D model
|
||||||
|
@ -425,6 +429,33 @@ Experimental 3D model
|
||||||
|
|
||||||
<script src="heliosmatics.js"></script>
|
<script src="heliosmatics.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function CopyInputs(){
|
||||||
|
let inputs = document.getElementsByTagName("input");
|
||||||
|
let copyText = "====HELIOSMATICS|";
|
||||||
|
for(let i = 0; i < inputs.length; i++){
|
||||||
|
if( inputs[i].type == 'text'){
|
||||||
|
//console.log(inputs[i].id.substring(0,2));
|
||||||
|
if( inputs[i].id.substring(0,2) == 'Ex' || inputs[i].id.substring(0,5) == 'theta' ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if( inputs[i].id == 'innerRecoil'){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
copyText += inputs[i].value + ", ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(copyText);
|
||||||
|
|
||||||
|
navigator.clipboard.writeText(copyText);
|
||||||
|
|
||||||
|
alert('setting copied to clipboard.\nCan paste it in Monte Carlo simulation.');
|
||||||
|
//window.open('simpleSim.html');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
|
|
|
@ -6,12 +6,15 @@
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
background: #6DB33E;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1>DWBA and Monte Carlo Simulation</h1>
|
<h1>DWBA and Monte Carlo Simulation</h1>
|
||||||
|
|
||||||
|
<button onclick="GetClipBoard()">Paste Settings from clipboard</button>
|
||||||
|
|
||||||
<form action = "simpleInput.py" method = "POST" target = "uploaded">
|
<form action = "simpleInput.py" method = "POST" target = "uploaded">
|
||||||
|
|
||||||
<h3>Reaction: </h3>
|
<h3>Reaction: </h3>
|
||||||
|
@ -73,6 +76,7 @@
|
||||||
<h3>DWBA and E<sub>x</sub> List:</h3>
|
<h3>DWBA and E<sub>x</sub> List:</h3>
|
||||||
|
|
||||||
<p> for 2-nucleon transfer, Orbital take the form nL=X, where n is number of node, X is momnetum number.</p>
|
<p> for 2-nucleon transfer, Orbital take the form nL=X, where n is number of node, X is momnetum number.</p>
|
||||||
|
<p> TODO: add button to add known states with parity selection</p>
|
||||||
|
|
||||||
<table id="ExTable">
|
<table id="ExTable">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -285,6 +289,35 @@ The source code for calculation can be found in <a href="https://github.com/cale
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
function GetClipBoard(){
|
||||||
|
|
||||||
|
navigator.clipboard.readText().then(
|
||||||
|
function(result){
|
||||||
|
heliosText = result;
|
||||||
|
console.log(result);
|
||||||
|
if( result.substring(0,16) == "====HELIOSMATICS" ){
|
||||||
|
let haha = result.substring(17).split(', ');
|
||||||
|
console.log(haha);
|
||||||
|
document.getElementsByName('beam_AZ')[0].value = haha[0];
|
||||||
|
document.getElementsByName('beam_Ex')[0].value = haha[1];
|
||||||
|
document.getElementsByName('target_AZ')[0].value = haha[2];
|
||||||
|
document.getElementsByName('lRecoil_AZ')[0].value = haha[3];
|
||||||
|
document.getElementsByName('KEA')[0].value = haha[5];
|
||||||
|
document.getElementsByName('BField')[0].value = haha[4];
|
||||||
|
|
||||||
|
document.getElementsByName('posArray')[0].value = haha[6];
|
||||||
|
document.getElementsByName('posRecoil')[0].value = haha[7];
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
GetClipBoard();
|
||||||
|
|
||||||
function addRow() {
|
function addRow() {
|
||||||
var table = document.getElementById("ExTable");
|
var table = document.getElementById("ExTable");
|
||||||
var nRow = table.rows.length;
|
var nRow = table.rows.length;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user