Mercurial Hosting > freedit
comparison src/site.js @ 42:0c1b820fff34
use push
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 08 Nov 2022 14:02:28 -0700 |
| parents | 1ce75c5ab0f7 |
| children | 289718f121e4 |
comparison
equal
deleted
inserted
replaced
| 41:acb730710328 | 42:0c1b820fff34 |
|---|---|
| 61 } | 61 } |
| 62 | 62 |
| 63 function fileButtonClick(button) { | 63 function fileButtonClick(button) { |
| 64 button.parentNode.querySelector('input[type="file"]').click(); | 64 button.parentNode.querySelector('input[type="file"]').click(); |
| 65 } | 65 } |
| 66 | |
| 67 function fixTextarea(textarea) { | |
| 68 let height = textarea.scrollHeight; | |
| 69 if( height > textarea.clientHeight ) { | |
| 70 textarea.style.height = height + "px"; | |
| 71 } | |
| 72 } |
