DmitrMakeev
commited on
Update registrations_period.html
Browse files
registrations_period.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>Регистрации за
|
7 |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
8 |
<style>
|
9 |
body {
|
@@ -157,11 +157,12 @@
|
|
157 |
});
|
158 |
}
|
159 |
|
160 |
-
// Устанавливаем сегодняшнюю дату по умолчанию
|
161 |
window.onload = function() {
|
162 |
const today = new Date().toISOString().split('T')[0];
|
163 |
document.getElementById('startDate').value = today;
|
164 |
document.getElementById('endDate').value = today;
|
|
|
165 |
};
|
166 |
</script>
|
167 |
</body>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Регистрации за период по UTM-меткам</title>
|
7 |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
8 |
<style>
|
9 |
body {
|
|
|
157 |
});
|
158 |
}
|
159 |
|
160 |
+
// Устанавливаем сегодняшнюю дату по умолчанию и загружаем данные
|
161 |
window.onload = function() {
|
162 |
const today = new Date().toISOString().split('T')[0];
|
163 |
document.getElementById('startDate').value = today;
|
164 |
document.getElementById('endDate').value = today;
|
165 |
+
fetchData(); // Автоматически загружаем данные за сегодня
|
166 |
};
|
167 |
</script>
|
168 |
</body>
|