Time Tracker Widget by Martin David

Developer
Size
3,547 Kb
Views
34,408

How do I make an time tracker widget by martin david?

Brilliant dribbble by Martin David http://dribbble.com/shots/1419698-Time-Tracker-Widget. What is a time tracker widget by martin david? How do you make a time tracker widget by martin david? This script and codes were developed by Boylett on 20 August 2022, Saturday.

Time Tracker Widget by Martin David Previews

Time Tracker Widget by Martin David - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Time Tracker Widget by Martin David</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- Oi, you! With the face! Have a look at this amazing dribbble by Martin David http://dribbble.com/shots/1419698-Time-Tracker-Widget
-->
<div class="time-tracker"> <div class="header"> <h1> <font>12:00</font> <small>WED<br />30 January 2014</small> </h1> <a href="#">. . .</a> </div> <ul class="contents"> <li class="red"> <small> <span>$180</span> XYZ Ltd. </small> <h1>03 : 02 : 46</h1> </li> <li> <small> <span>$90</span> dribbble </small> <h1>01 : 38 : 04</h1> </li> </ul> <div class="project"> <span> <i class="fa fa-clock-o"></i> 46 : 38 : 17<br /> <small>Budget: $4,500</small> </span> <strong>Sample Project</strong><br /> <i class="fa fa-user"></i> Dirk Brockhaus </div> <div class="controls"> TIME <h1> <span digit="hrs">00</span> : <span digit="min">00</span> : <span digit="sec">00</span> </h1> <a href="#" class="play"><i class="fa fa-pause"></i></a> <a href="#" class="stop"><i class="fa fa-stop"></i></a> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdn.ry-ry.co.uk/php.js/functions-min/datetime/date.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Time Tracker Widget by Martin David - Script Codes CSS Codes

@import url(http://c.boylett.uk/fonts/font-awesome/font-awesome.min.css);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700);
body
{ background: url(http://c.boylett.uk/images/textures/dark-cotton.png); font-family: "Open Sans"; font-weight: 300; font-size: 13px; color: #6A6A6A;
}
body:before
{ content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-shadow: inset 0 0 100px rgba(0, 0, 0, .5);
}
.time-tracker
{ display: block; margin: 40px auto; width: 310px; overflow: hidden; background: #FFF; background: linear-gradient(to bottom, #EDE9DE 0%, #EDE9DE 50%, #4B4B4B 51%, #4B4B4B 100%); border-radius: 30px; box-shadow: 0 2px 15px rgba(0, 0, 0, .5);
}
.time-tracker > .header
{ position: relative; background: #EDE9DE;
}
.time-tracker > .header > h1
{ position: relative; display: inline-block; margin: 0; padding: 10px 15px 10px 20px; font-size: 38px; font-weight: 400;
}
.time-tracker > .header > h1 > small
{ display: block; position: absolute; top: 17px; left: 100%; font-size: 14px; font-weight: 300; white-space: nowrap;
}
.time-tracker > .header > a
{ display: block; position: absolute; top: 0; right: 0; bottom: 0; padding: 15px 20px 0; width: 10px; text-align: center; text-decoration: none; font-weight: 600; font-size: 28px; color: inherit; line-height: 9px; vertical-align: middle;
}
.time-tracker > .contents
{ margin: 0; padding: 15px; max-height: 220px; background: #FFF;
}
.time-tracker > .contents > li
{ display: block; margin: 0 0 15px; padding: 15px; background: #B5C7B3; border-radius: 20px; color: #FFF;
}
.time-tracker > .contents > li.red { background: #F3C0AA }
.time-tracker > .contents > li > small > span { float: right }
.time-tracker > .contents > li > h1
{ display: block; margin: 0; padding: 5px 0 0; font-size: 22px; font-weight: 300; text-align: center;
}
.time-tracker > .contents > li:last-of-type { margin: 0 }
.time-tracker > .project
{ padding: 10px 10px 10px 15px; border-left: 5px solid #8BBCD2; background: #EDE9DE;
}
.time-tracker > .project > span
{ float: right; text-align: right;
}
.time-tracker > .project i.fa { padding-right: 5px }
.time-tracker > .controls
{ position: relative; padding: 10px 15px; background: #4B4B4B; color: #FFF;
}
.time-tracker > .controls > h1
{ display: block; margin: -5px 0 10px; padding: 0; font-size: 32px; font-weight: 300;
}
.time-tracker > .controls > h1 span { position: relative }
.time-tracker > .controls > h1 span:after
{ content: attr(digit); position: absolute; top: 100%; right: 0; left: 0; margin: -5px 0 0; font-size: 12px; font-weight: 100; text-align: center; color: #7AA4BC;
}
.time-tracker > .controls > a
{ display: block; position: absolute; right: 10px; bottom: 15px; width: 52px; height: 52px; line-height: 52px; vertical-align: middle; border: 2px solid #696967; background: #424343; border-radius: 100%; text-align: center; text-decoration: none; font-size: 18px; color: #FFF;
}
.time-tracker > .controls > .stop
{ right: 70px; bottom: 22px; width: 37px; height: 37px; line-height: 37px; background: #363636; border-color: #717270; font-size: 15px; color: #717270;
}

Time Tracker Widget by Martin David - Script Codes JS Codes

var Timer =
{ isTiming: true, current: 0, init: function() { setInterval(function(){Timer.setTimer()}, 1000); setInterval(Timer.setDate, 500); Timer.setDate(); $('.time-tracker > .controls > a.play').click(function() { Timer.isTiming = Timer.isTiming ? false : true; $(this).find('.fa').toggleClass('fa-pause fa-play'); }); $('.time-tracker > .controls > a.stop').click(function() { Timer.isTiming = false; Timer.log(Timer.current); Timer.current = 0; $(this).prev('a').find('.fa').removeClass('fa-pause fa-play').addClass('fa-play'); }); }, setDate: function() { $('.time-tracker > .header > h1 > font').html(date("g:i")); $('.time-tracker > .header > h1 > small').html(date("D").toUpperCase() + '<br />' + date("j F Y")); }, setTimer: function(s, m, h) { if(this.isTiming) this.current ++; var h = 0, m = 0, s = 0; s = this.current; while(s > 60) { m ++; s -= 60 } while(m > 60) { h ++; m -= 60 } while(String(h).length == 1) h = '0' + h; while(String(m).length == 1) m = '0' + m; while(String(s).length == 1) s = '0' + s; $('.time-tracker > .controls > h1 > span[digit="hrs"]').html(h); $('.time-tracker > .controls > h1 > span[digit="min"]').html(m); $('.time-tracker > .controls > h1 > span[digit="sec"]').html(s); }, log: function(time) { if(window.console) console.log('Logged At', time, 'Seconds'); }
};
$(Timer.init);
Time Tracker Widget by Martin David - Script Codes
Time Tracker Widget by Martin David - Script Codes
Home Page Home
Developer Boylett
Username boylett
Uploaded August 20, 2022
Rating 3
Size 3,547 Kb
Views 34,408
Do you need developer help for Time Tracker Widget by Martin David?

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!

Boylett (boylett) Script Codes
Create amazing video scripts 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!