This is the right place to report general bugs, make suggestions or ask for help.
-
Lubomír Ludvík
- Posts: 63
- Joined: Wed Feb 20, 2019 7:44 pm
- Location: Rouchovany
-
Contact:
Post
by Lubomír Ludvík » Sun Jan 05, 2025 6:44 pm
Web looked bad on a mobile device, so I detecting mobile browser and reducing the image preview.
Code: Select all
<script>
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
document.currentScript.outerHTML = `[img=images/mapka_apartmany.jpeg scale=5% float=right]`;
}else{
document.currentScript.outerHTML = `[img=images/mapka_apartmany.jpeg scale=18% float=right]`;
}
</script>
Is extension that detects the mobile and change the template or change .css?
-
Lubomír Ludvík
- Posts: 63
- Joined: Wed Feb 20, 2019 7:44 pm
- Location: Rouchovany
-
Contact:
Post
by Lubomír Ludvík » Mon Jan 06, 2025 2:30 am
and I change css style:
Code: Select all
@media only screen and (max-width: 480px) { ... }
-
fraenkiman
- Posts: 282
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
-
Contact:
Post
by fraenkiman » Thu Jan 09, 2025 11:14 pm
Hello Lubomír,
try the
mobile plugin. The code may need to be updated.
Have a good weekend
With best regards
Frank
Who is online
Users browsing this forum: No registered users and 1 guest