One click to copy

Developer
Size
2,034 Kb
Views
16,192

How do I make an one click to copy?

What is a one click to copy? How do you make a one click to copy? This script and codes were developed by Soufiane Abid on 12 October 2022, Wednesday.

One click to copy Previews

One click to copy - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>one click to copy</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper">
<h3 class="head">:: one click to copy ::</h3>
<textarea name="copy" readonly="readonly" spellcheck="false" id="" cols="100" rows="1" class="copytext">
https://cdn.domain.org/filename/docs/Web/framwork/Document/oneclickTocopy
</textarea>
</div> <script src="js/index.js"></script>
</body>
</html>

One click to copy - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=Oswald);
body{ background: #FFFFF2; font-family: 'Oswald', sans-serif;
}
.wrapper{ margin: 150px;
}
textarea[name^="c"]{ resize: none; display: block; margin:0 auto; padding: 10px; text-align: center; color: #e3dede; background: #333030; border: none; border-radius: 5px; overflow: hidden; outline: none;
}
textarea::selection{ background: #a3a1a1; color: #f6ea8c;
}
.head{ text-align: center; margin: 0 auto; padding: 0;
}

One click to copy - Script Codes JS Codes

var copyText = document.querySelector('.copytext');
copyText.addEventListener('click', function(e){ var heading = document.querySelector('.head'); e.preventDefault(); this.select(); document.execCommand('copy'); heading.innerHTML = 'Copied';
});
One click to copy - Script Codes
One click to copy - Script Codes
Home Page Home
Developer Soufiane Abid
Username SoufianeAbid
Uploaded October 12, 2022
Rating 3
Size 2,034 Kb
Views 16,192
Do you need developer help for One click to copy?

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!

Soufiane Abid (SoufianeAbid) Script Codes
Create amazing art & images 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!