faktury
This commit is contained in:
parent
4250458b60
commit
1a11959c95
11
ec2.py
11
ec2.py
@ -233,17 +233,17 @@ def create_js_scripts(ip):
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
document.getElementById('responseMessage').innerHTML = `
|
||||
<p>Plik został pomyślnie przesłany!</p>
|
||||
<pre>${{JSON.stringify(data, null, 2)}}</pre>
|
||||
<p>Upload successful!</p>
|
||||
<pre>${JSON.stringify(data, null, 2)}</pre>
|
||||
`;
|
||||
})
|
||||
.catch(error => {
|
||||
document.getElementById('responseMessage').innerHTML = `
|
||||
<p>Błąd podczas przesyłania pliku: ${error.message}</p>
|
||||
<p>Error during file upload: ${error.message}</p>
|
||||
`;
|
||||
});
|
||||
} 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()
|
||||
# main()
|
||||
create_js_scripts("127.0.0.1")
|
@ -15,17 +15,17 @@
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
document.getElementById('responseMessage').innerHTML = `
|
||||
<p>Plik został pomyślnie przesłany!</p>
|
||||
<pre>${{JSON.stringify(data, null, 2)}}</pre>
|
||||
<p>Upload successful!</p>
|
||||
<pre>${JSON.stringify(data, null, 2)}</pre>
|
||||
`;
|
||||
})
|
||||
.catch(error => {
|
||||
document.getElementById('responseMessage').innerHTML = `
|
||||
<p>Błąd podczas przesyłania pliku: ${error.message}</p>
|
||||
<p>Error during file upload: ${error.message}</p>
|
||||
`;
|
||||
});
|
||||
} else {
|
||||
alert('Proszę wybrać plik!');
|
||||
alert('Please select file!');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user