(startValues?: { [name: string]: string })
| 97 | } |
| 98 | |
| 99 | export function getTarget(startValues?: { [name: string]: string }): HTMLDivElement { |
| 100 | const div = document.createElement("div") as HTMLDivElement; |
| 101 | |
| 102 | div.className = "target"; |
| 103 | div.style.opacity = String(defaultStyles.opacity); |
| 104 | div.style.color = `rgb(125, ${defaultStyles.colorGreen}, 125)`; |
| 105 | div.style.width = defaultStyles.width + "px"; |
| 106 | div.style.height = defaultStyles.height + "px"; |
| 107 | div.style.marginBottom = defaultStyles.marginBottom + "px"; |
| 108 | div.style.textShadow = `0px 0px ${defaultStyles.textShadowBlur}px red`; |
| 109 | $qunitStage.appendChild(div); |
| 110 | targets.push(div); |
| 111 | if (startValues) { |
| 112 | applyStartValues(div, startValues); |
| 113 | } |
| 114 | |
| 115 | return div; |
| 116 | } |
| 117 | |
| 118 | export function once(func): typeof func { |
| 119 | let done: boolean, |
no test coverage detected
searching dependent graphs…