Skip to content

Rayiumir/CopyJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CopyJS

The copy short link feature allows users to quickly copy the course short link URL to their clipboard with a single click. When the link is successfully copied, a notification message appears next to the button to provide visual feedback.

How to use?

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CopyJS</title>
</head>

<body>
    <a href="https://rayium.ir" type="button" class="button" id="copy-short-link-btn" data-link="https://rayium.ir">
        Copy Short Link
    </a>
    <script src="copy.js"></script>
</body>

</html>