A Pen by Sindhuja
How do I make an a pen by sindhuja?
Need inspiration for a color scheme? Look at this clock and you will be sure to get inspiration soon! This twist to the classic hexadecimal clock includes the date, and shows the complementary color of the background, which is the color of the current time.. What is a a pen by sindhuja? How do you make a a pen by sindhuja? This script and codes were developed by Sindhuja on 14 September 2022, Wednesday.
A Pen by Sindhuja - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Sindhuja</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!--The background is the color of the time-->
<!--Format for time is hhmmss-->
<!--Uncommenting some JS will make the text the complimetary color of the time-->
<div id="hex"></div> <script src="js/index.js"></script>
</body>
</html>
A Pen by Sindhuja - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);
* { margin: 0; padding: 0;
}
html, body { height: 100%;
}
#hex { font: 1200% Open Sans; height: 100px; text-align: center; color:white;
}
A Pen by Sindhuja - Script Codes JS Codes
//declare all variables
var d, h, mi, s, color, color2;
displayTime();
function displayTime(){ d = new Date(); h = d.getHours(); mi = d.getMinutes(); s = d.getSeconds(); //add zero in front of single digit numbers if(h<= 9) h= '0'+h; if(mi<= 9) mi= '0'+mi; if(s<= 9) s= '0'+s; //change time into a color color = "#"+h+mi+s; color3 = h+":"+mi+":"+s; document.body.style.background=color; document.getElementById("hex").innerHTML=color3; setTimeout(displayTime, 1000);
//uncommenting the following code will make the text the complemetary of the background // var fg = color; // fg = fg.substring(1); // fg = 0 - fg; // fg = fg + 717171; // fg = "#"+fg; // document.getElementById("hex").style.color = fg;
}
Developer | Sindhuja |
Username | SindhujaD |
Uploaded | September 14, 2022 |
Rating | 3 |
Size | 2,242 Kb |
Views | 36,432 |
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 |
Cocoa Brownies Recipe | 3,035 Kb |
Animated CodePen Logo | 1,704 Kb |
Pizza Order Form | 1,995 Kb |
Coffee | 2,015 Kb |
Airbnb Homepage | 2,480 Kb |
SVG Fill Animation | 2,145 Kb |
Anais Nin Quote Typography | 2,507 Kb |
Minimal SVG Animation | 2,565 Kb |
Earth Orbit | 2,120 Kb |
Google Redisign | 2,641 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 |
GrcJS | Vino6 | 2,047 Kb |
C.Rowe Button | Brownerd | 2,473 Kb |
Barber Shop | Bhlaird | 6,270 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
3D flipping card | Ssaakkaa | 2,238 Kb |
Magnus 3 | ARocketfish | 7,944 Kb |
Filter inputs | Rowinf | 1,721 Kb |
Cars going | Netoguimaraes | 1,699 Kb |
Pure CSS Tooltip | APinix | 2,815 Kb |
CSS Link Zoom On Click | Bryce | 1,960 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!