📜  html 输入获取号码 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:10.399000             🧑  作者: Mango

代码示例1
Availability
Total Production Time hours
Breaks minutes
Malfunctions minutes
Theoretical production time:

function Calculate() { var TotalProductionTime = document.getElementById("TotalProductionTime").value; var TotalProductionTimeInMinutes = TotalProductionTime * 60; var Breaks = document.getElementById("Breaks").value; var Malfunctions = document.getElementById("Malfunctions").value; var TheoreticalProductionTime = TotalProductionTimeInMinutes - Breaks - Malfunctions; document.getElementById("test").innerHTML = TheoreticalProductionTime; }