From de4a491aabbeb63592c54ebc9cc80f338600fa8b Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Fri, 26 Sep 2014 01:51:01 +0000 Subject: web: allow pasting in text. [Firehawke] --- web/index.html | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 61 insertions(+), 3 deletions(-) (limited to 'web') diff --git a/web/index.html b/web/index.html index bd019dcb22d..6e73e035978 100644 --- a/web/index.html +++ b/web/index.html @@ -79,7 +79,7 @@ updateStatusBar('Disconnected','Exited','No Driver'); } } - + function executeHardReset() { executeCommands("hardreset"); @@ -202,6 +202,25 @@ window.onload = function() { startWebSocket(); }; + +$(document).ready(function() { + $( '#pasteTextForm' ).submit(function( event ) + { + $.ajax({ + url: "/keypost", + type:'POST', + data: + { + val: pasteText.value + }, + success: function(msg) + { + } + }); + event.preventDefault(); + }); +}); + @@ -327,6 +346,11 @@
Save State
Load State
+

Paste/Upload Text

+
+ + +

Execution Control

Toggle Pause Exit @@ -464,7 +488,39 @@




- + + +
+

Paste Text to Keyboard

+ +
+
+ Exit + + +
+
+ +
+ +




+
+ + +
+

Upload Text to Keyboard

+ +
+ +
+ Exit + +
+
+
+ +




+
@@ -795,7 +851,9 @@
-
+
+

Paste Upload Log

+
-- cgit v1.2.3-70-g09d2