Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions utils/docs/template/static/scripts/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ if ( typeof hljs !== 'undefined' ) {

} )();

// Open external URLs in new tabs
( function () {

const links = document.querySelectorAll( 'a' );

for ( const link of links ) {

if ( link.href.match( /^https?:\/\//i ) ) {

link.setAttribute( 'target', '_blank' );

}

}

} )();

// Update URL hash when clicking on method/property links
( function () {

Expand Down