Sebastián Ramírez
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
20 additions and
9 deletions
-
docs/en/docs/css/termynal.css
-
docs/en/docs/js/termynal.js
|
|
@ -55,10 +55,19 @@ |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
a[data-terminal-control] { |
|
|
button[data-terminal-control] { |
|
|
|
|
|
cursor: pointer; |
|
|
text-align: right; |
|
|
text-align: right; |
|
|
display: block; |
|
|
display: block; |
|
|
|
|
|
width: 100%; |
|
|
color: #aebbff; |
|
|
color: #aebbff; |
|
|
|
|
|
border: 0; |
|
|
|
|
|
background: transparent; |
|
|
|
|
|
font: inherit; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
button[data-terminal-control]:hover { |
|
|
|
|
|
color: var(--color-text); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[data-ty] { |
|
|
[data-ty] { |
|
|
|
|
|
@ -127,27 +127,29 @@ class Termynal { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
generateRestart() { |
|
|
generateRestart() { |
|
|
const restart = document.createElement('a') |
|
|
const restart = document.createElement('button') |
|
|
restart.onclick = (e) => { |
|
|
restart.type = 'button' |
|
|
e.preventDefault() |
|
|
|
|
|
|
|
|
restart.onclick = () => { |
|
|
this.container.innerHTML = '' |
|
|
this.container.innerHTML = '' |
|
|
this.init() |
|
|
this.init() |
|
|
} |
|
|
} |
|
|
restart.href = "javascript:void(0)" |
|
|
|
|
|
restart.setAttribute('data-terminal-control', '') |
|
|
restart.setAttribute('data-terminal-control', '') |
|
|
restart.innerHTML = "restart ↻" |
|
|
restart.innerHTML = "restart ↻" |
|
|
return restart |
|
|
return restart |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
generateFinish() { |
|
|
generateFinish() { |
|
|
const finish = document.createElement('a') |
|
|
const finish = document.createElement('button') |
|
|
finish.onclick = (e) => { |
|
|
finish.type = 'button' |
|
|
e.preventDefault() |
|
|
|
|
|
|
|
|
finish.onclick = () => { |
|
|
this.lineDelay = 0 |
|
|
this.lineDelay = 0 |
|
|
this.typeDelay = 0 |
|
|
this.typeDelay = 0 |
|
|
this.startDelay = 0 |
|
|
this.startDelay = 0 |
|
|
} |
|
|
} |
|
|
finish.href = "javascript:void(0)" |
|
|
|
|
|
finish.setAttribute('data-terminal-control', '') |
|
|
finish.setAttribute('data-terminal-control', '') |
|
|
finish.innerHTML = "fast →" |
|
|
finish.innerHTML = "fast →" |
|
|
this.finishElement = finish |
|
|
this.finishElement = finish |
|
|
|