Coolest clock ever
How do I make an coolest clock ever?
Human clock using a few images. What is a coolest clock ever? How do you make a coolest clock ever? This script and codes were developed by Maksim Surguy on 12 September 2022, Monday.
Coolest clock ever - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Coolest clock ever</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="canvas">
<div id="hour1"></div>
<div id="hour2"></div>
<div id="minute1"></div>
<div id="minute2"></div>
<div id="second1"></div>
<div id="second2"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Coolest clock ever - Script Codes CSS Codes
html,body { margin:0px; padding:0px; background-color : #fff; }
#canvas{
position: absolute;
width: 465px;
height: 465px;
background-color : #fff;
background-repeat: no-repeat;
background-image: url(http://www.chabudai.org/temp/wonderfl/honehone/img/tenten.gif);
}
#hour1{
position: absolute;
width: 80px;
height: 100px;
top: 170px;
left: 40px;
background-repeat: no-repeat;
background-image: url(http://www.chabudai.org/temp/wonderfl/honehone/img/honehone1.gif);
}
#hour2{
position: absolute;
width: 80px;
height: 100px;
top: 170px;
left: 80px;
background-repeat: no-repeat;
background-image: url(http://www.chabudai.org/temp/wonderfl/honehone/img/honehone1.gif);
}
#minute1{
position: absolute;
width: 80px;
height: 100px;
top: 170px;
left: 170px;
background-repeat: no-repeat;
background-image: url(http://www.chabudai.org/temp/wonderfl/honehone/img/honehone1.gif);
}
#minute2{
position: absolute;
width: 80px;
height: 100px;
top: 170px;
left: 210px;
background-repeat: no-repeat;
background-image: url(http://www.chabudai.org/temp/wonderfl/honehone/img/honehone1.gif);
}
#second1{
position: absolute;
width: 80px;
height: 100px;
top: 170px;
left: 300px;
background-repeat: no-repeat;
background-image: url(http://www.chabudai.org/temp/wonderfl/honehone/img/honehone1.gif);
}
#second2{
position: absolute;
width: 80px;
height: 100px;
top: 170px;
left: 340px;
background-repeat: no-repeat;
background-image: url(http://www.chabudai.org/temp/wonderfl/honehone/img/honehone1.gif);
}
Coolest clock ever - Script Codes JS Codes
// forked from chabudai's "ホネホネ・クロック JS - forked from: Human Clock" https://jsdo.it/chabudai/4K7S
/** * FireFoxのみちゃんとしたスピードで表示されます。 * * Flash版はこちら * http://wonderfl.net/c/3gx1 */
window.onload = function () { var updateView = (function() { var sec; return function () { var now = new Date(); if (now.getSeconds() == sec) return; var second = now.getSeconds(); var minute = now.getMinutes(); var hour = now.getHours(); //1つずつにする var hour1; if(hour < 10){ hour1 = 0; }else{ hour1 = Math.floor(hour / 10); } var hour2 = hour%10; var minute1; if(minute < 10){ minute1 = 0; }else{ minute1 = Math.floor(minute / 10); } var minute2 = minute%10; var second1; if(second < 10){ second1 = 0; }else{ second1 = Math.floor(second / 10); } var second2 = second%10; _updateView(hour1, hour2, minute1, minute2, second1, second2); } })();
setInterval(updateView, 500);
function _updateView(h1, h2, m1, m2, s1, s2) {
//alert(h1+""+h2+":"+m1+""+m2+":"+s1+""+s2);
var _url = "http://www.chabudai.org/temp/wonderfl/honehone/img/"; $('#hour1').css("background-image", "url("+_url+"h" + h1 + ".gif)"); $('#hour2').css("background-image", "url("+_url+"hh" + h2 + ".gif)"); $('#minute1').css("background-image", "url("+_url+"m" + m1 + ".gif)"); $('#minute2').css("background-image", "url("+_url+"mm" + m2 + ".gif)"); $('#second1').css("background-image", "url("+_url+"s" + s1 + ".gif)"); $('#second2').css("background-image", "url("+_url+"ss" + s2 + ".gif)"); }
}
Developer | Maksim Surguy |
Username | msurguy |
Uploaded | September 12, 2022 |
Rating | 4.5 |
Size | 2,503 Kb |
Views | 38,456 |
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 |
Magnetic particles - iOS version | 12,973 Kb |
Background Blur plugin | 7,809 Kb |
Bootstrap - flat ui buttons | 3,982 Kb |
Sortable Grid UI JS | 5,157 Kb |
Sort algorithms illustrated | 8,214 Kb |
Simplest Parallax effect ever. | 1,930 Kb |
Ladda Bootstrap 3 | 3,476 Kb |
Lightning In JS | 15,349 Kb |
Mesmerizing Delaunay | 4,925 Kb |
USA using webfont stately | 2,579 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 |
Fluid Grid 12 | Alexoliverwd | 2,309 Kb |
Lunar eclipse | Ademilter | 2,056 Kb |
Scroll using CSS | Casperovic | 2,159 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
NT Tribute | Skybutterfly | 2,850 Kb |
Slider css only | Armandobau | 2,161 Kb |
Main page display | BarryKe | 4,562 Kb |
Faux column absolute wrapper | Yurimorini | 1,823 Kb |
Login with flip 3d animation | Mariusbalaj | 3,014 Kb |
Pure CSS Read More Arrow | Zephyr | 1,747 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!