WebSite X5Help Center

 
Joe H.
Joe H.
User

Not wanting a page to be viewable on mobile  en

Автор: Joe H.
Просмотрено 803, Подписчики 1, Размещенный 0  

Is it possible for a page viewed on a desktop computer to not be seen on a mobile device if I choose?

Размещено
3 Ответы - 1 Полезно
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... x (-) < 720 px (resolution) :

<script>
$( document ).ready(function() { //K;
k=$( window ).width(); if(k < 720) { location.href = "courtesy_page.html"; }});
</script>

.

ciao

.

Читать больше
Размещено От  ‪ KolAsim ‪ ‪
Joe H.
Joe H.
User
Автор

Can you show or explain what this script is.

Читать больше
Размещено От Joe H.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

(It > En) ... paste my code in the Expert / HEAD  section, or in any HTML Code Object start the Preview in reduced window under 720px,  and you will understand...
... my code is activated in a window lower than 720px, for example in the smartphone, ... or if you restrict the browser window below 720px you have to activate the refresh to start the code ...
... the code will launch a courtesy page (hidden)  that you have to do, or you can replace it with the INDEX page...

.

Читать больше
Размещено От  ‪ KolAsim ‪ ‪