diff --git a/ec2.py b/ec2.py index bdf7faa..f3d4823 100644 --- a/ec2.py +++ b/ec2.py @@ -233,17 +233,17 @@ def create_js_scripts(ip): .then(response => response.json()) .then(data => { document.getElementById('responseMessage').innerHTML = ` -
Plik został pomyślnie przesłany!
-${{JSON.stringify(data, null, 2)}}+
Upload successful!
+${JSON.stringify(data, null, 2)}`; }) .catch(error => { document.getElementById('responseMessage').innerHTML = ` -
Błąd podczas przesyłania pliku: ${error.message}
+Error during file upload: ${error.message}
`; }); } else { - alert('ProszÄ™ wybrać plik!'); + alert('Please select file!'); } }); """ @@ -289,4 +289,5 @@ def main(): ec2_id = run_instance(ec2_client, launch_template_id, subnet) if __name__ == '__main__': - main() \ No newline at end of file + # main() + create_js_scripts("127.0.0.1") \ No newline at end of file diff --git a/scripts.js b/scripts.js index 302014b..bfb1905 100644 --- a/scripts.js +++ b/scripts.js @@ -15,17 +15,17 @@ .then(response => response.json()) .then(data => { document.getElementById('responseMessage').innerHTML = ` -Plik zosta³ pomyœlnie przes³any!
-${{JSON.stringify(data, null, 2)}}+
Upload successful!
+${JSON.stringify(data, null, 2)}`; }) .catch(error => { document.getElementById('responseMessage').innerHTML = ` -
B³¹d podczas przesy³ania pliku: ${error.message}
+Error during file upload: ${error.message}
`; }); } else { - alert('Proszê wybraæ plik!'); + alert('Please select file!'); } }); \ No newline at end of file