summaryrefslogtreecommitdiff
path: root/web/kvm/navbar-text.pug
blob: afc7a70b0f01143a6500d7b63e766f73ea37264e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
li(id="text-dropdown" class="right")
	a(class="menu-button" href="#")
		+navbar_led("stream-ocr-led", "led-gear", "feature-disabled")
		span Text
	div(data-dont-hide-menu class="menu")
		div(class="text")
			b Paste text as keypress sequence#[br]
			sub Please note that PiKVM cannot switch the keyboard layout
		hr
		div(class="text")
			textarea(id="hid-pak-text" placeholder="Enter your text here")
		table(class="kv")
			tr
				td
					button(disabled data-force-hide-menu id="hid-pak-button") • Paste
				td using host keymap
				td
					select(id="hid-pak-keymap-selector")
		table(class="kv")
			tr
				+menu_switch_notable("hid-pak-ask-switch", "Ask paste confirmation", true, true)
			tr(id="hid-pak-secure" class="feature-disabled")
				+menu_switch_notable("hid-pak-secure-switch", "Hide input text", true, false)
		div(id="stream-ocr" class="feature-disabled")
			hr
			br
			hr
			div(class="text")
				b Text recognition <sup><i>&beta;</i></sup>#[br]
				sub #[a(target="_blank" href="https://docs.pikvm.org/ocr") OCR] works locally on PiKVM
			hr
			table(class="kv")
				tr
					td
						button(data-force-hide-menu id="stream-ocr-button") &bull; Select area
					td for
					td
						select(id="stream-ocr-lang-selector")
					td text recognition
			table(class="kv")
				tr
					td(colspan="4") &bull; Press #[b Enter] to recognize and copy text to clipboard
				tr
					td(colspan="4") &bull; Press #[b Esc] to cancel selection
				tr
					td