Permalink
Browse files

iOS and Android browsers will have the 'top' links always display.

  • Loading branch information...
1 parent 0bb58f1 commit 5f843b8c7955c8a19bb2eac88531f4c7d07ca6c4 @amekkawi committed Mar 26, 2012
Showing with 8 additions and 0 deletions.
  1. +1 −0 css/base.css
  2. +3 −0 css/base.less
  3. +4 −0 js/docs.js
View
Oops, something went wrong.
View
@@ -217,6 +217,9 @@ code {
font-weight: normal;
text-decoration: none;
}
+.detectmobile .topjump {
+ display: inline;
+}
h2 .topjump {
font-size: 15px;
padding: 4px;
View
@@ -59,5 +59,9 @@
processScroll();
win.on('resize', calcSizes);
win.on('scroll', processScroll);
+
+ if (navigator.userAgent.match(/\b(Android|iPad|iPhone)\b/i) != null) {
+ $('body').addClass('detectmobile');
+ }
});
})(jQuery);

0 comments on commit 5f843b8

Please sign in to comment.