HEX
Server: Apache
System: Linux sxb1plzcpnl440011.prod.sxb1.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xfp2mtarcm67 (7705020)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //home/xfp2mtarcm67/www/wp-content/themes/oceanwp/assets/src/js/theme/equal-height-elements.js
import ResponsiveAutoHeight from "responsive-auto-height";

class EqualHeightElements {
  #executed = false;

  constructor() {
    if (window.innerWidth > 768) {
      this.start();
    }

    window.addEventListener("resize", (event) => {
      if (window.innerWidth > 768 && !this.#executed) {
        this.start();
      }
    });
  }

  start = () => {
    if (!!document.querySelector(".blog-equal-heights .blog-entry-inner")) {
      new ResponsiveAutoHeight(".blog-equal-heights .blog-entry-inner");
    }

    if (!!document.querySelector(".match-height-grid .match-height-content")) {
      new ResponsiveAutoHeight(".match-height-grid .match-height-content");
    }

    this.#executed = true;
  };
}

("use script");
window.oceanwp = window.oceanwp || {};
oceanwp.equalHeightElements = new EqualHeightElements();