| 1823 | // self-hosted server. Loopback is always allowed, so the owner can't lock |
| 1824 | // themselves out of this control. |
| 1825 | function networkSettingsHtml() { |
| 1826 | return ` |
| 1827 | <div class="settings-section"> |
| 1828 | <div class="settings-row"> |
| 1829 | <div class="settings-row-text"> |
| 1830 | <div class="settings-row-title">Make StemDeck available on your network</div> |
| 1831 | <div class="settings-row-desc">Let other devices (like your phone) open StemDeck at the address below.</div> |
| 1832 | </div> |
| 1833 | <label class="settings-switch"> |
| 1834 | <input type="checkbox" class="net-access-input" /> |
| 1835 | <span class="settings-switch-track"><span class="settings-switch-thumb"></span></span> |
| 1836 | </label> |
| 1837 | </div> |
| 1838 | <div class="settings-net hidden"> |
| 1839 | <div class="settings-net-qr"></div> |
| 1840 | </div> |
| 1841 | </div> |
| 1842 | `; |
| 1843 | } |
| 1844 | |
| 1845 | // General settings: max track length (minutes) + MP4 video quality. Read live |
| 1846 | // and POSTed on change to /api/settings (same runtime store as the toggle). |