diff options
| author | czaks <marcin@6irc.net> | 2014-01-19 13:42:41 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-01-19 13:42:41 +0100 |
| commit | 875a2df5215b0e7e482ea3c68184765d81627845 (patch) | |
| tree | 8c41dc1ea851900cbec3a92901866d3f3f1a2456 /js | |
| parent | 9039d9c4d9fe15e09b62d2df9f20ecb05d1201d6 (diff) | |
document mobile-style.js ( vichan-devel/Tinyboard#26 )
Diffstat (limited to 'js')
| -rw-r--r-- | js/mobile-style.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/mobile-style.js b/js/mobile-style.js index 89e01b73..e35dc402 100644 --- a/js/mobile-style.js +++ b/js/mobile-style.js @@ -1,3 +1,16 @@ +/* + * mobile-style.js - adds some responsiveness to Tinyboard + * https://github.com/vichan-devel/Tinyboard/blob/master/js/mobile-style.js + * + * Released under the MIT license + * Copyright (c) 2014 Marcin Ćabanowski <marcin@6irc.net> + * + * Usage: + * $config['api']['enabled'] = true; + * $config['additional_javascript'][] = 'js/jquery.min.js'; + * $config['additional_javascript'][] = 'js/mobile-style.js'; + */ + if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook|Windows Phone|Tablet PC|Windows CE|IEMobile/i)) { $('html').addClass("mobile-style"); device_type = "mobile"; |
