用 HTML5 写了一个指南针和水平仪

2014-09-07 22:44:57 +08:00
 island205
iPhone 5s/5c 测试可用,试试看: http://island205.github.io/H5Compass/

上图:

指南针



水平仪



外观和功能与 iPhone 原生的指南针一样。

项目地址: https://github.com/island205/H5Compass
6902 次点击
所在节点    程序员
19 条回复
Artotria
2014-09-07 23:12:20 +08:00
好顶赞
shuding
2014-09-08 00:06:10 +08:00
赞!(建议把第二个 tab 里的 canvas 长宽设为网页大小两倍,for Retina)
island205
2014-09-08 08:38:24 +08:00
@shuding 恩恩
DreaMQ
2014-09-08 09:48:45 +08:00
Android + Chrome 好卡
island205
2014-09-08 10:32:51 +08:00
@DreaMQ 等明天回公司找个Android手机优化一下!
island205
2014-09-08 12:00:59 +08:00
@shuding 已经优化了
shuding
2014-09-08 12:16:36 +08:00
太棒了!!^ ^
aaronlam
2014-09-08 12:53:55 +08:00
很不错,赞一个!
erse
2014-09-09 07:52:01 +08:00
ityao
2014-09-09 09:17:32 +08:00
呵呵,不错啊!
mtmzorro
2014-09-09 09:58:18 +08:00
Raphael svg 那 不错,star学习下、。、
simo
2014-09-09 10:00:07 +08:00
赞lz!
前几天做一个html5的摇一摇,才知道5这么先进了。
paloalto
2014-11-20 14:25:13 +08:00
https://github.com/island205/H5Compass/blob/master/index.js#L80

为什么这一行的行尾有俩分号?
island205
2015-09-16 21:31:59 +08:00
@paloalto 手误
est
2017-06-28 16:44:20 +08:00
很赞。
tailf
2019-12-24 11:31:07 +08:00
兄嘚,你的网站变黄网了。。。。
island205
2019-12-24 13:41:56 +08:00
tailf
2019-12-24 14:00:08 +08:00
@island205 就是你资料里面的 island205.com
island205
2019-12-24 14:05:30 +08:00
@tailf 感谢,这个域名已经不属于我了,已经更新了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/132250

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX