HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WhatsApp</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="myjs.js"></script>
</head>
<body>
<div class="phone-status-bar">
<h1 class="heading-primary">WhatsApp</h1>
<div class="phone-status-bar__right-icon">
<i class="fa fa-search" aria-hidden="true"></i>
<i class="fa fa-ellipsis-v" aria-hidden="true"></i>
</div>
</div>
<div class="menu-bar">
<i class="fa fa-camera" aria-hidden="true"></i>
<ul class="menu-bar__list">
<li class="menu-bar__list-item" onclick="changeTab(1);">Chat</li>
<li class="menu-bar__list-item" onclick="changeTab(2);">Status</li>
<li class="menu-bar__list-item" onclick="changeTab(3);">Calls</li>
</ul>
</div>
<div class="chat-status-call">
<div class="chat-container">
<div class="contact-list">
<i class="material-icons">
chat
</i>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://thumbor.forbes.com/thumbor/fit-in/416x416/filters%3Aformat%28jpg%29/https%3A%2F%2Fspecials-images.forbesimg.com%2Fimageserve%2F5c7d7829a7ea434b351ba0b6%2F0x0.jpg%3Fbackground%3D000000%26cropX1%3D206%26cropX2%3D2043%26cropY1%3D250%26cropY2%3D2089" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
Mukesh Ambani
</h1>
<p class="person-chat">Bhai Thode Paise Chahiye The...</p>
</div>
</div>
<p class="last-chat-time">12:00 pm</p>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://pbs.twimg.com/profile_images/864282616597405701/M-FEJMZ0_400x400.jpg" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
Sunder Pichai
</h1>
<p class="person-chat">Answer my phone! I need your help... </p>
</div>
</div>
<p class="last-chat-time">2:30 am</p>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://www.gstatic.com/tv/thumb/persons/589228/589228_v9_ba.jpg" alt="" class="user-img ">
<div class="person-name">
<h1 class="persion-name-heading">
Mark Zuckerberg
</h1>
<p class="person-chat">Bhai, Mera dhandha band karwana hai kya...</p>
</div>
</div>
<p class="last-chat-time"> 1:00 am</p>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://www.gstatic.com/tv/thumb/persons/487130/487130_v9_ba.jpg" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
Elon Musk
</h1>
<p class="person-chat">Bhai, Mars kab chale...</p>
</div>
</div>
<p class="last-chat-time">2:00 am</p>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://images.tribuneindia.com/cms/gall_content/2019/5/2019_5$largeimg16_Thursday_2019_202625271.jpg" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
CarryMinati
</h1>
<p class="person-chat">Yalgaar Ho..<span class="tick">✓</span><span class="tick2">✓</span></p>
</p>
</div>
</div>
<p class="last-chat-time">12:00 pm</p>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://c.ndtvimg.com/2020-03/6qjpm0h8_narendra-modi-address-pti_625x300_19_March_20.jpg" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
Narendra Modi
</h1>
<p class="person-chat">Mere 20 lakh carore kab milenge...<span class="tick">✓</span><span class="tick2">✓</span></p>
</div>
</div>
<p class="last-chat-time">12:00 pm</p>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://www.gstatic.com/tv/thumb/persons/614/614_v9_bc.jpg" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
Bill Gates
</h1>
<p class="person-chat">Nayi company banai toh main baat nahin karta..</p>
</div>
</div>
<p class="last-chat-time">12:00 pm</p>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTEhIWFRUWFRUVFRgVFxUXFRcVFRUWFxUXFxcYHSggGBolHRUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGi0dHR0tKy0tLS0tLSstLS0tLS0tLS0tKysrLS0tKy0tLS0tLS0tLS03LS0tLS0rLS0rLS0rK//AABEIAOEA4QMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAAAgMEBQYBBwj/xABCEAABAwIEAwUEBgkDBAMAAAABAAIDBBEFEiExBkFRImFxgZETMqGxFSNCUsHRBxQWM2KCkqLhNFNywtLw8SRDY//EABoBAAMBAQEBAAAAAAAAAAAAAAACAwEEBQb/xAAoEQACAgIBAwQCAgMAAAAAAAAAAQIRAyESBDFBEyIyUQUUI3EVUoH/2gAMAwEAAhEDEQA/APcUIQgAQhCABCFwoA6hJalLE7AEJL3gC5Ngs1inFbW3bEMx+8dvJaZZpieqiz4jEz3ngLAz45K513OJHRQ6mpDjpfzKBHM9AOPwfev5Ln7QwfePosA1y48oozmz0SLHYHbP9QVMhqmO91wPgV5O9/RdZVObs4jwKKNUz11C8zoeKZoz7+YdHarVYPxXFMQx3YcduhP4IHs0SEIQaCEIQAIQhAAhCEACEIQAIQhAAhcBXUAJcV0LqQ59kr07YC0LiTK6wJ7lregFXSJZQ1pc42AFyfBUz8VOlhe/QHRZnjbHHZRCOeru/oFLHlUnSE5jXEPExmdlZcMGw695VK191UxTXKsYSulIVjxKAVwpN1ghIa9dL0wwrrygxCZHpl70SFR3laadc9OU8ihlyXG/VY0UR6hwjjBkb7J5u9ouD1b+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Bg6wpYdYg9CCmGlOnZYaj2XCJbxMPcCrKKUO281n+E5s1Oz/iFaTxH3mGzh6HuKyytaLBcKhQV4PvCx+CRU1wIytB10vsEyi2I9FI/F81S+3ujsjy5q5hnuN1nKrhp7Dngf3ljhcHrY7hSsO3+su22471Rx1om2aBlR0BPgqHiOuIsW3aQbi60ULwRoqzGKPPyulS2ZZNwfEBNGHjfZw6FPVrLtVBQNdC642+0O5X/tQ9l2m4WNUykXZ5ZxdgFp2yNadXC9gthEzLDrfbnol4xAHAX6hMYvNli35c/zXl9S3zPWwRvil5IWC0bXtc4jQk77rM4/SCOWwFgdQtDSVojiaOQ3Ki8UU2YNkb3D1UMOWUbTPW6bJLHn9z0zMmA2vY2TJjstv+rMZTdofZWNcdTba+i7scuSs9XpuqeVul2GgrPCMRdE8OB2VeRdDNCmltFssI5IuMjf/ta1CxOfuCFzbPI/xeH6K4JEyEL0j44p6ndOUuyEJjDsm6lckIQaIjUlqEIACnRshCwF3PT+DP8ATs8FoihCTyW8ER/vFKduEIXTHsRmTuSoq33/ADQhKhC1oNk8feQhKjGQMT5+BUfhn92//k5CFs/iPjEYlsPFUvGf+mPghC8nP8z3Ok+cClwr923yV7i/7keXzQhc0u56Gb5R/sbxn/T+SxAQhd2H4nf+N+Ev7FO2SihCZHoMdQhCUU//2Q==" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
Coffin Dancer
</h1>
<p class="person-chat">Ek Baar bahar to aake dekh...</p>
</div>
</div>
<p class="last-chat-time">12:00 pm</p>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://img.etimg.com/thumb/width-640,height-480,imgsize-75490,resizemode-1,msid-75729632/coronavirus-us-president-donald-trump-to-look-into-legislation-proposing-to-sanctions-on-china.jpg" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
Donald Trump
</h1>
<p class="person-chat">Bhidu, China Pr Hamla Kab Karna Hai...</p>
</div>
</div>
<p class="last-chat-time">12:00 pm</p>
</div>
</div>
<div class="status-container">
<div class="status-list-fixed">
<i class="fa fa-pencil fa-2x" aria-hidden="true"></i>
<i class="fa fa-camera-retro fa-2x" aria-hidden="true"></i>
</div>
<div class="person-profile person-profile-status">
<i class="fa fa-plus add-icon" aria-hidden="true"></i>
<img src="https://www.searchpng.com/wp-content/uploads/2019/02/Deafult-Profile-Pitcher.png" alt="" class="user-img">
<div class="person-name">
<h2 class="persion-name-heading"> My status </h2>
<p class="person-chat">Tap to see add status upadte</p>
</div>
</div>
<h2 class="recent-update">Recent updates
</h2>
<div class="chat-list">
<div class="person-profile">
<img src="https://thumbor.forbes.com/thumbor/fit-in/416x416/filters%3Aformat%28jpg%29/https%3A%2F%2Fspecials-images.forbesimg.com%2Fimageserve%2F5c7d7829a7ea434b351ba0b6%2F0x0.jpg%3Fbackground%3D000000%26cropX1%3D206%26cropX2%3D2043%26cropY1%3D250%26cropY2%3D2089" alt="" class="user-img user-img-status">
<div class="person-name">
<h1 class="persion-name-heading">
Mukesh Ambani
</h1>
<p class="person-chat">42 minutes ago</p>
</div>
</div>
</div>
</div>
<div class="call-container">
<div class="call-list">
<i class="fa fa-phone fa-2x" aria-hidden="true"></i>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://img.etimg.com/thumb/width-640,height-480,imgsize-75490,resizemode-1,msid-75729632/coronavirus-us-president-donald-trump-to-look-into-legislation-proposing-to-sanctions-on-china.jpg" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
Donald Trump
</h1>
<p class="person-chat"> Today, 1:22am</p>
</div>
</div>
<p class="last-chat-time"><i class="fa fa-phone fx-4x call-icon" aria-hidden="true"></i></p>
</div>
<div class="chat-list">
<div class="person-profile">
<img src="https://c.ndtvimg.com/2020-03/6qjpm0h8_narendra-modi-address-pti_625x300_19_March_20.jpg" alt="" class="user-img" alt="" class="user-img">
<div class="person-name">
<h1 class="persion-name-heading">
Narendra Modi
</h1>
<p class="person-chat"> Today, 2 :22am</p>
</div>
</div>
<p class="last-chat-time"><i class="fa fa-video-camera call-icon" aria-hidden="true"></i></p>
</div>
</div>
</div>
</body>
</html>
@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');
*{
margin: 0;
padding: 0;
}
body{
font-family: 'Roboto';
opacity: 0;
transition: all .6s;
}
.phone-status-bar{
background-color: #128C7E;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
color: #fff;
font-weight: 200;
position: relative;
}
.phone-status-bar i{
padding-right: 1rem;
font-size: 1.3rem;
cursor: pointer;
}
.heading-primary{
font-family: 'Lato', sans-serif;
font-size: 1.5rem;
}
.menu-bar{
background-color: #128C7E;
display: flex;
justify-content: space-between;
align-items: center;
color: #fff;
position: relative;
z-index: 6;
box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.fixed-menu {
position: fixed;
top: 0;
width: 100%;
}
.menu-bar i{
margin: 0 10px;
opacity: .8;
}
.menu-bar__list{
width: 100%;
text-transform: uppercase;
font-weight: 800;
list-style: none;
display: flex;
justify-content:space-between;
}
.menu-bar__list-item{
opacity: .8;
padding: .8rem 1rem;
border-bottom: 2px solid transparent;
transition: all .2s ease-in-out;
}
.active-select-menu ,.menu-bar__list-item:hover{
opacity: 1;
cursor: pointer;
border-bottom: 3px solid #fff;
}
.chat-container{
padding:.6rem 0;
}
.chat-list{
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 0;
font-size: 62.5%;
position: relative;
}
.chat-list::after{
content: "";
position: absolute;
bottom: 0;
right:1rem;
width: 76%;
height: 1px;
background: rgba(0,0,0,.2);
}
.person-chat{
font-size:20px;
}
.tick{
color:blue;
font-weight: bold;
}
.tick2{
color:blue;
margin-left:-10px;
font-weight:bold;
}
@media only screen and (max-width: 360px) {
.chat-list::after{
width: 64%;
}
}
@media only screen and (min-width: 540px) {
.chat-list::after{
width: 78%;
}
}
@media only screen and (min-width: 1100px) {
.chat-list::after{
width: 92%;
}
}
.user-img{
width: 5rem;
height: 5rem;
border-radius: 50%;
margin: 0 1rem;
}
.person-profile{
display: flex;
align-items: center;
}
.last-chat-time{
margin-right:2rem;
}
/* Status */
.status-container{
padding: 1rem 0;
}
.person-profile-status{
position: relative;
border-bottom: 1px solid rgba(0,0,0,.2);
padding-bottom: 1rem;
}
.user-img-status{
border: 2px solid #25D366;
padding:2px;
}
.recent-update{
font-size: 1rem;
background: #ECE5DD;
padding: 8px;
margin-bottom: 1rem;
}
.add-icon{
position: absolute;
left: 4rem;
bottom: 20px;
color: #fff;
background:#25D366;
padding: 6px 7.5px;
border-radius: 50%;
}
.call-icon{
font-size: 1.5rem !important;
color: #128C7E;
}
.status-list-fixed,.contact-list,.call-list{
width: 80px;
height: 80px;
position: fixed;
bottom: 4rem;
right: 5px;
z-index: 1;
}
.status-list-fixed i,.contact-list i,.call-list i{
color: dimgrey;
background: #ECE5DD;
padding: 1rem 1.1rem;
border-radius: 50%;
margin-bottom: 5px;
}
.contact-list,.call-list{
bottom: 5px;
}
.call-list i{
background-color: #25D366;
color: #fff;
padding: 1rem 1.2rem;
}
.contact-list i{
background-color: #25D366;
color: #fff;
padding: 1rem;
}
.status-list-fixed i:last-child{
background-color: #25D366;
color: #fff;
}
let menuBar;
let fixedMenu;
let statusBar;
let chartBar;
let active;
let callBar;
let chatCallStatus;
window.onload = function(){
setTimeout(() => {
document.querySelector('body').style.opacity = '1';
}, 500);
menuBar = document.querySelector('.menu-bar');
fixedMenu = menuBar.offsetTop;
statusBar = document.querySelector('.status-container');
chartBar = document.querySelector('.chat-container');
active = document.getElementsByClassName('menu-bar__list-item');
callBar = document.querySelector('.call-container');
chatCallStatus = document.querySelector('.chat-status-call');
statusBar.remove();
callBar.remove();
changeTab(1);
window.onscroll = function(){
if (window.pageYOffset >= fixedMenu) {
menuBar.classList.add("fixed-menu")
} else {
menuBar.classList.remove("fixed-menu");
}
}
}
function changeTab(index){
for(var i=0; i < 3 ; i++)
active[i].classList.remove('active-select-menu');
active[index-1].classList.add('active-select-menu');
if(index == 1){
statusBar.remove();
callBar.remove()
$(chatCallStatus).append(chartBar);
}
else if(index == 2 ){
chartBar.remove();
callBar.remove();
$(chatCallStatus).append(statusBar);
}
else if(index == 3 ){
chartBar.remove();
statusBar.remove();
$(chatCallStatus).append(callBar);
}
}
Also see: Tab Triggers