Skip to content

Instantly share code, notes, and snippets.

@zouloux
Created December 7, 2015 16:48
Show Gist options
  • Save zouloux/ff0b2fa9b62080e17b58 to your computer and use it in GitHub Desktop.
Save zouloux/ff0b2fa9b62080e17b58 to your computer and use it in GitHub Desktop.
Screenshot case studies on www.lahautesociete.com
// 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