Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/kitab.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/myFunctions.js')
-rw-r--r--static/js/myFunctions.js25
1 files changed, 1 insertions, 24 deletions
diff --git a/static/js/myFunctions.js b/static/js/myFunctions.js
index 4c962b5..82d4804 100644
--- a/static/js/myFunctions.js
+++ b/static/js/myFunctions.js
@@ -29,27 +29,4 @@ let scrollToTop = () => {
window.requestAnimationFrame(scrollToTop);
window.scrollTo(0, c - c / 8);
}
-};
-
-function copyUrl(text) {
- let copyFrom = document.createElement("textarea");
- copyFrom.textContent = text;
- document.body.appendChild(copyFrom);
- copyFrom.select();
- document.execCommand("copy");
- copyFrom.blur();
- document.body.removeChild(copyFrom);
-
- let copiedMessage = document.createElement("div");
- copiedMessage.id = "copiedMessage";
- copiedMessage.textContent = "Link copied to clipboard";
- copiedMessage.classList.add("bg-warning", "shadow", "d-block", "text-center");
- document.body.appendChild(copiedMessage);
-
- setTimeout(function() {
- copiedMessage.style.opacity = 0;
- }, 500);
- setTimeout(function() {
- document.body.removeChild(copiedMessage);
- }, 1500);
-}
+}; \ No newline at end of file