From 64527f454fb00725ac9b3af2591c959d70e37ce8 Mon Sep 17 00:00:00 2001 From: Tomas Bortoli Date: Thu, 14 Dec 2023 20:07:31 +0100 Subject: [PATCH] Fixed iPad detection and layout (search bar & co. were hidden) --- contatti.html | 2 +- dicono-di-me.html | 2 +- index.html | 2 +- scripts/mobile_who_am_i.js | 12 ++++++++++-- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/contatti.html b/contatti.html index 8c83240..8216a74 100644 --- a/contatti.html +++ b/contatti.html @@ -35,7 +35,7 @@


2 && /MacIntel/.test(navigator.platform) + if (isTablet || isIpad){ // if landscape if(window.innerHeight < window.innerWidth){ document.getElementsByClassName('block3')[0].style.marginTop = '110%' @@ -16,6 +17,13 @@ function setup_tablet(){ document.getElementsByClassName('block5')[0].style.marginTop = '110%' getById('bottom-table').style.marginTop = '280%' } + + if(isIpad){ + elems = document.getElementsByClassName('common-block') + for(i=0;i