From 1a11959c95c7a8e5a12996fa1c6897f49c706e9c Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Sat, 21 Dec 2024 22:13:27 +0100 Subject: [PATCH] faktury --- ec2.py | 11 ++++++----- scripts.js | 8 ++++---- 2 files changed, 10 insertions(+), 9 deletions(-) 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