Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM5-6
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
YM5-6
Commits
5f3aa9d3
Commit
5f3aa9d3
authored
Jan 22, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add err sound
parent
d925fb17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
play.component.ts
src/app/play/play.component.ts
+5
-1
resources.js
src/app/play/resources.js
+1
-1
err_new.mp3
src/assets/YM5-6/music/err_new.mp3
+0
-0
No files found.
src/app/play/play.component.ts
View file @
5f3aa9d3
...
...
@@ -670,6 +670,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
addUrlToAudioObj
(
'
click
'
,
this
.
rawAudios
.
get
(
'
click
'
),
0.3
);
this
.
addUrlToAudioObj
(
'
newpage
'
,
this
.
rawAudios
.
get
(
'
newpage
'
));
this
.
addUrlToAudioObj
(
'
sm-choice-correct
'
,
this
.
rawAudios
.
get
(
'
sm-choice-correct
'
));
this
.
addUrlToAudioObj
(
'
err_new
'
,
this
.
rawAudios
.
get
(
'
err_new
'
));
// 听力资料
this
.
addUrlToAudioObj
(
this
.
saveData
.
listen_audio_url
,
null
,
1
,
false
,
function
(
listenPlayStatus
){
...
...
@@ -1121,7 +1122,7 @@ export class PlayComponent implements OnInit, OnDestroy {
if
(
this
.
checkClickTarget
(
option
))
{
this
.
currentClickNode
=
option
[
"
highlight
"
]
option
[
"
highlight
"
].
alpha
=
1
;
console
.
log
(
option
[
"
highlight
"
])
//
console.log(option["highlight"])
if
(
option
[
"
correct
"
])
{
if
(
this
.
opend
[
option
[
"
index
"
]])
{
// console.log(this.underLine[option["index"]])
...
...
@@ -1139,6 +1140,9 @@ export class PlayComponent implements OnInit, OnDestroy {
word
.
wordLoaded
=
true
;
this
.
stopAllAudio
()
this
.
playAudio
(
"
sm-choice-correct
"
)
}
else
{
this
.
stopAllAudio
()
this
.
playAudio
(
"
err_new
"
)
}
}
}
...
...
src/app/play/resources.js
View file @
5f3aa9d3
...
...
@@ -16,7 +16,7 @@ const resAudio = [
[
'
click
'
,
"
assets/YM5-6/music/click.mp3
"
],
[
'
newpage
'
,
"
assets/YM5-6/music/newpage.mp3
"
],
[
'
sm-choice-correct
'
,
"
assets/YM5-6/music/sm-choice-correct.mp3
"
]
[
'
err_new
'
,
"
assets/YM5-6/music/err_new.mp3
"
]
];
...
...
src/assets/YM5-6/music/err_new.mp3
0 → 100644
View file @
5f3aa9d3
File added
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