Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 4, 2019 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/009c31586dd920f5752ccb3072b7b066 to your computer and use it in GitHub Desktop.
Save parzibyte/009c31586dd920f5752ccb3072b7b066 to your computer and use it in GitHub Desktop.
<footer th:fragment="pie" class="px-2 py-2 fixed-bottom bg-dark" xmlns:th="http://www.w3.org/1999/xhtml">
<span class="text-muted">Sistema de ventas Spring Boot
<i class="fa fa-code"></i>
con
<i class="fa fa-heart"></i>
por
<a class="text-white" href="//parzibyte.me/blog">Parzibyte</a>
</span>
<script type="text/javascript">
// Tomado de https://github.com/parzibyte/cotizaciones_web/blob/master/js/cotizaciones.js#L2
document.addEventListener("DOMContentLoaded", () => {
const menu = document.querySelector("#menu"),
botonMenu = document.querySelector("#botonMenu");
if (menu) {
botonMenu.addEventListener("click", () => menu.classList.toggle("show"));
}
});
</script>
</footer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment