Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f96ea18a
authored
2016-09-12 15:30:51 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
d
1 parent
12fe1256
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
public/files/js/interfaceGdrive.js
public/files/js/interfaceGdrive.js
View file @
f96ea18
//
var pluginUrl = window.location.protocol + '//' + window.location.host + '/commonwell';
//
var pdf_customizer = "http://localhost:8888/pdf-customizer/public";
var
pluginUrl
=
window
.
location
.
protocol
+
'//'
+
window
.
location
.
host
+
'/commonwell'
;
var
pdf_customizer
=
"http://localhost:8888/pdf-customizer/public"
;
var
pluginUrl
=
window
.
location
.
protocol
+
'//'
+
window
.
location
.
host
;
var
pdf_customizer
=
"https://pdf-customizer.synapsus.co"
;
//
var pluginUrl = window.location.protocol + '//' + window.location.host;
//
var pdf_customizer = "https://pdf-customizer.synapsus.co";
var
imageHeight
=
""
;
...
...
@@ -17,6 +17,7 @@ var PageChangeOn;
function
getAuth
()
{
console
.
log
(
form
);
jQuery
(
document
).
ready
(
function
(
$
)
{
var
settings
=
{
"async"
:
true
,
...
...
@@ -726,7 +727,7 @@ function finalPdf(data, json) {
var
strVar2
=
""
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>'
;
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>'
;
document
.
getElementById
(
'pdfPreviewInner'
).
innerHTML
=
strVar2
;
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