er
Showing
1 changed file
with
9 additions
and
9 deletions
| ... | @@ -5,7 +5,7 @@ | ... | @@ -5,7 +5,7 @@ |
| 5 | var settings = { | 5 | var settings = { |
| 6 | "async": true, | 6 | "async": true, |
| 7 | "crossDomain": true, | 7 | "crossDomain": true, |
| 8 | "url": "http://localhost:8888/pdf-customizer/public/api/authenticate", | 8 | "url": "http://pdf-customizer.synapsus.co/api/authenticate", |
| 9 | "method": "POST", | 9 | "method": "POST", |
| 10 | "headers": { | 10 | "headers": { |
| 11 | "authorization": "Basic amVmZkBnb3RlbnppbmcuY29tOjUxODg2Mg==", | 11 | "authorization": "Basic amVmZkBnb3RlbnppbmcuY29tOjUxODg2Mg==", |
| ... | @@ -47,7 +47,7 @@ $.ajax(settings).done(function (response) { | ... | @@ -47,7 +47,7 @@ $.ajax(settings).done(function (response) { |
| 47 | 47 | ||
| 48 | jQuery(document).ready(function($) { | 48 | jQuery(document).ready(function($) { |
| 49 | 49 | ||
| 50 | $.getJSON("http://localhost:8888/pdf-customizer/public/api/v1/get-list/"+user_id, function (data) { | 50 | $.getJSON("http://pdf-customizer.synapsus.co/api/v1/get-list/"+user_id, function (data) { |
| 51 | // Get the element with id summary and set the inner text to the result. | 51 | // Get the element with id summary and set the inner text to the result. |
| 52 | var json = JSON.stringify(data); | 52 | var json = JSON.stringify(data); |
| 53 | pickPdfFromList(json); | 53 | pickPdfFromList(json); |
| ... | @@ -63,7 +63,7 @@ $.ajax(settings).done(function (response) { | ... | @@ -63,7 +63,7 @@ $.ajax(settings).done(function (response) { |
| 63 | 63 | ||
| 64 | jQuery(document).ready(function($) { | 64 | jQuery(document).ready(function($) { |
| 65 | 65 | ||
| 66 | $.getJSON("http://localhost:8888/pdf-customizer/public/api/v1/get-pdf/"+id, function (data) { | 66 | $.getJSON("http://pdf-customizer.synapsus.co/api/v1/get-pdf/"+id, function (data) { |
| 67 | // Get the element with id summary and set the inner text to the result. | 67 | // Get the element with id summary and set the inner text to the result. |
| 68 | var json = JSON.stringify(data); | 68 | var json = JSON.stringify(data); |
| 69 | 69 | ||
| ... | @@ -90,7 +90,7 @@ $.ajax(settings).done(function (response) { | ... | @@ -90,7 +90,7 @@ $.ajax(settings).done(function (response) { |
| 90 | var pdflist = ""; | 90 | var pdflist = ""; |
| 91 | for (i = 0; i < json.length; ++i) { | 91 | for (i = 0; i < json.length; ++i) { |
| 92 | pdflist += "<div class=\"column\">"; | 92 | pdflist += "<div class=\"column\">"; |
| 93 | pdflist += '<a href=\"#\" onclick=\"getOneJson(' +json[i].idPDF+');\"> <img class=\"thumbnail\" src="http://localhost:8888/pdf-customizer/public/fileentry/getImage/' + json[i].folder + '/' + json[i].image + '" height=\"270px\"></a>'; | 93 | pdflist += '<a href=\"#\" onclick=\"getOneJson(' +json[i].idPDF+');\"> <img class=\"thumbnail\" src="http://pdf-customizer.synapsus.co//fileentry/getImage/' + json[i].folder + '/' + json[i].image + '" height=\"270px\"></a>'; |
| 94 | pdflist += " <h5>" + json[i].name + "<\/h5>"; | 94 | pdflist += " <h5>" + json[i].name + "<\/h5>"; |
| 95 | pdflist += "<\/div>"; | 95 | pdflist += "<\/div>"; |
| 96 | } | 96 | } |
| ... | @@ -145,7 +145,7 @@ function changePdfOptions(json){ | ... | @@ -145,7 +145,7 @@ function changePdfOptions(json){ |
| 145 | var pdflist =""; | 145 | var pdflist =""; |
| 146 | 146 | ||
| 147 | pdflist += "<div class=\"column\">"; | 147 | pdflist += "<div class=\"column\">"; |
| 148 | pdflist += ' <img src=\"http://localhost:8888/pdf-customizer/public/fileentry/getImage/' + json[0].folder + '/' + json[0].image + '\" width=\"300px\">'; | 148 | pdflist += ' <img src=\"http://pdf-customizer.synapsus.co//fileentry/getImage/' + json[0].folder + '/' + json[0].image + '\" width=\"300px\">'; |
| 149 | pdflist += "<\/div>"; | 149 | pdflist += "<\/div>"; |
| 150 | var pdfChange="<br>"; | 150 | var pdfChange="<br>"; |
| 151 | pdfChange += "<form id=\"changes\" name=\"changes\" enctype=\"multipart/form-data\" action=\"#\" METHOD=\"POST\"><h4>" + json[0].name+"</h4>"; | 151 | pdfChange += "<form id=\"changes\" name=\"changes\" enctype=\"multipart/form-data\" action=\"#\" METHOD=\"POST\"><h4>" + json[0].name+"</h4>"; |
| ... | @@ -230,7 +230,7 @@ strVar2 += ""; | ... | @@ -230,7 +230,7 @@ strVar2 += ""; |
| 230 | }); | 230 | }); |
| 231 | 231 | ||
| 232 | $.ajax({ | 232 | $.ajax({ |
| 233 | url: 'http://localhost:8888/Forms/wp-content/plugins/pdf-customizer-plugin/admin/uploadfile.php?files', | 233 | url: 'http://contact.gotenzing.com/wp-content/plugins/pdf-customizer-plugin/admin/uploadfile.php?files', |
| 234 | type: 'POST', | 234 | type: 'POST', |
| 235 | data: data, | 235 | data: data, |
| 236 | cache: false, | 236 | cache: false, |
| ... | @@ -273,7 +273,7 @@ strVar2 += ""; | ... | @@ -273,7 +273,7 @@ strVar2 += ""; |
| 273 | 273 | ||
| 274 | jQuery(document).ready(function ($) { | 274 | jQuery(document).ready(function ($) { |
| 275 | 275 | ||
| 276 | $.getJSON("http://localhost:8888/pdf-customizer/public/api/v1/get-pdf/" + id.value, function (dataReturnd) { | 276 | $.getJSON("http://pdf-customizer.synapsus.co/api/v1/get-pdf/" + id.value, function (dataReturnd) { |
| 277 | // Get the element with id summary and set the inner text to the result. | 277 | // Get the element with id summary and set the inner text to the result. |
| 278 | var json = dataReturnd; | 278 | var json = dataReturnd; |
| 279 | //console.log(json); | 279 | //console.log(json); |
| ... | @@ -305,7 +305,7 @@ strVar2 += ""; | ... | @@ -305,7 +305,7 @@ strVar2 += ""; |
| 305 | 305 | ||
| 306 | 306 | ||
| 307 | $.ajax({ | 307 | $.ajax({ |
| 308 | url: "http://localhost:8888/pdf-customizer/public/api/update", | 308 | url: "http://pdf-customizer.synapsus.co/api/update", |
| 309 | type: "POST", | 309 | type: "POST", |
| 310 | dataType: 'json', | 310 | dataType: 'json', |
| 311 | data: jsonReturn, | 311 | data: jsonReturn, |
| ... | @@ -319,7 +319,7 @@ strVar2 += ""; | ... | @@ -319,7 +319,7 @@ strVar2 += ""; |
| 319 | 319 | ||
| 320 | async: true, | 320 | async: true, |
| 321 | success: function (data) { | 321 | success: function (data) { |
| 322 | document.getElementById('contentArea').innerHTML ='<a href="http://localhost:8888/pdf-customizer/public/fileentry/getPDF/'+json[0].folder+'/new_'+json[0].file+'" download="'+json[0].file+'" >Download Here</a>'; | 322 | document.getElementById('contentArea').innerHTML ='<a href="http://pdf-customizer.synapsus.co/fileentry/getPDF/'+json[0].folder+'/new_'+json[0].file+'" download="'+json[0].file+'" >Download Here</a>'; |
| 323 | }, | 323 | }, |
| 324 | error: function (xhr, ajaxOptions, thrownError) { //Add these parameters to display the required response | 324 | error: function (xhr, ajaxOptions, thrownError) { //Add these parameters to display the required response |
| 325 | alert(xhr.status); | 325 | alert(xhr.status); | ... | ... |
-
Please register or sign in to post a comment