A Pen by Tommy

Developer
Size
1,738 Kb
Views
4,048

How do I make an a pen by tommy?

What is a a pen by tommy? How do you make a a pen by tommy? This script and codes were developed by Tommy on 30 December 2022, Friday.

A Pen by Tommy Previews

A Pen by Tommy - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Tommy</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
</head>
<body> <button onclick="onClick()">Click</button>
<input type="date" id="date" value="2013-01-08">
<input type="time" id="startTime" value="01:59">
<input type="time" id="finishTime" value="05:36"> <script src="js/index.js"></script>
</body>
</html>

A Pen by Tommy - Script Codes JS Codes

function onClick() { console.clear(); var date = document.getElementById('date').value; console.log(date) var startTime = document.getElementById('startTime').value; console.log(startTime) startTime = date + ' ' + startTime; console.log('startTime: ' + startTime); var finishTime = date + ' ' + document.getElementById('finishTime').value; console.log('finishTime: ' + finishTime); var startDateTime = new Date(startTime); console.log(startDateTime); var finishtDateTime = new Date(finishTime); console.log(finishtDateTime); var diff = finishtDateTime - startDateTime; //milliseconds interval console.log(diff); var diffHours = Math.floor(diff / 36e5), // 36e5 = 60 * 60 * 1000 diffMinutes = Math.floor(diff % 36e5 / 60000); console.log(diffHours + ':' + diffMinutes);
}
A Pen by Tommy - Script Codes
A Pen by Tommy - Script Codes
Home Page Home
Developer Tommy
Username hoehoe
Uploaded December 30, 2022
Rating 3
Size 1,738 Kb
Views 4,048
Do you need developer help for A Pen by Tommy?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Tommy (hoehoe) Script Codes
Create amazing web content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!