Skip to content

Pequeño script (JavaScript) para detectar si el dispositivo es un móvil/tablet o no.

Notifications You must be signed in to change notification settings

carlosbsdev/isDesktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

isDesktop()

Pequeño script (JavaScript) para detectar si el dispositivo es un móvil/tablet o no.

Modo de uso

Añadir en el head: <script src="main.js"></script>

Y con el siguiente código determinamos:

if(isDesktop()){
    //Desktop and others
}else{
    //Smartphones (Android, Iphone, BlackBerry) and Tablets
}

About

Pequeño script (JavaScript) para detectar si el dispositivo es un móvil/tablet o no.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages