Update zanzara.php
This commit is contained in:
parent
8bee8b82f4
commit
6593430afe
1 changed files with 40 additions and 35 deletions
19
zanzara.php
19
zanzara.php
|
|
@ -681,12 +681,8 @@ if (isset($_GET['action']) && $_GET['action'] === 'get_valid_dates') {
|
||||||
order: 2;
|
order: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group button[type="submit"]:not(.random-button) {
|
|
||||||
order: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group button[type="button"] {
|
.form-group button[type="button"] {
|
||||||
order: 4;
|
order: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation {
|
.navigation {
|
||||||
|
|
@ -864,7 +860,6 @@ if (isset($_GET['action']) && $_GET['action'] === 'get_valid_dates') {
|
||||||
value="<?php echo htmlspecialchars($inputValue); ?>"
|
value="<?php echo htmlspecialchars($inputValue); ?>"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
inputmode="numeric">
|
inputmode="numeric">
|
||||||
<button type="submit">Procedi</button>
|
|
||||||
<button type="button" onclick="window.location.href=window.location.href">Reset</button>
|
<button type="button" onclick="window.location.href=window.location.href">Reset</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
@ -1235,6 +1230,16 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Gestione invio con Enter nell'input
|
||||||
|
$('#datepicker').on('keypress', function(e) {
|
||||||
|
if (e.which === 13) { // Enter key
|
||||||
|
e.preventDefault();
|
||||||
|
if ($(this).val().length === 8) { // Controlla che sia nel formato YYYYMMDD
|
||||||
|
$('#dateForm').submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Aggiungi scorciatoie da tastiera per navigazione
|
// Aggiungi scorciatoie da tastiera per navigazione
|
||||||
$(document).keydown(function(e) {
|
$(document).keydown(function(e) {
|
||||||
if ($('input:focus').length === 0) { // Solo se non si sta digitando in un input
|
if ($('input:focus').length === 0) { // Solo se non si sta digitando in un input
|
||||||
|
|
@ -1276,7 +1281,7 @@ $(document).ready(function() {
|
||||||
🔗 Pagina ufficiale LaZanzara
|
🔗 Pagina ufficiale LaZanzara
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<p>- - - powered by Gabry, Claude and me - v1.0.0 (01/08/2025) - - -</p>
|
<p>- - - powered by Gabry, Claude and me - v1.1.0 (14/09/2025) - - -</p>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue