Skip to content

Instantly share code, notes, and snippets.

@crowdfundhq
Last active October 3, 2017 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crowdfundhq/c71af6bed38f98b9e22eb1d23256539f to your computer and use it in GitHub Desktop.
Save crowdfundhq/c71af6bed38f98b9e22eb1d23256539f to your computer and use it in GitHub Desktop.
<script>
document.addEventListener('DOMContentLoaded', function(){
if(hq.isMobile()) {
var campaignContent = document.getElementById('campaign_content');
if(campaignContent) {
var campaignSidebar = document.getElementById('campaign_sidebar');
var stats = document.getElementById('stats');
campaignSidebar.insertBefore(campaignContent, stats);
campaignContent.style.marginBottom = '2em';
}
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment