Spaces:
Sleeping
Sleeping
Update templates/gui.html
Browse files- templates/gui.html +7 -7
templates/gui.html
CHANGED
|
@@ -17,19 +17,19 @@ function getURLParams() {
|
|
| 17 |
// Get URL parameters
|
| 18 |
const params = new URLSearchParams(window.location.search);
|
| 19 |
const pdfLink = params.get("pdfLink");
|
| 20 |
-
|
|
|
|
| 21 |
if (pdfLink) {
|
| 22 |
-
|
| 23 |
-
console.log("Decoded Dropbox Link:",
|
| 24 |
}
|
|
|
|
| 25 |
return {
|
| 26 |
-
pdfLink:
|
| 27 |
-
// keyword: decodeURIComponent(urlParams.get('keyword') || '')
|
| 28 |
-
// pageNumber: parseInt(urlParams.get('page')) || 1,
|
| 29 |
-
// zoomRect: urlParams.get('zoom') || '' // Expecting format: "x,y,width,height"
|
| 30 |
};
|
| 31 |
}
|
| 32 |
|
|
|
|
| 33 |
function processPdf() {
|
| 34 |
const pdfLink = getURLParams();
|
| 35 |
|
|
|
|
| 17 |
// Get URL parameters
|
| 18 |
const params = new URLSearchParams(window.location.search);
|
| 19 |
const pdfLink = params.get("pdfLink");
|
| 20 |
+
|
| 21 |
+
let decodedLink = null;
|
| 22 |
if (pdfLink) {
|
| 23 |
+
decodedLink = decodeURIComponent(pdfLink);
|
| 24 |
+
console.log("Decoded Dropbox Link:", decodedLink);
|
| 25 |
}
|
| 26 |
+
|
| 27 |
return {
|
| 28 |
+
pdfLink: decodedLink
|
|
|
|
|
|
|
|
|
|
| 29 |
};
|
| 30 |
}
|
| 31 |
|
| 32 |
+
|
| 33 |
function processPdf() {
|
| 34 |
const pdfLink = getURLParams();
|
| 35 |
|