{"id":120,"date":"2014-02-04T13:18:18","date_gmt":"2014-02-04T13:21:28","guid":{"rendered":"https:\/\/d4220js.jpg"},"modified":"2015-07-16T20:02:14","modified_gmt":"2015-07-17T02:02:14","slug":"jquery-detectar-dispositivo-movil-o-tablet","status":"publish","type":"post","link":"https:\/\/emanuelpaxtian.com\/blog\/jquery-detectar-dispositivo-movil-o-tablet\/","title":{"rendered":"jQuery: detectar dispositivo m\u00f3vil o tablet"},"content":{"rendered":"<p>Simple condicional en javascript usando jQuery para detectar si el usuario accede a tu p\u00e1gina desde un dispositivo m\u00f3vil, android, iphone, tablets, ipad, etc\u2026<\/p>\n<p>Si se dese que uno mas solo se debe de poner el user agent para que sea detectado<\/p>\n<pre class=\"brush:php\">if($.browser.device = (\/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini\/i.test(navigator.userAgent.toLowerCase()))){\r\n    alert('Hola! Entras desde un dispositivo m\u00f3vil o tablet!');\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Simple condicional en javascript usando jQuery para detectar si el usuario accede a tu p\u00e1gina desde un dispositivo m\u00f3vil, android, iphone, tablets, ipad, etc\u2026 Si se dese que uno mas&hellip;<\/p>\n","protected":false},"author":1,"featured_media":478,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":0,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/media\/478"}],"wp:attachment":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}