-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Common files: utility.js and mapping-tables.js that works without respec
- Loading branch information
michael-n-cooper
committed
Jan 19, 2018
1 parent
4a939bd
commit 329477c
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* Utility functions */ | ||
|
||
// Change the authors credit to mapping contributors credit | ||
// Right now this will run on any author credit, not scoped to AAMs | ||
require(["core/pubsubhub"], function(respecEvents) { | ||
"use strict"; | ||
respecEvents.sub('end', function(message) { | ||
if (message === 'core/link-to-dfn') { | ||
document.querySelectorAll("div.head dt").forEach(function(node){ | ||
if (node.textContent == "Authors:") node.textContent = "Platform Mapping Maintainers:"; | ||
}); | ||
} | ||
}) | ||
}) | ||
|