diff options
-rw-r--r-- | core/static/core/js/efectos.js | 2 | ||||
-rw-r--r-- | core/static/core/js/efectos.min.js | 3 | ||||
-rw-r--r-- | core/static/core/js/formulario.js | 5 | ||||
-rw-r--r-- | core/static/core/js/formulario.min.js | 3 | ||||
-rw-r--r-- | core/static/core/librejs.html | 8 | ||||
-rw-r--r-- | core/templates/core/base.djhtml | 9 |
6 files changed, 12 insertions, 18 deletions
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+"<li>Por favor completa el nombre</li>",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+"<li>Por favor completa el correo</li>",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+"<li>Por favor completa el mensaje</li>",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 @@ <body> <table id="jslicense-labels1"> <tr> - <td><a href="./js/formulario.min.js">formulario.min.js</a></td> - <td><a href="https://www.gnu.org/licenses/gpl-3.0.html">GNU-GPL-3.0-or-later</a></td> + <td><a href="./js/formulario.js">formulario.js</a></td> + <td><a href="http://www.gnu.org/licenses/gpl-3.0.html">GNU-GPL-3.0-or-later</a></td> <td><a href="./js/formulario.js">formulario.js</a></td> </tr> <tr> - <td><a href="./js/efectos.min.js">efectos.min.js</a></td> - <td><a href="https://www.gnu.org/licenses/gpl-3.0.html">GNU-GPL-3.0-or-later</a></td> + <td><a href="./js/efectos.js">efectos.js</a></td> + <td><a href="http://www.gnu.org/licenses/gpl-3.0.html">GNU-GPL-3.0-or-later</a></td> <td><a href="./js/efectos.js">efectos.js</a></td> </tr> </table> 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 %} - - <script src="{% static 'core/js/formulario.min.js' %}" - integrity="sha512-x/w0Nw2Rb6s8/M5j2fABeQ+IFkZcB53XPWE8dCBMF5Gd5aVo6H9ztrAnay6qvBEH0IXVPSFHoj6DOW0zIKHUcQ=="></script> - <script src="{% static 'core/js/efectos.min.js' %}" - integrity="sha512-TRxi+0KfZ0LbALtnqnyX1X37/KGDGLaiSHkKerR6+gcN7w4cnmrJE2b73vEl0TgGJ7XUvIY0IePLIIK2emBUSA=="></script> + <script src="{% static 'core/js/efectos.js' %}" + integrity="sha512-9GdKmuOrtKz7ckc46lSnzz8SVUCYJEL29vCbv1Kb63Fo5yVDLEzsmoiODINkWU9rxQTgSZiawwU0oE8+mknLLw=="></script> + <script src="{% static 'core/js/formulario.js' %}" + integrity="sha512-uiBX+5GOQELMNOY3xYelryeQwSn2G3eKqRFZEzisp+CZUp8r82jFPNgcdrBG/ZI/Wt4Lx7ojx2U4jAWXk5jqIw=="></script> </body> </html> |