Skip to main content

Posts

Digital Clock JAVA script

const hourEl = document.getElementById("hour") const minuteEl = document.getElementById("minutes") const secondEl = document.getElementById("seconds") const ampmEl = document.getElementById("ampm") function updateClock(){     let h = new Date().getHours()     let m = new Date().getMinutes()     let s = new Date().getSeconds()     let ampm = "AMPM"     if(h > 12){         h = h- 12         ampm = "PM"     }     h = h<10 ? "0" + h : h;     m = m<10 ? "0" + m : m;     s = s<10 ? "0" + s : s;     hourEl.innerText = h;     minuteEl.innerText = m;     secondEl.innerText = s;     ampmEl, (innerText = ampm);     setTimeout(()=> {         updateClock()     }, 1000) } updateClock();
Recent posts

Digital clock CSS script

body{     margin: 0;     font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;     display: flex;     flex-direction: column;     align-items: center;     height: 100vh;     justify-content: center;     background: url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=1332&amp;q=80");     background-size: cover;     overflow: hidden; } h2{     text-transform: uppercase;     letter-spacing: 4px;     font-size: 14px;     text-align: center;     color: white; } .clock{     display: flex; } .clock div{     margin: 5px;     position: relative; } .clock span{     width: 100px;     height: 80px;     background: sandybrown;     opacity: 8;     color: white;     display: flex;     justify-content: center;     align-items: center;     font-size: 50px;     text-shadow: 2px 2px 4px rgba(0,0,0,0.3); } .clock .text{     height: 30

Digital Clock HTML Script

<!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Digital Clock</title>     <link rel="stylesheet" href="style.css"> </head> <body>     <h2>Digital Clock</h2>     <div class="clock">     <div>         <span id="hour">00</span>         <span class="text">Hours</span>     </div>     <div>         <span id="minutes">00</span>         <span class="text">minutes</span>     </div>     <div>         <span id="seconds">00</span>         <span class="text">seconds</span>     </div>     <div>    

New Technology Blockchain

 Blockchain Blockchain:  1. A decentralized, distributed ledger that records transactions across a network of computers.              2.  Each block in the chain contains a record of multiple transactions and is linked to the previous block using cryptography.         3.  The decentralized nature of a blockchain makes it secure, as no single entity has control over the data and all participants in the network have a copy of the ledger.    4. This allows for the secure and transparent transfer of digital assets, such as cryptocurrencies, without the need for intermediaries.         5. Blockchains can also be used for non-financial applications, such as supply chain management, voting systems, and record-keeping. Smart Contract: A self-executing contract with the terms of the agreement between buyer and seller being directly written into lines of code. The code and the agreements contained within it exist on a blockchain network, allowing for secure and transparent execution without inte

New Technology Virtual and Augmented Reality

 New Technology Virtual and Augmented Reality Virtual Reality (VR): A computer-generated simulation of a 3D environment that can be interacted with in a seemingly real way using special equipment, such as a headset with sensors. It creates an immersive experience that replaces the real world with a virtual one. Augmented Reality (AR): A technology that superimposes digital information on the real world, often through a camera view on a device such as a smartphone. AR enhances the real world with virtual elements, rather than replacing it entirely. Virtual Reality (VR): A computer-generated simulation of a 3D environment that can be interacted with in a seemingly real way using special equipment, such as a headset with sensors. It creates an immersive experience that replaces the real world with a virtual one. Examples of VR applications: Gaming: VR games allow players to immerse themselves in a virtual world and interact with objects and characters using hand-held controllers or body m

New Technology Internet of Things (IoT)

Internet of Things (IoT)   The Internet of Things (IoT) refers to the interconnected network of physical devices, vehicles, buildings, and other objects that are embedded with sensors, software, and network connectivity, allowing them to collect and exchange data. IoT devices can communicate with each other and with other systems over the internet, allowing for the automation of various tasks and the collection of data for analysis and decision-making. Examples of IoT devices include: Smart home devices: smart thermostats, smart lighting, smart security systems, and other connected devices that can be controlled and monitored remotely. Wearables: fitness trackers, smartwatches, and other wearable devices that can collect data on activity and health. Industrial IoT: sensors and connected devices in industrial settings, such as factories and warehouses, that can improve efficiency and monitoring of processes. Agricultural IoT: sensors and connected devices in agricultural settings, s

New Technology 5G

  5G 5G is the fifth generation of mobile network technology that promises to deliver faster speeds, lower latency, and more capacity compared to its predecessor, 4G. 5G networks use a combination of new radio frequencies and technologies, such as millimeter waves and beamforming, to increase the capacity and speed of wireless data transmission. This allows 5G to support a large number of connected devices, providing reliable and fast connectivity for a wide range of applications, including virtual and augmented reality, autonomous vehicles, and the Internet of Things (IoT). 5G also introduces new network architectures, such as network slicing, which enables network operators to create multiple virtual networks within a single physical network to support different types of applications with specific requirements. This allows 5G networks to be more flexible and efficient, and to support a wider range of use cases. The roll-out of 5G networks is underway in many countries, with some netw