From 3ca7bd72dfd29f00c7f606959f4f07934b90c45c Mon Sep 17 00:00:00 2001 From: Lou Holland Date: Wed, 6 Dec 2023 15:20:17 +0000 Subject: [PATCH 1/6] add functionality that enter press in text field on home page submits form --- emsdk | 1 + privateer_webserver_dependencies | 1 + .../src/components/PDBFetch/PDBFetch.jsx | 9 ++++++++- webserver/src/wasm/privateer.js | 4 ++-- webserver/src/wasm/privateer.wasm | Bin 1997555 -> 2268619 bytes 5 files changed, 12 insertions(+), 3 deletions(-) create mode 160000 emsdk create mode 160000 privateer_webserver_dependencies diff --git a/emsdk b/emsdk new file mode 160000 index 00000000..ef77dcc2 --- /dev/null +++ b/emsdk @@ -0,0 +1 @@ +Subproject commit ef77dcc2c0e2bd483c21b49b39a89349619d401a diff --git a/privateer_webserver_dependencies b/privateer_webserver_dependencies new file mode 160000 index 00000000..e7d0c274 --- /dev/null +++ b/privateer_webserver_dependencies @@ -0,0 +1 @@ +Subproject commit e7d0c2749083f9e02fd62f41549f4ce1d75166d6 diff --git a/webserver/src/components/PDBFetch/PDBFetch.jsx b/webserver/src/components/PDBFetch/PDBFetch.jsx index dd1392a3..de969af3 100644 --- a/webserver/src/components/PDBFetch/PDBFetch.jsx +++ b/webserver/src/components/PDBFetch/PDBFetch.jsx @@ -27,7 +27,14 @@ export default function PDBFetch({PDBCode, setPDBCode, submitPressed}) {

Fetch from PDB

- + { + let element = document.getElementById("code") + setPDB(element.value) + } + } + required/>