-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlivereading.html
53 lines (52 loc) · 1.79 KB
/
livereading.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<!-- css and js -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style/livereading.css">
<link rel="stylesheet" href="./style/Menu.css">
<link rel="stylesheet" href="./style/Scrollbar.css">
<script src="./Javascript/Menu.js"></script>
<title>Live Reading</title>
</head>
<body>
<!-- sidenav menu -->
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="index.html">Home</a>
<div class="dropdown">
<a href="./lessons.html">Lessons</a>
<div class="dropdown-content">
<a href="./L1.html">Lesson 1</a>
<a href="./L2.html">Lesson 2</a>
<a href="./L3.html">Lesson 3</a>
<a href="./L4.html">Lesson 4</a>
<a href="./L5.html">Lesson 5</a>
<a href="./L6.html">Lesson 6</a>
</div>
</div>
<a href="./irregular_verbs.html">Irregular Verbs</a>
<a href="./livereading.html">Live Reading</a>
<a class="aboutus" href="aboutus.html">About us</a>
</div>
<!-- input and button -->
<img onclick="openNav()" src="./style/pic/menu.png" class="menuimg col-1" title="Menu">
<h1 class="pagetitle">Live Reading</h1>
<div class="main_part">
<input class="input">
<br>
<a class="readtext_command">
<button class="readtext">Read the text</button>
</a>
</div>
<!-- js -->
<script>
var button = document.querySelector("button");
button.addEventListener("click",function () {
var inputVal = document.querySelector("input").value;
speechSynthesis.speak(
new SpeechSynthesisUtterance(inputVal)
);
})
</script>