From ba23e9cad110fc8a70d4ec6b711459af1f62164a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Correa?= Date: Mon, 17 Aug 2020 16:34:06 -0300 Subject: [PATCH] agrega nuevo header para ceremonia y modifica el autoscroll en / y /descripcion --- public/js/app.js | 2 +- templates/header.html | 8 +++--- templates/headerceremonia.html | 48 ++++++++++++++++++++++++++++++++++ templates/layout-noside.html | 2 +- 4 files changed, 54 insertions(+), 6 deletions(-) create mode 100644 templates/headerceremonia.html diff --git a/public/js/app.js b/public/js/app.js index 1187af8..0cf0ea3 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -2,7 +2,7 @@ function routeMenu() { var ruta = window.location.pathname.split(".")[0]; $("ul#menu li").removeClass("active"); - ruta!=='/' && + (ruta!=='/' && ruta!=='/descripcion') && $([document.documentElement, document.body]).animate( { scrollTop: $("#content").offset().top diff --git a/templates/header.html b/templates/header.html index 1b1529b..cec970e 100644 --- a/templates/header.html +++ b/templates/header.html @@ -3,16 +3,16 @@ - - - + diff --git a/templates/headerceremonia.html b/templates/headerceremonia.html new file mode 100644 index 0000000..1b1529b --- /dev/null +++ b/templates/headerceremonia.html @@ -0,0 +1,48 @@ + + diff --git a/templates/layout-noside.html b/templates/layout-noside.html index d0618b1..2c964b5 100644 --- a/templates/layout-noside.html +++ b/templates/layout-noside.html @@ -4,7 +4,7 @@
- {% include 'header.html' %} + {% include 'headerceremonia.html' %}