From 4804fc20f712a46b7d6d9b8649eefd2aa0eedeac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 12 Oct 2021 16:49:22 +0200 Subject: [PATCH] Use PDF.js for mobile devices --- .../ninja2020/components/pdf-viewer.blade.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resources/views/portal/ninja2020/components/pdf-viewer.blade.php b/resources/views/portal/ninja2020/components/pdf-viewer.blade.php index 54f0f06382..77d33f306f 100644 --- a/resources/views/portal/ninja2020/components/pdf-viewer.blade.php +++ b/resources/views/portal/ninja2020/components/pdf-viewer.blade.php @@ -1,5 +1,5 @@ @php - $android = stripos($_SERVER['HTTP_USER_AGENT'], 'Android'); + $mobile = stripos($_SERVER['HTTP_USER_AGENT'], 'Android') || stripos($_SERVER['HTTP_USER_AGENT'], 'iPhone') || stripos($_SERVER['HTTP_USER_AGENT'], 'iPod') || stripos($_SERVER['HTTP_USER_AGENT'], 'iPad'); @endphp @push('head') @@ -9,7 +9,7 @@
-
+
- {{ ctrans('texts.page') }}: + {{ ctrans('texts.page') }}: {{ strtolower(ctrans('texts.of')) }}
-