FoxLabDashBoard/index.html

147 lines
2.7 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
2022-12-21 21:11:57 -05:00
<title>Fox's Lab Accelerator Dashboard</title>
</head>
<style>
body{
background-color : black;
}
2022-12-21 21:11:57 -05:00
2022-12-26 17:21:27 -05:00
#iframe1{
2022-12-21 21:11:57 -05:00
position:absolute;
2022-12-22 18:17:38 -05:00
top : 60%;
left : 10%;
width: 60%;
height: 35%;
2022-12-21 21:11:57 -05:00
z-index:1000;
border: 1px solid green;
2022-12-26 17:21:27 -05:00
}
#iframe2{
position:absolute;
top : 60%;
left : 10%;
width: 100;
height: 100;
z-index:1001;
border: 1px solid green;
2022-12-21 21:11:57 -05:00
}
2022-12-22 18:17:38 -05:00
canvas{
width: 99%;
height:98%;
border: 1px solid yellow;
}
#beamLine{
position: absolute;
z-index: 0;
}
#static{
position: absolute;
z-index: 1;
}
#clock{
font-size: 30px;
color: white;
background-color: black;
position: absolute;
z-index: 3;
}
#text{
color: aqua;
position:absolute;
top : 20%;
left : 45%;
width: 100;
height: 100;
z-index:1001;
}
</style>
<body>
<div id="text"></div>
<div id='clock'></div>
2022-12-21 21:11:57 -05:00
<!--<iframe src="http://localhost:3000/d-solo/MFym59G4k/new-dashboard?orgId=1&from=1672071127881&to=1672092727881&theme=dark&panelId=2" id="iframe1"></iframe>-->
<!--<iframe src="http://localhost:3000/d-solo/MFym59G4k/new-dashboard?orgId=1&from=1672071308654&to=1672092908654&panelId=4" id="iframe2"></iframe>-->
<iframe src="http://192.168.0.201:3000/d/MFym59G4k/new-dashboard?orgId=1&from=1672835547268&to=1672857147269" id="iframe1"></iframe>
2022-12-21 21:11:57 -05:00
2022-12-22 18:17:38 -05:00
<canvas width="3840" height="2160" id='beamLine' > Your browser doe snot support HTML canvas</canvas>
<canvas width="3840" height="2160" id='static' > Your browser doe snot support HTML canvas</canvas>
===================
Isotope: C12
PreAcceleration: 120.0 kV
Inflector: 3.70 A
LEB Voltage: -2.62 V
LEB feedback: 0.090 V
Tandem Pot.: 7.126 MV
Beam Energy: 50.000 MeV
Beam Charge: 6
Frac. Charge: 0.044
Beta: 0.0943
Analyzing Magnet: 6813.81 G
Beam Line: RESOLUT
</body>
<!-- ################################################ -->
<script>
let data;
function GetMassFromAZ(){
let client = new XMLHttpRequest();
client.onreadystatechange = function() {
data = client.responseText;
//alert(data);
}
client.open('GET', "test.py", false);
client.send();
}
GetMassFromAZ();
document.getElementById("text").innerHTML = data;
var beam_Line = 'RESOLUT';
function time() {
let clock = document.getElementById('clock');
let d = new Date();
clock.textContent = d;
}
time();
setInterval(time, 1000);
</script>
<script type="text/javascript" src="geo.js"></script>
<script>
destination = beam_Line;
EnableDetector();
lineMotion();
</script>
<!--
2022-12-26 17:21:27 -05:00
<script src="FoxLabDashBoard/geo.js"></script>
-->
</html>