MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / selectDescription

Function selectDescription

api/prettydiff-webtool.ts:722–730  ·  view source on GitHub ↗
(el:HTMLSelectElement)

Source from the content-addressed store, hash-verified

720 }
721 },
722 selectDescription = function dom_load_selectDescription(el:HTMLSelectElement):void {
723 const opts:HTMLCollectionOf<HTMLOptionElement> = el.getElementsByTagName("option"),
724 desc:string = opts[el.selectedIndex].getAttribute("data-description"),
725 opt:HTMLOptionElement = <HTMLOptionElement>el[el.selectedIndex],
726 value:string = opt.value,
727 parent:HTMLElement = <HTMLElement>el.parentNode,
728 span:HTMLSpanElement = parent.getElementsByTagName("span")[0];
729 span.innerHTML = ` <strong>${value}</strong> \u2014 ${desc}`;
730 },
731 textareablur = function dom_load_textareablur(event:Event):void {
732 const el:HTMLElement = <HTMLElement>event.srcElement || <HTMLElement>event.target,
733 tabkey = id("textareaTabKey");

Callers 2

selectFunction · 0.85
loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected