Spaces:
Runtime error
Runtime error
Create clipboard.html
Browse files- clipboard.html +23 -0
clipboard.html
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<style>
|
5 |
+
textarea {
|
6 |
+
width: 100%;
|
7 |
+
height: 200px;
|
8 |
+
}
|
9 |
+
</style>
|
10 |
+
</head>
|
11 |
+
<body>
|
12 |
+
<h1>Clipboard Monitor</h1>
|
13 |
+
<p>Paste your data in the textarea below:</p>
|
14 |
+
<textarea id="clipboard-text" oninput="updateClipboard()"></textarea>
|
15 |
+
<script>
|
16 |
+
function updateClipboard() {
|
17 |
+
let textArea = document.getElementById("clipboard-text");
|
18 |
+
let clipboardData = textArea.value;
|
19 |
+
window.parent.postMessage({type: "clipboard-update", data: clipboardData}, "*");
|
20 |
+
}
|
21 |
+
</script>
|
22 |
+
</body>
|
23 |
+
</html>
|