Organizational Research By

Surprising Reserch Topic

detect viewport orientation if orientation is portrait display alert message ad


detect viewport orientation if orientation is portrait display alert message ad  using -'javascript,jquery,mobile,viewport,device-orientation'

I am building a website specifically for mobile devices. There is one page in particular which is best viewed in landscape mode.

Is there a way to detect if the user visiting that page is viewing it in Portrait mode and if so, display a message informing the user that the page is best viewed in landscape mode? If the user is already viewing it in landscape mode then no message will appear.

So basically, I want the site to detect the viewport orientation, if orientation is Portrait, then display an alert message advising the user that this page is best viewed in Landscape mode.

Many thanks,
Dan
    

asked Oct 19, 2015 by sumit_jaiswalmca
0 votes
17 views



Related Hot Questions

14 Answers

0 votes
NULL
answered Oct 19, 2015 by vijaygupta1980
0 votes
NULL
answered Oct 19, 2015 by okesh.badhiye
0 votes
NULL
answered Oct 19, 2015 by kotmus2002
0 votes
NULL
answered Oct 19, 2015 by deepak
0 votes
NULL
answered Oct 19, 2015 by patelnikul321
0 votes
NULL
answered Oct 19, 2015 by r3tt
0 votes
NULL
answered Oct 19, 2015 by ankitarajoria4
0 votes
NULL
answered Oct 19, 2015 by kotmus2002
0 votes
NULL
answered Oct 19, 2015 by kinnari
0 votes
NULL
answered Oct 19, 2015 by tejas lakhani
0 votes
NULL
answered Oct 19, 2015 by loknath.ganji
0 votes
NULL
answered Oct 19, 2015 by mannumits1
0 votes
NULL
answered Oct 19, 2015 by param.oncemore
0 votes
NULL
answered Oct 19, 2015 by rajnipancholi

...