A Pen by Alexander Nastase
How do I make an a pen by alexander nastase?
What is a a pen by alexander nastase? How do you make a a pen by alexander nastase? This script and codes were developed by Alexander Nastase on 21 August 2022, Sunday.
A Pen by Alexander Nastase - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Alexander Nastase</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script>
</head>
<body> <br /> <div style="text-align: center"> <span style="font-size: 11px">HH:MM:SS</span><br /> <label id="hours"> 00</label>:<label id="minutes">00</label>:<label id="seconds">00</label> <br /> <input type="button" id="gobutton" onclick="startTimer()" value="Start"> <input type="button" id="pausebutton" onclick="pauseTimer()" value="Pause"> <input type="button" id="stopbutton" onclick="stopTimer()" value="Stop"> <br /> <label id="totalTime"> </label> </div> <br /> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
A Pen by Alexander Nastase - Script Codes JS Codes
var hoursLabel = document.getElementById("hours"); var minutesLabel = document.getElementById("minutes"); var secondsLabel = document.getElementById("seconds"); var totalTime = document.getElementById("totalTime"); var totalSeconds = 0; var totalMinutes = 0; var totalHours = 0; var counter; var timerOn; var htmlResets; var totalMills = 0; function startTimer() { if (timerOn == 1) { return; } else { counter = setInterval(setTime, 10); timerOn = 1; htmlResets = 0; } } function pauseTimer() { if (timerOn == 1) { clearInterval(counter); timerOn = 0; } if (htmlResets == 1) { hoursLabel.innerHTML = "00"; minutesLabel.innerHTML = "00"; secondsLabel.innerHTML = "00"; totalMills = 0; totalSeconds = 0; totalMinutes = 0; totalHours = 0; } else { htmlResets = 1; } } function stopTimer() { totalTime.innerHTML = "Time Recorded: " + hoursLabel.innerHTML + ":" + minutesLabel.innerHTML + ":" + secondsLabel.innerHTML; hoursLabel.innerHTML = "00"; minutesLabel.innerHTML = "00"; secondsLabel.innerHTML = "00"; totalMills = 0; totalSeconds = 0; totalMinutes = 0; totalHours = 0; clearInterval(counter); timerOn = 0; } function setTime() { ++totalMills; if (totalHours == 99 & totalMinutes == 59 & totalSeconds == 60) { totalHours = 0; totalMinutes = 0; totalSeconds = 0; hoursLabel.innerHTML = "00"; minutesLabel.innerHTML = "00"; secondsLabel.innerHTML = "00"; clearInterval(counter); } if (totalMills == 100) { totalSeconds++; secondsLabel.innerHTML = pad(totalSeconds % 60); totalMills = 0; } if (totalSeconds == 60) { totalMinutes++; minutesLabel.innerHTML = pad(totalMinutes % 60); totalSeconds = 0; } if (totalMinutes == 60) { totalHours++; hoursLabel.innerHTML = pad(totalHours); totalMinutes = 0; } } function pad(val) { var valString = val + ""; if (valString.length < 2) { return "0" + valString; } else { return valString;
Developer | Alexander Nastase |
Username | anodpixels |
Uploaded | August 21, 2022 |
Rating | 3 |
Size | 2,142 Kb |
Views | 28,336 |
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!
Name | Size |
Simple Tabs | 2,131 Kb |
Pressable CSS Buttons | 4,863 Kb |
MaintenanceFastPage | 2,608 Kb |
Nifty Slider | 5,012 Kb |
Defcamp | 1,254 Kb |
Tryout_slider | 1,811 Kb |
Right Click Menu | 2,252 Kb |
CSS spinning loader | 2,244 Kb |
Target effects | 1,855 Kb |
Old Browser Warning | 2,198 Kb |
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!
Name | Username | Size |
Roman Numerical Converter | Vhall_io | 2,102 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
CSS only simple parallax scroll | Stanssongs | 3,708 Kb |
Word Wrap Algorithm for Multiline Canvas Text | Peterhry | 2,349 Kb |
Horizontal Navigation with Floats | Gymratpacks | 5,403 Kb |
Nice responsive team page | Infomiho | 3,139 Kb |
A Pen by Xand0r | Xand0r | 1,928 Kb |
Speech bubbles | Something | 1,547 Kb |
Project -Show the Local Weather | Luciano_Britis | 2,583 Kb |
Sign Up Form | Sicontis | 5,272 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!