WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #49025, comment 3


Ignore:
Timestamp:
02/27/2020 02:07:13 PM (19 months ago)
Author:
bdcstr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49025, comment 3

    initial v1  
    1111            var modal = document.querySelector('.cover-modal.active');
    1212
    13             // if target on click is <a> with # within the href attribute
    1413            if (event.target.tagName.toLowerCase() === 'a' && event.target.hash.includes('#')) {
    15                 // untoggle the modal
    1614                this.untoggleModal(modal);
    17                 // wait 550 and scroll to the anchor
    1815                setTimeout(function () {
    1916                    var anchor = document.getElementById(event.target.hash.slice(1)); //