Simple Clock-in/Clock-out Timer for Tracker (wip)

Developer
Size
2,214 Kb
Views
38,456

How do I make an simple clock-in/clock-out timer for tracker (wip)?

Designed for mobile, will eventually feed times back into Tracker and log hours by date. What is a simple clock-in/clock-out timer for tracker (wip)? How do you make a simple clock-in/clock-out timer for tracker (wip)? This script and codes were developed by Matt Gross on 28 August 2022, Sunday.

Simple Clock-in/Clock-out Timer for Tracker (wip) Previews

Simple Clock-in/Clock-out Timer for Tracker (wip) - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple Clock-in/Clock-out Timer for Tracker (wip)</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="in">Clock In</div>
<div class="out">Clock Out</div>
<article id="timer" class="timer"> 0 seconds
</article> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Simple Clock-in/Clock-out Timer for Tracker (wip) - Script Codes CSS Codes

*, *:before, *:after { margin: 0; padding: 0; box-sizing: border-box;
}
body { position: absolute; top: 0; bottom: 0; left: 0; right: 0; font-family: Helvetica;
}
div { height: 50%; width: 100; transition: .2s ease; text-align: center; color: #fff; line-height: 300px;
}
article { position: absolute;
}
div:hover,
div:focus { opacity: 0.9;
}
.in { background: #333;
}
.out { background: #cf3a3a;
}
.timer { height: 200px; width: 200px; line-height: 200px; text-align: center; top: 50%; left: 50%; -webkit-transform: translate3d(-50%,-50%,0); border-radius: 50%; background: #eee; color: #333;
}

Simple Clock-in/Clock-out Timer for Tracker (wip) - Script Codes JS Codes

var $in = $( 'div.in' );
var $out = $( 'div.out' );
var today = new Date();
var $h = today.getHours();
var $m = today.getMinutes();
var $s = today.getSeconds();
var $timer = 0;
var clocker = null;
$in.click(function() { today = new Date(); $h = today.getHours(); $m = today.getMinutes(); $s = today.getSeconds(); clocker = window.setInterval( 'timerThing()', 1000 ); //alert( "Start the Timer - " + $h + ":" + $m + ":" + $s );
});
$out.click(function() { clearInterval( clocker ); //alert( "Stop the Timer" );
});
function timerThing() { $timer++; $( "#timer" ).html($timer +" seconds");
}
Simple Clock-in/Clock-out Timer for Tracker (wip) - Script Codes
Simple Clock-in/Clock-out Timer for Tracker (wip) - Script Codes
Home Page Home
Developer Matt Gross
Username mattgrosswork
Uploaded August 28, 2022
Rating 3
Size 2,214 Kb
Views 38,456
Do you need developer help for Simple Clock-in/Clock-out Timer for Tracker (wip)?

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!

Matt Gross (mattgrosswork) Script Codes
Create amazing blog posts 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!