Skip to content

Commit

Permalink
Fix mobile home-page. #32
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Jul 7, 2015
1 parent eff2212 commit b550942
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions assets/js/home.logic.mobile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
$( document ).ready(function() {

$('video,audio').mediaelementplayer();

$('header').addClass('blue');
$('header').addClass('blue');
$('.navbar').css('min-height', '20px');
$('.home-intro').css('margin-top', '38px');
$('#toolwatch-explained').css('margin-top', '80px');
var delta = $("video").height()/2 + $(".slogan-home").height();
$( ".slogan-home" ).animate({
marginTop: "-="+$("video").height()/2
marginTop: "-="+delta
}, 2000);

console.log(delta);
});

1 comment on commit b550942

@MathieuNls
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen sur iPhone 5.

screenshot - 07082015 - 08 40 15 am

Please sign in to comment.