.
დააჭირეთ და დააკოპირეთ
<title></title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <style type="text/css">.copy-notification { color: #ffffff; background-color: rgba(0,0,0,0.8); padding: 20px; border-radius: 30px; position: fixed; top: 50%; left: 50%; width: 150px; margin-top: -30px; margin-left: -85px; display: none; text-align:center; } </style> <p><button>დააჭირეთ და დააკოპირეთ</button><script type="text/javascript"> $(document).ready(function () { $("button").click(function (event) { event.preventDefault(); CopyToClipboard("ეს ტექსტი დაკოპირდა", true, "დაკოპირებულია ტექსტი"); }); }); function CopyToClipboard(value, showNotification, notificationText) { var $temp = $("<input>"); $("body").append($temp); $temp.val(value).select(); document.execCommand("copy"); $temp.remove(); if (typeof showNotification === 'undefined') { showNotification = true; } if (typeof notificationText === 'undefined') { notificationText = "Copied to clipboard"; } var notificationTag = $("div.copy-notification"); if (showNotification && notificationTag.length == 0) { notificationTag = $("<div/>", { "class": "copy-notification", text: notificationText }); $("body").append(notificationTag); notificationTag.fadeIn("slow", function () { setTimeout(function () { notificationTag.fadeOut("slow", function () { notificationTag.remove(); }); }, 1000); }); } } </script></p>
სკრიპტის შიგთავსში მონახავთ სიტყვას {ეს ტექსტი დაკოპირდა} და შეცვლით თქვენი ტექსტით.