Tagged #javascript

Flow Disruptors: How Dreams and Daily Choices Reveal What Matters

Dreams can be a window into our deepest feelings, helping us make sense of what lies beneath the surface. But sometimes, they also reveal the hidden distractions that pull us off course in life. Reflecting on my dreams from last night, I’ve decided to call these distractions “flow disruptors.” (No, not the medical devices.)

Read more...

#flow#focus#fatherhood#fitness#productivity#javascript#dom

Wordpress 7 Gallery Lightbox Breaks Bootscore-Based Themes

The new gallery lightbox navigation added in WordPress 7 is super cool! However, when a lightbox is opened in WordPress 7, it adds the inert attribute to all direct children of the <body> element. At UF, we used a Bootscore-based WordPress theme (a boilerplate Bootstrap CSS enabled theme), which wraps the site content in a <div id="page" class="site"> (see header.php), causing the entire site to go “inert” when the gallery lightbox is opened–not ideal.

Read more...

#wordpress#code#javascript#dom#work

Extract Last Names (Full Name with Suffix)

Some last names in our directory of faculty end with suffixes. This adds a level of complexity to extracting and sorting by last name without a custom field. A custom JavaScript function could be constructed to handle this, provided you know all the possible suffix variations.

Read more...

#regex#javascript#code#php#work

Modern Methods of Showing or Hiding HTML Elements with JavaScript

Different options available to show and hide HTML elements using JavaScript in 2025, including my preference.

#html#javascript#code#css