Copy To Clipboard:-
Hello friends, as you know that we upload many coding projects, that too for free so that you can learn coding easily. Let us discuss the topic of today's coding project. If you want to create project html and css as shown in the image above then copy the code below and paste it on your code runner.
Output:-
Input:-
<html>
<title>Tech Samrat | Copy To Clipboard</title>
<head>
<meta charset="utf-8">
</head>
<body>
<div class="middle">
<div class="buttons">
<input type="button" id="equal" onclick="myFunction()" value="Copy To Clipboard">
</div>
<input type="text" value="Created By Priyanshu Kumar" id="myInput" class="input">
<br><br><br>
</div>
<footer>
<p>
Created by
<a target="_blank" href="https://wbpscode.blogspot.com/">Priyanshu Sharma</a>
</p>
</footer>
</body>
<style>
*{
margin: 0.0;
padding: 0.0;
outline: none;
box-sizing: border-box;
}
body{
font-family: montserrat;
display: flex;
text-align: center;
justify-content: center;
align-items: center;
min-height: 100.0vh;
background: #ecf0f3;
}
.middle{
width: 400px;
background: #ecf0f3;
border-radius: 20px;
box-shadow: 14px 14px 22px #cbced1,
-14px -14px 22px #cbced1;
}
input[type="text"]{
margin: 4px 0;
width: 70%;
height: 100px;
font-size: 20px;
padding: 20px;
padding-left: 25px;
margin-top: 30px;
margin-left: ;
border: none;
outline: none;
resize: none;
letter-spacing: 0.15px;
border-radius: 8px;
background-color: #ecf0f3;
font-family: "Montserrat", sans-serif;
box-shadow: inset 8px 8px 8px #cbced1,
inset -8px -8px 8px #ffffff;
}
input[type="button"]{
width: 58px;
height: 55px;
margin: 5px;
font-size: 22px;
line-height: 55px;
border-radius: 3px;
border: 2px solid #d9d9d9;
background: #ecf0f3;
box-shadow: 6px 6px 10px -1px rgba(0,0,0,0.15),
-6px -6px 10px -1px rgba(255,255,255,0.7);
border: 1px solid rgba(0,0,0,0);
transition: transform 0.5s;
}
input#equal{
width: 275px;
margin: 10px 0 10px 0;
font-size: 30px;
color: rgb(0, 0, 0);
box-shadow: 6px 6px 10px -1px rgba(0,0,0,0.15),
-6px -6px 10px -1px rgba(255,255,255,0.7);
border: 1px solid rgba(0,0,0,0);
transition: transform 0.5s;
background: #00acee;
border: 1px solid #00acee;
}
input#equal:hover{
background-color: #24cfaa;
}
footer {
background-color: #555;
color: #fff;
font-size: 14px;
bottom: 0;
position: fixed;
left: 0;
right: 0;
text-align: center;
z-index: 999;
}
footer p {
margin: 10.1px 0;
font-family: sans-serif;
}
footer a {
color: #ff6f61;
text-decoration: none;
margin-right:5px;
}
</style>
<script>
function myFunction() {
var copyText = document.getElementById("myInput");
copyText.select();
copyText.setSelectionRange(0, 999999)
document.execCommand("copy");
alert("Copied The Text Successfully");
}
</script>
</html>
-----------------------------------------------------------------------------------------------------------------------------
If you want input of any other project, then visit our website and if any project which you think should be in our website, then comment and if you want to share your project with us, then email it to us.
Let us tell you that when you send your project to us, then send a screenshot of the project with it and send a photo and name along with it that you want to show to the public.
-----------------------------------------------------------------------------------------------------------------------------
Published By :-
Tech Samrat(Priyanshu Sharma)
0 Comments