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
f9e8e36d
authored
2016-09-12 17:03:14 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
iefix
1 parent
b30d2369
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
public/files/js/interfaceGdrive.js
public/files/js/interfaceGdrive.js
View file @
f9e8e36
...
...
@@ -17,7 +17,6 @@ var PageChangeOn;
function
getAuth
()
{
console
.
log
(
form
);
jQuery
(
document
).
ready
(
function
(
$
)
{
var
settings
=
{
"async"
:
true
,
...
...
@@ -724,15 +723,23 @@ function finalPdf(data, json) {
}
$
(
'#controls'
).
hide
();
$
(
'#pdfPreviewInner'
).
show
()
var
strVar2
=
""
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>'
;
strVar2
+=
'<div id="seepdf" style=" width:'
+
imageWidth
+
'px; height: '
+
imageHeight
+
'px; overflow: hidden;" ></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>'
;
document
.
getElementById
(
'controls'
).
innerHTML
=
strVar3
;
var
options
=
{
height
:
imageHeight
+
"px"
,
width
:
imageWidth
+
"px"
,
pdfOpenParams
:
{
scrollbar
:
'0'
,
toolbar
:
'0'
,
statusbar
:
'0'
,
messages
:
'0'
,
navpanes
:
'0'
,
view
:
'FitV'
,
page
:
+
setpage
}
};
PDFObject
.
embed
(
pdf_customizer
+
'/fileentry/getPDF/'
+
json
[
0
].
folder
+
'/new_'
+
json
[
0
].
file
,
"#seepdf"
,
options
);
$
.
LoadingOverlaySetup
({
color
:
"rgba(0, 0, 0, 0.9)"
,
image
:
pluginUrl
+
"/wp-content/plugins/pdf-customizer-plugin/public/js/loading.gif"
,
...
...
Please
register
or
sign in
to post a comment