+ 清空内容时须二次确认(仅适用于干燥失重与炽灼残渣)

+ 修改内容显示方式,使其更加友好
This commit is contained in:
2022-05-10 23:20:18 +08:00
parent 7c54b671b6
commit 8107427a2e
5 changed files with 41 additions and 37 deletions

View File

@@ -55,25 +55,27 @@
var average = decimal.add(lod1, lod2).div(2).toString();
var msg = "<br>" +
"Lod1 = " + lod1 + "<br>" +
"Lod2 = " + lod2 + "<br>";
"第一组干燥失重 = " + lod1 + "<br>" +
"第二组干燥失重 = " + lod2 + "<br>" +
"两组干燥失重平均值 = " + average + "<br>";
if (m0l != '' && m1l != '') {
msg += "m0+m1(Lod1) = " + decimal.add(m0l, m1l).toString() + "<br>";
msg += "第一组恒重后空瓶+样 = " + decimal.add(m0l, m1l).toString() + "<br>";
}
if (m0r != '' && m1r != '') {
msg += "m0+m1(Lod2) = " + decimal.add(m0r, m1r).toString() + "<br>";
msg += "第二组恒重后空瓶+样 = " + decimal.add(m0r, m1r).toString() + "<br>";
}
msg += "Average(Lod1,Lod2) = " + average + "<br>";
message(msg);
});
$("#clear").click(function () {
var confirm = window.confirm("所填写的数据将被清空,确定?");
if (!confirm) {
return;
}
input_m0l.value = "";
input_m1l.value = "";
input_m3l.value = "";
@@ -130,10 +132,11 @@
</head>
<body>
<h3>干燥失重</h3>
<input type="text" name="lod-name" id="lod-name" placeholder="样品批号"><br><br>
<div class="one-team">
第一组Lod1<br>
第一组<br>
<input type="number" name="m0l" id="m0l" class="one-input m0" placeholder="m0" inputmode="decimal"><br>
<input type="number" name="m1l" id="m1l" class="one-input m1" placeholder="m1" inputmode="decimal"><br>
<input type="number" name="m3l" id="m3l" class="one-input m3" placeholder="m3" inputmode="decimal"><br>
@@ -141,7 +144,7 @@
</div>
<div class="two-team">
第二组Lod2<br>
第二组<br>
<input type="number" name="m0r" id="m0r" class="two-input m0" placeholder="m0" inputmode="decimal"><br>
<input type="number" name="m1r" id="m1r" class="two-input m1" placeholder="m1" inputmode="decimal"><br>
<input type="number" name="m3r" id="m3r" class="two-input m3" placeholder="m3" inputmode="decimal"><br>
@@ -158,4 +161,4 @@
</body>
</html>
</html>