Implemented dynamic host finding
This commit is contained in:
		
							
								
								
									
										8
									
								
								Frontend/assets/scripts/dyn_host.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Frontend/assets/scripts/dyn_host.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| $(document).ready( function() { | ||||
|     document.getElementsByName("iframe")[0].src = | ||||
|         window.location.protocol + "//" + window.location.hostname + ":8097"; | ||||
|     document.getElementById("rest-mock").href = | ||||
|         window.location.protocol + "//" + window.location.hostname + ":8097"; | ||||
|     console.log("DONE") | ||||
| }); | ||||
|          | ||||
| @@ -106,7 +106,7 @@ function performRequest(text, checkXML, checkTransform){ | ||||
| async function restRequest(text) { | ||||
|     const escapeChar = "specialEscapeChar"; | ||||
|     // const addr = "http://localhost:8081/" + text; | ||||
|     const addr = "http://tools.zipper.release11.com" + text; | ||||
|     const addr = window.location.protocol + "//" + window.location.hostname + ":8081/" + text; | ||||
|      | ||||
|     var xmlData = document.getElementById("xmlArea").value.trim(); | ||||
|     var transformData = document.getElementById("transformArea").value.trim(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user