From d8767e4c9d628431b5e348608db9116bbe2e7064 Mon Sep 17 00:00:00 2001 From: "arlemp@selectel.ru" Date: Fri, 31 May 2024 20:48:45 +0300 Subject: [PATCH] add right click page prev --- app/pub/css/an.css | 2 +- app/views/anpdf3.phtml | 6 ++++-- app/views/layout_lite.phtml | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/pub/css/an.css b/app/pub/css/an.css index 4d6bd1c..c44ff4a 100644 --- a/app/pub/css/an.css +++ b/app/pub/css/an.css @@ -370,7 +370,7 @@ h1 { } .click-info{ - font-size: .8em; + font-size: .78em; text-align: right; } diff --git a/app/views/anpdf3.phtml b/app/views/anpdf3.phtml index f22517f..7a37a63 100644 --- a/app/views/anpdf3.phtml +++ b/app/views/anpdf3.phtml @@ -28,13 +28,15 @@ window.location.href = nexturl; }); - canvasDiv.addEventListener('dblclick', function(event) { + + canvasDiv.addEventListener('contextmenu', function(event) { event.stopPropagation(); window.location.href = prevurl; }); +

кликайте чтобы листать страницы

@@ -94,7 +96,7 @@ / Режим для чтения

-

кликайте чтобы листать страницы

+ diff --git a/app/views/layout_lite.phtml b/app/views/layout_lite.phtml index c614661..4c3b005 100644 --- a/app/views/layout_lite.phtml +++ b/app/views/layout_lite.phtml @@ -4,8 +4,8 @@ "> - - + +