Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-099
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-099
2022-099
Commits
2c04a510
Commit
2c04a510
authored
Nov 09, 2022
by
K.G. Rajapakse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement narration feature script.js
parent
10fb021b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
script.js
script.js
+10
-1
No files found.
script.js
View file @
2c04a510
...
...
@@ -29,6 +29,7 @@ speechBtn.addEventListener("click", ()=>{
}
});
document
.
getElementById
()
/*copyBtn.addEventListener("click", ()=>{
navigator.clipboard.writeText(quoteText.innerText);
});
...
...
@@ -81,13 +82,21 @@ twitterBtn.addEventListener("click", ()=>{
quoteBtn.addEventListener("click", randomQuote);*/
var
fs
=
require
(
'
fs
'
);
fs
.
readFile
(
'
text.txt
'
,
'
utf8
'
,
function
(
err
,
data
)
{
if
(
err
)
throw
err
;
console
.
log
(
data
);
});
function
predict
(){
var
asl_text
=
document
.
getElementById
(
'
asl_text
'
).
value
;
var
txtInput
=
document
.
getElementById
(
'
prediction
'
);
var
sentence
=
document
.
getElementById
(
'
sentence
'
);
var
text
;
switch
(
asl_text
){
case
"
me Amal
"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment