docbrown/app/assets/javascripts/initializers/initializeFooterMod.js
Ben Halpern 2001963863
Misc change to styles (#255)
* Add user articles to sidebar

* Add organization save-all functionality

* Adjust articles that show up in side sticky bar

* Add conditional for @user_stickies to show up

* Misc change to styles

* Slight change

* Modified footer center show stuff
2018-04-28 16:55:11 -04:00

13 lines
341 B
JavaScript

function initializeFooterMod() {
if (
document.getElementById('page-content').className.indexOf('stories-show') > -1
) {
document
.getElementById('footer-container')
.classList.remove('centered-footer');
} else {
document
.getElementById('footer-container')
.classList.add('centered-footer');
}
}