Created
December 7, 2015 16:48
-
-
Save zouloux/ff0b2fa9b62080e17b58 to your computer and use it in GitHub Desktop.
Screenshot case studies on www.lahautesociete.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fixer la hauteur du header | |
$('.EtudesDeCas_topContainer').css({ | |
height: 500 | |
}); | |
$('.EtudesDeCas_bottomContainer').css({ | |
top: 500 | |
}); | |
// Supprimer les éléments en trop | |
$('s-menu-button').remove(); | |
$('.MenuComponent_lhsLogo').remove(); | |
$('s-back-to-top-button').remove(); | |
$('s-etude-de-cas-navigation').remove(); | |
$('s-contact-us-footer').remove(); | |
$('.EtudesDeCas_interfaceContainer').remove(); | |
// Scroller en bas de l'étude | |
$('s-etudes-de-cas').scrollTop(100000); | |
// Mesurer | |
var position = $('s-etudes-de-cas').scrollTop() + $(window).height(); | |
// Retourner en haut | |
$('s-etudes-de-cas').scrollTop(0).removeClass('EtudesDeCas-allowScroll'); | |
// Appliquer la hauteur | |
$('s-app').css({ | |
bottom: 0, | |
height: position | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment