Skip to content

Want To Be A Better Person in 2018?

We all want to feel like our best self, but sometimes it can be overwhelming to think about where to start. Especially when we’re juggling lots of obligations between work, school, and family, the quest for self-improvement can seem downright frivolous. The good news is that becoming a better person can be as simple (and inexpensive) as simply making your bed in the morning!

This article by Anya Strzemien for The New York Times has nine suggestions.

document.addEventListener("DOMContentLoaded", function() { // Get all accordion toggle elements var accordions = document.querySelectorAll('.accordion-toggle'); // Add click event listeners to each accordion toggle accordions.forEach(function(accordion) { accordion.addEventListener('click', function() { // Get the panel-collapse element directly following this accordion-toggle var panelCollapse = this.nextElementSibling; // Check if this panel-collapse is currently open var isOpen = panelCollapse.classList.contains('open'); // Remove 'open' class from all panel-collapses accordions.forEach(function(acc) { var collapse = acc.nextElementSibling; collapse.classList.remove('open'); }); // Toggle 'open' class only on the clicked panel-collapse if (!isOpen) { panelCollapse.classList.add('open'); } }); }); });