notes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| notes [2025/10/07 14:05] – admin | notes [2025/10/08 09:59] (current) – admin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| **Description**: | **Description**: | ||
| - | **Functions**: | + | **Functions**: |
| + | **Demo**: http:// | ||
| < | < | ||
| Line 13: | Line 13: | ||
| *: | *: | ||
| label{font-family: | label{font-family: | ||
| + | h2{font-family: | ||
| form{background-color:# | form{background-color:# | ||
| - | input[type=submit],input[type=reset],button{cursor: | + | button{cursor: |
| - | .container{max-width: | + | input[type=submit]{cursor: |
| + | input[type=reset]{cursor: | ||
| + | .container{max-width: | ||
| </ | </ | ||
| </ | </ | ||
| < | < | ||
| <div class=" | <div class=" | ||
| + | |||
| <!-- Editor controls --> | <!-- Editor controls --> | ||
| - | < | + | < |
| + | <input type=" | ||
| <form onsubmit=" | <form onsubmit=" | ||
| < | < | ||
| < | < | ||
| - | <button type=" | + | <button type=" |
| - | <input type=" | + | <input type=" |
| + | <input type=" | ||
| </ | </ | ||
| </ | </ | ||
| Line 34: | Line 40: | ||
| var control = document.getElementById(" | var control = document.getElementById(" | ||
| control.addEventListener(" | control.addEventListener(" | ||
| - | var reader = new FileReader(); | + | var reader = new FileReader(); |
| reader.onload = function(event){ | reader.onload = function(event){ | ||
| var contents = event.target.result; | var contents = event.target.result; | ||
| Line 62: | Line 68: | ||
| <!-- Copy all text in editor area --> | <!-- Copy all text in editor area --> | ||
| <script language=" | <script language=" | ||
| - | const textarea = document.querySelector(' | + | document.querySelector("button").onclick = function(){ |
| - | const button | + | |
| - | + | | |
| - | button.addEventListener(' | + | } |
| - | try { | + | |
| - | await navigator.clipboard.writeText(textarea.value); | + | |
| - | } catch (err) { | + | |
| - | | + | |
| - | } | + | |
| - | }) | + | |
| </ | </ | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| </ | </ | ||
notes.1759845940.txt.gz · Last modified: by admin
