Marthee commited on
Commit
3e216ca
·
verified ·
1 Parent(s): 2193168

Update templates/gui.html

Browse files
Files changed (1) hide show
  1. templates/gui.html +1 -21
templates/gui.html CHANGED
@@ -13,31 +13,11 @@
13
 
14
  ///////////////////////////////////////////////BEGIN JS CODE//////////////////////////////////////////////////
15
  // Function to send the Dropbox link and keyword to the server
16
- function getURLParams() {
17
- const params = new URLSearchParams(window.location.search);
18
 
19
- // Decode values
20
- const pdfLink = params.get("pdfLink") ? decodeURIComponent(params.get("pdfLink")) : null;
21
- const keyword = params.get("keyword") ? decodeURIComponent(params.get("keyword")) : null;
22
-
23
- console.log("Decoded Dropbox Link:", pdfLink);
24
- console.log("Decoded Keyword:", keyword);
25
-
26
- return { pdfLink, keyword };
27
- }
28
-
29
  function processPdf() {
30
- const { pdfLink, keyword } = getURLParams();
31
-
32
- if (pdfLink ) {
33
- console.log("Extracted PDF Link:", pdfLink);
34
- console.log("Extracted Keyword:", keyword);
35
- }
36
 
37
- else{
38
- const pdfLink = 'https://www.dropbox.com/scl/fi/hnp4mqigb51a5kp89kgfa/00801-ARC-20-ZZ-S-A-0002.pdf?rlkey=45abeoebzqw4qwnslnei6dkd6&st=m4yrcjm2&dl=1'; // Dropbox link
39
  const keyword = ['115 INTEGRATED MRI ROOM LININGS'] ; // Example keyword
40
- }
41
 
42
  // Create a new FormData object to send the data as form data
43
  const formData = new FormData();
 
13
 
14
  ///////////////////////////////////////////////BEGIN JS CODE//////////////////////////////////////////////////
15
  // Function to send the Dropbox link and keyword to the server
 
 
16
 
 
 
 
 
 
 
 
 
 
 
17
  function processPdf() {
 
 
 
 
 
 
18
 
19
+ const pdfLink = 'https://www.dropbox.com/scl/fi/hnp4mqigb51a5kp89kgfa/00801-ARC-20-ZZ-S-A-0002.pdf?rlkey=45abeoebzqw4qwnslnei6dkd6&st=m4yrcjm2&dl=1'; // Dropbox link
 
20
  const keyword = ['115 INTEGRATED MRI ROOM LININGS'] ; // Example keyword
 
21
 
22
  // Create a new FormData object to send the data as form data
23
  const formData = new FormData();