Skip to content
Myr

🐛 Fix showing `fast` button as external link in animated terminals in docs (#1912)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Philipp Stahlberg · committed by GitHub · parent b736701 · Browse files · 2 files+20 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+20 added−9 removed

  • other:+20 added−9 removed

2 files+20 added−9 removed

modified:docs/css/termynal.css+10 added-1 removed
modified:docs/js/termynal.js+10 added-8 removed
125 unmodified lines
126 this.startDelay = this.originalStartDelay127 }128129 generateRestart() {130 const restart = document.createElement('a')131 restart.onclick = (e) => {132 e.preventDefault()130 const restart = document.createElement('button')131 restart.type = 'button'132133 restart.onclick = () => {134 this.container.innerHTML = ''135 this.init()136 }136 restart.href = 'javascript:void(0)'137138 restart.setAttribute('data-terminal-control', '')139 restart.innerHTML = "restart ↻"140 return restart141 }142143 generateFinish() {143 const finish = document.createElement('a')144 finish.onclick = (e) => {145 e.preventDefault()144 const finish = document.createElement('button')145 finish.type = 'button'146147 finish.onclick = () => {148 this.lineDelay = 0149 this.typeDelay = 0150 this.startDelay = 0151 }150 finish.href = 'javascript:void(0)'152153 finish.setAttribute('data-terminal-control', '')154 finish.innerHTML = "fast →"155 this.finishElement = finish156 return finish
109 unmodified lines