Adding copyright year updated every year.
This commit is contained in:
parent
430776cf55
commit
c5d7e160e9
@ -65,8 +65,30 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
fakeSearchInput = searchMobile.querySelector('input')
|
||||
addListenersSearch()
|
||||
}
|
||||
|
||||
const cookies = document.cookie.split(";").map((cookie) => {
|
||||
let [key, value] = cookie.split("=");
|
||||
return {
|
||||
key: key,
|
||||
value: value,
|
||||
}
|
||||
}).reduce((acc, cookie) => {
|
||||
acc[cookie.key] = cookie.value;
|
||||
return acc;
|
||||
}, {});
|
||||
if (!cookies['search-tutorial-seen']) {
|
||||
startSearchTutorial();
|
||||
}
|
||||
}, false);
|
||||
|
||||
function startSearchTutorial() {
|
||||
console.log('Showing how to use search');
|
||||
}
|
||||
|
||||
function markSearchTutorialAsSeen() {
|
||||
console.log('Tutorial ended');
|
||||
document.cookie = 'search-tutorial-seen=1; SameSite=Lax;'
|
||||
}
|
||||
function fillFarmaciaGuardia() {
|
||||
const farmaciaName = document.querySelector('#farmacia-name');
|
||||
const farmaciaAddress = document.querySelector('#farmacia-address');
|
||||
|
@ -24,6 +24,7 @@ sub startup ($self) {
|
||||
$c->stash(current_route => $current_route);
|
||||
my $is_android = $c->req->headers->user_agent =~ /android/i;
|
||||
$c->stash(is_android => $is_android);
|
||||
$c->stash(has_seen_search_explanation => $c->cookie('has-seen-search-explanation'));
|
||||
my $onion_base_url = $self->config->{onion_base_url};
|
||||
my $base_url = $self->config->{base_url};
|
||||
if (!defined $onion_base_url) {
|
||||
|
@ -177,7 +177,7 @@ body {
|
||||
height: 100%;
|
||||
width: 100%; }
|
||||
body div.page-contents.no-carousel {
|
||||
height: calc(100% - 60px); }
|
||||
height: calc(100% - 80px); }
|
||||
body nav {
|
||||
overflow: auto;
|
||||
display: block;
|
||||
|
@ -260,7 +260,7 @@ body {
|
||||
}
|
||||
|
||||
div.page-contents.no-carousel {
|
||||
height: calc(100% - 60px);
|
||||
height: calc(100% - 80px);
|
||||
}
|
||||
|
||||
nav {
|
||||
|
BIN
public/img/arrow-pointing-down.webp
Normal file
BIN
public/img/arrow-pointing-down.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
File diff suppressed because one or more lines are too long
@ -7,6 +7,10 @@
|
||||
% $description_og =~ s/\s\S+$//;
|
||||
% $description_og.='...';
|
||||
% my $base_url = config 'base_url';
|
||||
% use Time::Piece;
|
||||
|
||||
% my $t = Time::Piece->new();
|
||||
% my $year = $t->year;
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Google Tag Manager -->
|
||||
@ -76,6 +80,9 @@
|
||||
<img alt="Exit search" src="/img/exit.svg"/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tutorial-overlay-step-1">
|
||||
|
||||
</div>
|
||||
<div class="complete-container">
|
||||
%= include 'page/_mobile_foldable', categories => $categories
|
||||
@ -111,7 +118,7 @@
|
||||
<hr/>
|
||||
<div class="footer">
|
||||
<div class="description">
|
||||
<p>©2022-2023 Sergio Iglesias</p>
|
||||
<p>©2022-<%=$year%> Sergio Iglesias</p>
|
||||
<p>Enterate de todas las novedades de Burguillos.info:</p>
|
||||
<a class="suscribe-category-rss" href="/all.rss">
|
||||
<img src="/img/rss.svg" alt="Icono de suscripción rss"/>
|
||||
|
Loading…
Reference in New Issue
Block a user