Minutes to Days
Enter minutes to convert to days.
by Carin Camen
HTML
<body>
<header>
<div id="title">
<p>Enter minutes to convert to days.</p>
</div>
</header>
<content>
<!-- <div id="button_enter">
<button onclick="myFunction()">Click to enter minutes.</button>
</div>
<div id="button_solve">
<button onclick="myFunction()">Click to convert to days.</button>
</div>-->
<script>
var hello_text = "Here you go.";
var middle01_text = "minutes equals";
var close_text = "day(s).";
var minutes = prompt("Please enter minutes.", "Minutes");
var days = (minutes / 1440).toFixed(2);
var output_text = "<h1>" + hello_text + " " + minutes + " " + middle01_text + " " + days + " " + close_text + "</h1>";
document.write(output_text);
</script>
</content>
</body>
JavaScript
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();