TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Device Orientation in HTML5 (tilt your computer if you have a MacBook & Chrome)

103 点作者 pud超过 13 年前

10 条评论

asadotzler超过 13 年前
The last three versions of Firefox have supported the W3C device orientation spec. Before that, and going all the way back to Firefox 3.5 more than two years ago, Firefox supported a vendor prefixed version.
mp3geek超过 13 年前
Pity the developer didn't include -moz extensions, given the use of -webkit extensions you'd think he doesnt care about anything but Webkit.
评论 #3366990 未加载
评论 #3365906 未加载
zobzu超过 13 年前
About 50% of the things on this page aren't HTML5, but chrome-only features.<p>Bleh for standardization, really.
评论 #3366220 未加载
ComputerGuru超过 13 年前
Or an IBM/Lenovo ThinkPad.<p>They all (ingeniously) use the sudden-drop detection that prevents hard drive head crashes to double as an accelerometer.
评论 #3365795 未加载
评论 #3365682 未加载
评论 #3365678 未加载
评论 #3367263 未加载
daniel_iversen超过 13 年前
it would be cool if GMail and other data sensitive web applications used these APIs so that it would log you out of the web service if your computer had a lot of motion (e.g. someone running away with it).
评论 #3365903 未加载
potch超过 13 年前
wrote a labyrinth demo back in the day to demo the Firefox-prefixed version of the API. I've updated it here: <a href="http://potch.me/labyrinth/" rel="nofollow">http://potch.me/labyrinth/</a>
jurre超过 13 年前
doesn't seem to work on my 2011 air
评论 #3365735 未加载
评论 #3365737 未加载
评论 #3366111 未加载
评论 #3365790 未加载
shalmanese超过 13 年前
I'm still waiting for someone to build a popular whack based interface based on this data. I'd love a photo album where I would tap the side of my screen to advance to the next/previous photo.
评论 #3365889 未加载
评论 #3366411 未加载
nostromo超过 13 年前
It seems to only react to two axes (beta and gamma -- in other words, if I rotate my MBP on a flat surface, nothing happens) -- is anyone on a device that provides alpha as well? I know the iPhone does, but this demo doesn't seem to work in Mobile Safari.
评论 #3366177 未加载
taylorbuley超过 13 年前
No JS required w/CSS media query, e.g. @media only screen and (orientation: landscape) {...}