awacke1 commited on
Commit
d89175d
·
1 Parent(s): 457bc51

Create clipboard.html

Browse files
Files changed (1) hide show
  1. 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>