diff options
Diffstat (limited to 'templates/js')
-rw-r--r-- | templates/js/efectos.js | 47 | ||||
-rw-r--r-- | templates/js/efectos.min.js | 3 | ||||
-rw-r--r-- | templates/js/formulario.js | 4 |
3 files changed, 2 insertions, 52 deletions
diff --git a/templates/js/efectos.js b/templates/js/efectos.js deleted file mode 100644 index 9d76511..0000000 --- a/templates/js/efectos.js +++ /dev/null @@ -1,47 +0,0 @@ -/* -@licstart The following is the entire license notice for the -JavaScript code in this page. - -Copyleft 2017 | 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 -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -@licend The above is the entire license notice -for the JavaScript code in this page. -*/ -$(document).ready(function(){ - // scroll elementos Menu - var acercade = $('#acerca-de').offset().top, - proyecto = $('#trabajos').offset().top, - contactar = $('#contacto').offset().top; - - $('#btn-acerca-de').on('click', function(e){ - e.preventDefault(); - $('html, body').animate({ - scrollTop: 240 - }, 500); - }); - - $('#btn-trabajos').on('click', function(e){ - e.preventDefault(); - $('html, body').animate({ - scrollTop: proyecto - }, 500); - }); - - $('#btn-contacto').on('click', function(e){ - e.preventDefault(); - $('html, body').animate({ - scrollTop: contactar - }, 500); - }); - -}); diff --git a/templates/js/efectos.min.js b/templates/js/efectos.min.js deleted file mode 100644 index 021b50d..0000000 --- a/templates/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 -$(document).ready(function(){$("#acerca-de").offset().top;var t=$("#trabajos").offset().top,o=$("#contacto").offset().top;$("#btn-acerca-de").on("click",function(t){t.preventDefault(),$("html, body").animate({scrollTop:240},500)}),$("#btn-trabajos").on("click",function(o){o.preventDefault(),$("html, body").animate({scrollTop:t},500)}),$("#btn-contacto").on("click",function(t){t.preventDefault(),$("html, body").animate({scrollTop:o},500)})}); -// @license-end diff --git a/templates/js/formulario.js b/templates/js/formulario.js index fae85ec..00bd9a8 100644 --- a/templates/js/formulario.js +++ b/templates/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 2019 | 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 @@ -19,7 +19,7 @@ for the JavaScript code in this page. */ (function(){ - var formulario = document.getElementById('formulario'), + let formulario = document.getElementById('formulario'), nombre = formulario.nombre, correo = formulario.correo, mensaje = formulario.mensaje, |