773
edycje
mNie podano opisu zmian |
mNie podano opisu zmian |
||
Linia 9: | Linia 9: | ||
<html> | <html> | ||
<style> | |||
.center { | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
} | |||
</style> | |||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | ||
<div id="mttr-calculator"> | <div id="mttr-calculator"> | ||
Linia 45: | Linia 52: | ||
var mttr = (totalRepairTime / failures).toFixed(2); | var mttr = (totalRepairTime / failures).toFixed(2); | ||
$("#mttr-result").html("MTTR wynosi: " + mttr + " minut."); | $("#mttr-result").html("MTTR wynosi: " + mttr + " minut."); | ||
document.getElementById("mttr-result").innerHTML = MTTR; | |||
document.getElementById("mttr-result").classList.add("center"); | |||
}); | }); | ||
}); | }); |