{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/dart-pad/issues/106","labels_url":"https://api.github.com/repos/dart-lang/dart-pad/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/dart-pad/issues/106/comments","events_url":"https://api.github.com/repos/dart-lang/dart-pad/issues/106/events","html_url":"https://github.com/dart-lang/dart-pad/issues/106","id":57991938,"number":106,"title":"best way to switch between a mobile and desktop UI?","user":{"login":"devoncarew","id":1269969,"avatar_url":"https://avatars.githubusercontent.com/u/1269969?v=3","gravatar_id":"","url":"https://api.github.com/users/devoncarew","html_url":"https://github.com/devoncarew","followers_url":"https://api.github.com/users/devoncarew/followers","following_url":"https://api.github.com/users/devoncarew/following{/other_user}","gists_url":"https://api.github.com/users/devoncarew/gists{/gist_id}","starred_url":"https://api.github.com/users/devoncarew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devoncarew/subscriptions","organizations_url":"https://api.github.com/users/devoncarew/orgs","repos_url":"https://api.github.com/users/devoncarew/repos","events_url":"https://api.github.com/users/devoncarew/events{/privacy}","received_events_url":"https://api.github.com/users/devoncarew/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-17T22:23:06Z","updated_at":"2015-04-10T06:14:51Z","closed_at":"2015-04-10T06:14:51Z","body":"If we have two different entry-points for mobile and desktop UIs, what's the best way to switch between them?\r\n\r\nGiven:\r\n- two explicit entry-points (`index.html` and `mobile.html`)\r\n\r\nWe could use:\r\n- a separate cname (`m.dartpad.dartlang.org`)?\r\n- explicit links in the UIs to switch between them (`view the mobile UI` / `view the desktop UI`)?\r\n- auto-detect and redirect on the server?\r\n- the screen size?\r\n-the user agent / user agent library (which is bad, but perhaps the best available option)?"},"comment":{"url":"https://api.github.com/repos/dart-lang/dart-pad/issues/comments/91445519","html_url":"https://github.com/dart-lang/dart-pad/issues/106#issuecomment-91445519","issue_url":"https://api.github.com/repos/dart-lang/dart-pad/issues/106","id":91445519,"user":{"login":"devoncarew","id":1269969,"avatar_url":"https://avatars.githubusercontent.com/u/1269969?v=3","gravatar_id":"","url":"https://api.github.com/users/devoncarew","html_url":"https://github.com/devoncarew","followers_url":"https://api.github.com/users/devoncarew/followers","following_url":"https://api.github.com/users/devoncarew/following{/other_user}","gists_url":"https://api.github.com/users/devoncarew/gists{/gist_id}","starred_url":"https://api.github.com/users/devoncarew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devoncarew/subscriptions","organizations_url":"https://api.github.com/users/devoncarew/orgs","repos_url":"https://api.github.com/users/devoncarew/repos","events_url":"https://api.github.com/users/devoncarew/events{/privacy}","received_events_url":"https://api.github.com/users/devoncarew/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T06:14:51Z","updated_at":"2015-04-10T06:14:51Z","body":"Closing this out in favor of #287. Short term we'll use server detect; longer term we'll refactor the UI to be programmatically responsive for phone / tablet / desktop."}}