d
Showing
1 changed file
with
6 additions
and
5 deletions
| 1 | //var pluginUrl = window.location.protocol + '//' + window.location.host + '/commonwell'; | 1 | var pluginUrl = window.location.protocol + '//' + window.location.host + '/commonwell'; |
| 2 | //var pdf_customizer = "http://localhost:8888/pdf-customizer/public"; | 2 | var pdf_customizer = "http://localhost:8888/pdf-customizer/public"; |
| 3 | 3 | ||
| 4 | 4 | ||
| 5 | var pluginUrl = window.location.protocol + '//' + window.location.host; | 5 | //var pluginUrl = window.location.protocol + '//' + window.location.host; |
| 6 | var pdf_customizer = "https://pdf-customizer.synapsus.co"; | 6 | //var pdf_customizer = "https://pdf-customizer.synapsus.co"; |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | var imageHeight = ""; | 9 | var imageHeight = ""; |
| ... | @@ -17,6 +17,7 @@ var PageChangeOn; | ... | @@ -17,6 +17,7 @@ var PageChangeOn; |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | function getAuth() { | 19 | function getAuth() { |
| 20 | console.log(form); | ||
| 20 | jQuery(document).ready(function($) { | 21 | jQuery(document).ready(function($) { |
| 21 | var settings = { | 22 | var settings = { |
| 22 | "async": true, | 23 | "async": true, |
| ... | @@ -726,7 +727,7 @@ function finalPdf(data, json) { | ... | @@ -726,7 +727,7 @@ function finalPdf(data, json) { |
| 726 | 727 | ||
| 727 | 728 | ||
| 728 | var strVar2 = "" | 729 | var strVar2 = "" |
| 729 | strVar2 += '<div id="seepdf" style=" width:' + imageWidth + 'px; height: ' + imageHeight + 'px; overflow: hidden;" ><object style="overflow-x: hidden; overflow-y: hidden; width: ' + imageWidth + 'px; height: ' + imageHeight + 'px; min-height: 101%; -ms-overflow-style:none;" data=' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '#page=' + setpage + '&toolbar=0&navpanes=0&;scrollbar=0&statusbar=0" width="' + imageWidth + '" height="' + imageHeight + '" type="application/pdf" id="pdfloaded"></object></div>'; | 730 | strVar2 += '<div id="seepdf" style=" width:' + imageWidth + 'px; height: ' + imageHeight + 'px; overflow: hidden;" ><object data=' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '#page=' + setpage + '&toolbar=0&navpanes=0&;scrollbar=0&statusbar=0" width="' + imageWidth + '" height="' + imageHeight + '" type="application/pdf" id="pdfloaded"></object></div>'; |
| 730 | document.getElementById('pdfPreviewInner').innerHTML = strVar2; | 731 | document.getElementById('pdfPreviewInner').innerHTML = strVar2; |
| 731 | 732 | ||
| 732 | var strVar3 = '<div id="button"><input id="editMe" type="submit" value="Edit"><a href="' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '" download="' + json[0].file + '" ><input id="downloadMe" type="submit" value="Download"></a> </div>'; | 733 | var strVar3 = '<div id="button"><input id="editMe" type="submit" value="Edit"><a href="' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '" download="' + json[0].file + '" ><input id="downloadMe" type="submit" value="Download"></a> </div>'; | ... | ... |
-
Please register or sign in to post a comment