Coding Master
10.9K subscribers
288 photos
13 videos
220 files
3.08K links
ADMIN : @Coding_Master πŸ‘¨πŸΌβ€πŸ’Ό

Hello guys, I Created This Telegram Channel To Share Useful Content On Web Development & Programming.

πŸ‘‰ Free Ebooks
πŸ‘‰ Free Tools & Resources Links
πŸ‘‰ Free Projects Source Code

So Stay Tuned With Us & Keep Learning πŸ˜‰
Download Telegram
Coding Master
Social Media Icons 3D Glitch Effect.zip
Source Code File πŸ‘†πŸ‘†πŸ‘†
Program to change color of the text box if empty string submitted.

<script>
function funup(val)
{
if(val.length>0) document.getElementById('t1').style.borderColor="silver";
}
function fun1()
{
txt=document.getElementById('t1').value if(txt.length == 0) document.getElementById('t1').style.borderColor = "red"
}
</script>

<input type="text" id="t1" onkeyup="funup(this.value)">
<input type="button" value="Submit" onclick="fun1()">
Mark the data type recognized by JavaScript ??
Anonymous Quiz
64%
Boolean
20%
Null
11%
Char
5%
Double
Ultimate List Of CSS Properties.pdf
175.5 KB
The Ultimate List Of All CSS3 Properties
Write a JavaScript program to display the current day and time in the following format.

<script>
var today = new Date();
var day = today.getDay();
var daylist=["Sunday"
,"Monday","Tuesday"
,"Wednesday","Thursday","Friday",
"Saturday"];

console.log("Today is : " + daylist[day] + ".");

var hour = today.getHours();
var minute = today.getMinutes();
var second = today.getSeconds();
var prepand = (hour >= 12)? " PM ":" AM ";
hour = (hour >= 12)? hour - 12: hour;

if (hour===0 && prepand===' PM ')
{
if (minute===0 && second===0)
{
hour=12;
prepand=' Noon';
}
else
{
hour=12;
prepand=' PM';
}
}
if (hour===0 && prepand===' AM ')
{
if (minute===0 && second===0)
{
hour=12;
prepand=' Midnight';
}
else
{
hour=12;
prepand=' AM';
}
}

console.log("Current Time : "+hour + prepand + " : " + minute + " : " + second);

</script>
Top 10 Easy-To-Use Cheap eCommerce Website Builders 2020 πŸ‘‡πŸ‘‡πŸ‘‡