File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed
Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ <h1>Pastebin</h1>
9292 < textarea
9393 id ="pasteContent "
9494 placeholder ="Paste your text here... "
95- onclick ="paste(this) "
9695 > </ textarea >
9796 < br />
9897 < button onclick ="submitText() "> Submit</ button >
Original file line number Diff line number Diff line change @@ -118,11 +118,6 @@ async function displayPasteUrls() {
118118 }
119119}
120120
121- async function paste ( input ) {
122- const text = await navigator . clipboard . readText ( ) ;
123- input . value = text ;
124- }
125-
126121function toggleMode ( ) {
127122 document . body . classList . toggle ( "dark-mode" ) ;
128123 const isDark = document . body . classList . contains ( "dark-mode" ) ;
@@ -134,15 +129,6 @@ function toggleMode() {
134129 document . getElementById ( "toggleModeButton" ) . innerHTML = isDark ? "☀️" : "🌙" ;
135130}
136131
137- document
138- . getElementById ( "pasteContent" )
139- . addEventListener ( "keydown" , function ( event ) {
140- if ( event . key === "Enter" && ! event . shiftKey ) {
141- event . preventDefault ( ) ; // Prevents adding a new line
142- submitText ( ) ; // Triggers submit
143- }
144- } ) ;
145-
146132window . onload = function ( ) {
147133 displayPasteUrls ( ) ;
148134 const darkModeSetting = localStorage . getItem ( "darkMode" ) ;
You can’t perform that action at this time.
0 commit comments