Initial state

This commit is contained in:
2023-05-16 10:16:21 -06:00
commit c3c0108143
167 changed files with 20135 additions and 0 deletions

42
import/html_scroll.php Normal file
View File

@@ -0,0 +1,42 @@
<?php
include_once "include/constantes.php";
?>
<a href="#top" id="scroll-up" class="btn btn-primary btn-sm" role="button" aria-pressed="true" style="display: none; position: fixed; bottom: 3rem; right: 1rem;">
<?= $ICO['arriba'] ?>
</a>
<!-- Scroll down -->
<a href="#bottom" id="scroll-down" class="btn btn-primary btn-sm" role="button" aria-pressed="true" style="display: none; position: fixed; bottom: 1rem; right: 1rem;">
<?= $ICO['abajo'] ?>
</a>
<script>
$(document).ready(function() {
$(window).scroll(function() {
if ($(this).scrollTop() > 100) {
$('#scroll-up').fadeIn();
} else {
$('#scroll-up').fadeOut();
}
if ($(this).scrollTop() < $(document).height() - $(window).height() - 100) {
$('#scroll-down').fadeIn();
} else {
$('#scroll-down').fadeOut();
}
});
$('#scroll-up').click(function() {
$("html, body").animate({
scrollTop: 0
}, 600);
return false;
});
$('#scroll-down').click(function() {
$("html, body").animate({
scrollTop: $(document).height()
}, 600);
return false;
});
});
</script>