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
262fa897
authored
2016-07-08 13:48:40 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
0b793245
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
public/files/js/interfaceGdrive.js
public/files/js/interfaceGdrive.js
View file @
262fa89
var
pluginUrl
=
"http://localhost:8888/Forms"
;
var
pdf_customizer
=
"http://localhost:8888/pdf-customizer/public"
;
//
var pluginUrl = "http://localhost:8888/Forms";
//
var pdf_customizer = "http://localhost:8888/pdf-customizer/public";
//
var pluginUrl = "http://contact.gotenzing.com";
//
var pdf_customizer = "http://pdf-customizer.synapsus.co";
var
pluginUrl
=
"http://contact.gotenzing.com"
;
var
pdf_customizer
=
"http://pdf-customizer.synapsus.co"
;
function
getAuth
()
{
jQuery
(
document
).
ready
(
function
(
$
)
{
...
...
@@ -95,13 +95,7 @@ function ShowBox(pheight, pwidth, up, right, height, width, count, example) {
}
function
SetFocus
(
i
)
{
jQuery
(
document
).
ready
(
function
(
$
)
{
$
(
"label#focusButton"
+
i
).
css
({
"border"
:
"2px solid #F7A800 !important"
});
console
.
log
(
$
(
"label#focusButton"
+
i
));
});
}
function
HideBox
()
{
...
...
@@ -217,7 +211,7 @@ function changePdfOptions(json) {
pdfChange
+=
'<span id="span'
+
i
+
'">'
+
json
[
i
].
tips
+
'</span><br/>'
;
}
if
(
json
[
i
].
change_type
==
"img"
)
{
pdfChange
+=
json
[
i
].
names
+
':<label id="focusButton'
+
i
+
'" class="custom-file-input" tabindex="0"><input tabindex="-1" onfocusout="HideBox()" onfocus="
SetFocus('
+
i
+
'),
ShowBox('
+
json
[
0
].
pheight
+
','
+
json
[
0
].
pwidth
+
','
+
json
[
i
].
locationUp
+
','
+
json
[
i
].
locationRight
+
','
+
json
[
i
].
height
+
','
+
json
[
i
].
width
+
','
+
i
+
',\''
+
example
+
'\')" class="fileupload upload required" id="changescontent['
+
i
+
']" type="file" name="content['
+
i
+
']" ><span class="file-button"><span class="file-name file-button"></span><strong>Browse</strong></span></label>'
;
pdfChange
+=
json
[
i
].
names
+
':<label id="focusButton'
+
i
+
'" class="custom-file-input" tabindex="0"><input tabindex="-1" onfocusout="HideBox()" onfocus=" ShowBox('
+
json
[
0
].
pheight
+
','
+
json
[
0
].
pwidth
+
','
+
json
[
i
].
locationUp
+
','
+
json
[
i
].
locationRight
+
','
+
json
[
i
].
height
+
','
+
json
[
i
].
width
+
','
+
i
+
',\''
+
example
+
'\')" class="fileupload upload required" id="changescontent['
+
i
+
']" type="file" name="content['
+
i
+
']" ><span class="file-button"><span class="file-name file-button"></span><strong>Browse</strong></span></label>'
;
pdfChange
+=
'<span id="span'
+
i
+
'">'
+
json
[
i
].
tips
+
'</span><br/>'
;
}
if
(
json
[
i
].
change_type
==
"date"
)
{
...
...
Please
register
or
sign in
to post a comment