A Pen by Sindhuja

Developer
Size
2,242 Kb
Views
36,432

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 Previews

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;
}
A Pen by Sindhuja - Script Codes
A Pen by Sindhuja - Script Codes
Home Page Home
Developer Sindhuja
Username SindhujaD
Uploaded September 14, 2022
Rating 3
Size 2,242 Kb
Views 36,432
Do you need developer help for A Pen by Sindhuja?

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!

Sindhuja (SindhujaD) Script Codes
Create amazing web content 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!