add test page
This commit is contained in:
parent
515dd8da03
commit
230bc222ea
37
test.html
Normal file
37
test.html
Normal file
@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Тест загрузки</title>
|
||||
<style>
|
||||
body { font-family: sans-serif; padding: 40px; background: #1a1a1a; color: #fff; }
|
||||
.box { background: #333; padding: 40px; border-radius: 12px; text-align: center; max-width: 500px; margin: 0 auto; }
|
||||
button { background: #2196F3; color: white; border: none; padding: 16px 32px; border-radius: 8px; font-size: 18px; cursor: pointer; }
|
||||
button:hover { background: #1976D2; }
|
||||
#status { margin-top: 20px; color: #ff9800; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="box">
|
||||
<h2>Тест загрузки Excel</h2>
|
||||
<p>Нажми кнопку ниже</p>
|
||||
<input type="file" id="fileInput" accept=".xlsx,.xls,.csv" hidden>
|
||||
<button id="btn">Выбрать файл</button>
|
||||
<div id="status"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.getElementById('btn').addEventListener('click', function() {
|
||||
document.getElementById('fileInput').click();
|
||||
});
|
||||
|
||||
document.getElementById('fileInput').addEventListener('change', function(e) {
|
||||
var file = e.target.files[0];
|
||||
if (file) {
|
||||
document.getElementById('status').textContent = 'Выбран файл: ' + file.name + ' (' + file.size + ' байт)';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user