Last active
October 3, 2017 20:40
-
-
Save crowdfundhq/c71af6bed38f98b9e22eb1d23256539f to your computer and use it in GitHub Desktop.
This file contains 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
<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