Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make Mobile Firefox more prominent on mobile layouts #20

Open
wants to merge 3 commits into from

2 participants

@adelq

Should fix issue #18 through a simple jQuery solution
Breakpoint is currently at 800px for reordering the divs

adelq added some commits
@adelq adelq Merge pull request #1 from mozilla/master
Merge latest changes from upstream
03b110f
@adelq adelq Move mobile Firefox to the top on smaller screens
Tiny jQuery solution by reordering #Mobile and #Desktop divs
Breakpoint is 800px wide
205b914
@tofumatt
Owner

I'm actually fine with this solution, though could you move the code into the nightly.js file instead of using the in-page script tag? Thanks!

@adelq adelq changed the title from Make Mobile Firefox more prominant on mobile layouts to Make Mobile Firefox more prominent on mobile layouts
@adelq

@tofumatt updated pull request with your suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 10, 2013
  1. @adelq

    Merge pull request #1 from mozilla/master

    adelq authored
    Merge latest changes from upstream
  2. @adelq

    Move mobile Firefox to the top on smaller screens

    adelq authored
    Tiny jQuery solution by reordering #Mobile and #Desktop divs
    Breakpoint is 800px wide
Commits on Dec 9, 2014
  1. @adelq
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 0 deletions.
  1. +9 −0 js/nightly.js
View
9 js/nightly.js
@@ -7,4 +7,13 @@ $().ready(function() {
});
$(this).children('h3').height($(this).children('ul').height() - 20);
});
+
+ // Place the link to download mobile version higher on smaller screens
+ $(window).resize(function(){
+ if ($(window).width() <= 800){
+ $('#Mobile').insertBefore('#Desktop');
+ } else if ($(window).width() > 800) {
+ $('#Desktop').insertBefore('#Mobile');
+ }
+ });
});
Something went wrong with that request. Please try again.