diff --git a/core/static/core/js/efectos.js b/core/static/core/js/efectos.js index c839566..0e92adf 100644 --- a/core/static/core/js/efectos.js +++ b/core/static/core/js/efectos.js @@ -2,7 +2,7 @@ @licstart The following is the entire license notice for the JavaScript code in this page. -Copyleft 2017 | Heckyel +Copyleft 2021 | Heckyel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/core/static/core/js/efectos.min.js b/core/static/core/js/efectos.min.js deleted file mode 100644 index 327759b..0000000 --- a/core/static/core/js/efectos.min.js +++ /dev/null @@ -1,3 +0,0 @@ -// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later -!function(){"use strict";document.addEventListener("DOMContentLoaded",e=>{const t=document.getElementById("btn-acerca-de"),n=document.getElementById("btn-trabajos"),o=document.getElementById("btn-contacto"),a=(document.getElementById("acerca-de"),document.getElementById("trabajos")),c=document.getElementById("contacto");t.addEventListener("click",e=>{e.preventDefault(),window.scroll({top:240,behavior:"smooth"}),location.hash=t.hash}),n.addEventListener("click",e=>{e.preventDefault(),a.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),location.hash=n.hash}),o.addEventListener("click",e=>{e.preventDefault(),c.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),location.hash=o.hash})})}(); -// @license-end diff --git a/core/static/core/js/formulario.js b/core/static/core/js/formulario.js index da6d9f8..eead4f9 100644 --- a/core/static/core/js/formulario.js +++ b/core/static/core/js/formulario.js @@ -2,7 +2,7 @@ @licstart The following is the entire license notice for the JavaScript code in this page. -Copyleft 2017 | Heckyel +Copyleft 2021 | Heckyel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +18,8 @@ See the GNU General Public License for more details. for the JavaScript code in this page. */ -(function(){ +(function main(){ + 'use strict'; var formulario = document.getElementById('formulario'), nombre = formulario.name, correo = formulario.email, diff --git a/core/static/core/js/formulario.min.js b/core/static/core/js/formulario.min.js deleted file mode 100644 index fbbd354..0000000 --- a/core/static/core/js/formulario.min.js +++ /dev/null @@ -1,3 +0,0 @@ -// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later -!function(){function e(e){""!=a.value&&null!=a.value||(console.info("Por favor completa el nombre"),c.style.display="block",c.innerHTML=c.innerHTML+"
  • Por favor completa el nombre
  • ",e.preventDefault())}function l(e){""!=t.value&&null!=t.value||(console.info("Por favor completa el correo"),c.style.display="block",c.innerHTML=c.innerHTML+"
  • Por favor completa el correo
  • ",e.preventDefault())}function n(e){""!=i.value&&null!=i.value||(console.info("Por favor completa el mensaje"),c.style.display="block",c.innerHTML=c.innerHTML+"
  • Por favor completa el mensaje
  • ",e.preventDefault())}function o(o){c.innerHTML="",c.style.display="none",e(o),l(o),n(o)}var r=document.getElementById("formulario"),a=r.name,t=r.email,i=r.content,c=document.getElementById("error");r.addEventListener("submit",o)}(); -// @license-end diff --git a/core/static/core/librejs.html b/core/static/core/librejs.html index c9d5200..7a43a7c 100644 --- a/core/static/core/librejs.html +++ b/core/static/core/librejs.html @@ -8,13 +8,13 @@ - - + + - - + +
    formulario.min.jsGNU-GPL-3.0-or-laterformulario.jsGNU-GPL-3.0-or-later formulario.js
    efectos.min.jsGNU-GPL-3.0-or-laterefectos.jsGNU-GPL-3.0-or-later efectos.js
    diff --git a/core/templates/core/base.djhtml b/core/templates/core/base.djhtml index df1d9c4..ffddace 100644 --- a/core/templates/core/base.djhtml +++ b/core/templates/core/base.djhtml @@ -44,10 +44,9 @@ {% block contacto %}{% endblock %} {% endblock %} - - - + +