OSDN Git Service
(root)
/
sawarabi-fonts
/
sawarabi-fonts.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
update graphs of a pc top page.
[sawarabi-fonts/sawarabi-fonts.git]
/
html
/
coffee
/
mobile.coffee
1
browserNameIs = (deviceName...)->
2
deviceName.map( (name) ->
3
if navigator.userAgent.indexOf(name) > 0 then 1 else 9
4
).sort()[0] is 1
5
6
if browserNameIs 'iPhone', 'iPod', 'Android'
7
location.href = "/mobile#{location.pathname}"