-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddc5397
commit 8161c08
Showing
5 changed files
with
61 additions
and
0 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,19 @@ | ||
document.getElementById("pbtn").innerText = "▼"; | ||
|
||
function ltts() { | ||
if (document.getElementById("pbtn").className.indexOf("r-now") !== -1) { | ||
document.getElementById("pbtn").classList.remove('r-now'); | ||
document.getElementById("pbtn").classList.add('r-pause'); | ||
document.getElementById("pbtn").innerText = "▼"; | ||
speechSynthesis.cancel(); | ||
} else { | ||
document.getElementById("pbtn").classList.remove('r-pause'); | ||
document.getElementById("pbtn").classList.add("r-now"); | ||
document.getElementById("pbtn").innerText = "="; | ||
var icontent = document.body.innerText; | ||
voices = speechSynthesis.getVoices(); | ||
const uttr = new SpeechSynthesisUtterance(icontent); | ||
uttr.voice = voices[182]; | ||
speechSynthesis.speak(uttr); | ||
} | ||
} |
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,32 @@ | ||
.rb-1 { | ||
cursor:pointer; | ||
display: inline-flex; | ||
padding: 0px; | ||
border-radius: 20px; | ||
background: linear-gradient(90deg, rgba(120, 119, 131, 1) 0%, rgba(173, 173, 173, 1) 35%, rgba(131, 194, 195, 1) 73%, rgba(81, 196, 219, 1) 100%); | ||
object-fit: contain; | ||
background-size: contain; | ||
color: #fff; | ||
align-items: center; | ||
} | ||
|
||
.l-box-2::before { | ||
content: " "; | ||
height: 100%; | ||
border-left: solid 1px #fefefe; | ||
margin-right: 10px; | ||
} | ||
|
||
.l-box-2 { | ||
margin: 10px; | ||
} | ||
|
||
.r-box-2 { | ||
margin-left: 15px; | ||
cursor: pointer; | ||
user-select: none; | ||
} | ||
|
||
.pbtn-p { | ||
transform: rotate(-90deg); | ||
} |
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.