2024-12-21 22:11:18 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="pl">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Upload PDF</title>
|
|
|
|
<link rel="stylesheet" href="styles.css">
|
|
|
|
</head>
|
2025-01-07 19:30:29 +01:00
|
|
|
<style>
|
|
|
|
* {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
background-color: #f4f4f4;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
background-color: white;
|
|
|
|
padding: 20px;
|
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 400px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
form {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="file"] {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
padding: 10px;
|
|
|
|
background-color: #4CAF50;
|
|
|
|
color: white;
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 16px;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button:hover {
|
|
|
|
background-color: #45a049;
|
|
|
|
}
|
|
|
|
|
|
|
|
#responseMessage {
|
|
|
|
margin-top: 20px;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
2024-12-21 22:11:18 +01:00
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h1>Prześlij plik PDF</h1>
|
|
|
|
<form id="uploadForm" enctype="multipart/form-data">
|
|
|
|
<label for="file">Wybierz plik PDF:</label>
|
|
|
|
<input type="file" id="file" name="file" accept=".pdf" required>
|
|
|
|
<button type="submit">Wyślij</button>
|
|
|
|
</form>
|
|
|
|
<div id="responseMessage"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="scripts.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|