V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
island205
V2EX  ›  程序员

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

  •  
  •   island205 ·
    island205 · 2014-09-07 22:44:57 +08:00 · 6886 次点击
    这是一个创建于 3518 天前的主题,其中的信息可能已经有所发展或是发生改变。
    iPhone 5s/5c 测试可用,试试看: http://island205.github.io/H5Compass/

    上图:

    指南针



    水平仪



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

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

    为什么这一行的行尾有俩分号?
    island205
        14
    island205  
    OP
       2015-09-16 21:31:59 +08:00
    @paloalto 手误
    est
        15
    est  
       2017-06-28 16:44:20 +08:00
    很赞。
    tailf
        16
    tailf  
       2019-12-24 11:31:07 +08:00
    兄嘚,你的网站变黄网了。。。。
    island205
        17
    island205  
    OP
       2019-12-24 13:41:56 +08:00
    tailf
        18
    tailf  
       2019-12-24 14:00:08 +08:00
    @island205 就是你资料里面的 island205.com
    island205
        19
    island205  
    OP
       2019-12-24 14:05:30 +08:00
    @tailf 感谢,这个域名已经不属于我了,已经更新了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2983 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:43 · PVG 21:43 · LAX 06:43 · JFK 09:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.