notes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| notes [2025/10/03 06:56] – admin | notes [2025/10/08 09:59] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | === Web Notes === | + | ==== Web Notes ==== |
| + | **Description**: | ||
| + | **Functions**: | ||
| + | **Demo**: http:// | ||
| + | < | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | *: | ||
| + | label{font-family: | ||
| + | h2{font-family: | ||
| + | form{background-color:# | ||
| + | button{cursor: | ||
| + | input[type=submit]{cursor: | ||
| + | input[type=reset]{cursor: | ||
| + | .container{max-width: | ||
| + | </ | ||
| + | </ | ||
| + | < | ||
| + | <div class=" | ||
| + | |||
| + | <!-- Editor controls --> | ||
| + | < | ||
| + | <input type=" | ||
| + | <form onsubmit=" | ||
| + | < | ||
| + | < | ||
| + | <button type=" | ||
| + | <input type=" | ||
| + | <input type=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <!-- Open existing file into editor function --> | ||
| + | <script language=" | ||
| + | var control = document.getElementById(" | ||
| + | control.addEventListener(" | ||
| + | var reader = new FileReader(); | ||
| + | reader.onload = function(event){ | ||
| + | var contents = event.target.result; | ||
| + | document.getElementById(' | ||
| + | }; | ||
| + | reader.onerror = function(event){ | ||
| + | console.error(" | ||
| + | }; | ||
| + | console.log(" | ||
| + | reader.readAsText(control.files[0]); | ||
| + | }, false); | ||
| + | </ | ||
| + | |||
| + | <!-- Save file as function --> | ||
| + | <script language=" | ||
| + | function download(filename, | ||
| + | var pom = document.createElement(' | ||
| + | pom.setAttribute(' | ||
| + | pom.setAttribute(' | ||
| + | pom.style.display = ' | ||
| + | document.body.appendChild(pom); | ||
| + | pom.click(); | ||
| + | document.body.removeChild(pom); | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | <!-- Copy all text in editor area --> | ||
| + | <script language=" | ||
| + | document.querySelector(" | ||
| + | document.querySelector(" | ||
| + | document.execCommand(' | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | </ | ||
notes.1759474590.txt.gz · Last modified: by admin
