Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PicturePuzzle
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
PicturePuzzle
Commits
eb319507
Commit
eb319507
authored
Mar 09, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add demo audio to default data
parent
0624b332
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
play.component.ts
src/app/play/play.component.ts
+4
-2
resources.js
src/app/play/resources.js
+2
-1
demo-audio.mp3
src/assets/audio/demo-audio.mp3
+0
-0
No files found.
src/app/play/play.component.ts
View file @
eb319507
...
@@ -45,7 +45,7 @@ const defauleFormData = {
...
@@ -45,7 +45,7 @@ const defauleFormData = {
},
},
media
:{
media
:{
image_url
:
"
default-header
"
,
image_url
:
"
default-header
"
,
audio_url
:
""
audio_url
:
"
demo-audio
"
}
}
}
}
]
]
...
@@ -480,8 +480,10 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -480,8 +480,10 @@ export class PlayComponent implements OnInit, OnDestroy {
size
=
"
small
"
size
=
"
small
"
}
}
this
.
m_totalQusetion
=
hotZoneItemArr
.
length
;
this
.
m_totalQusetion
=
hotZoneItemArr
.
length
;
let
randomPos
=
position
[
maxNum
].
slice
(
0
,
this
.
m_totalQusetion
)
randomPos
=
this
.
randomArray_shuffle
(
randomPos
)
hotZoneItemArr
.
forEach
(
(
item
,
index
)
=>
{
hotZoneItemArr
.
forEach
(
(
item
,
index
)
=>
{
this
.
render
(
this
.
createPuzzleCard
(
index
,
position
[
maxNum
][
index
].
x
,
position
[
maxNum
]
[
index
].
y
,
size
,
item
).
ref
)
this
.
render
(
this
.
createPuzzleCard
(
index
,
randomPos
[
index
].
x
,
randomPos
[
index
].
y
,
size
,
item
).
ref
)
this
.
addToCardList
(
`puzzle-card-
${
index
}
-container`
)
this
.
addToCardList
(
`puzzle-card-
${
index
}
-container`
)
});
});
}
}
...
...
src/app/play/resources.js
View file @
eb319507
...
@@ -42,7 +42,8 @@ const localAudios = {
...
@@ -42,7 +42,8 @@ const localAudios = {
'
sm-choice-timeup-0
'
:
'
assets/audio/sm-choice-timeup-0.mp3
'
,
'
sm-choice-timeup-0
'
:
'
assets/audio/sm-choice-timeup-0.mp3
'
,
'
sm-choice-timeup-3
'
:
'
assets/audio/sm-choice-timeup-3.mp3
'
,
'
sm-choice-timeup-3
'
:
'
assets/audio/sm-choice-timeup-3.mp3
'
,
'
sm-go
'
:
'
assets/audio/sm-go.mp3
'
,
'
sm-go
'
:
'
assets/audio/sm-go.mp3
'
,
'
sm-ready
'
:
'
assets/audio/sm-ready.mp3
'
'
sm-ready
'
:
'
assets/audio/sm-ready.mp3
'
,
'
demo-audio
'
:
'
assets/audio/demo-audio.mp3
'
};
};
...
...
src/assets/audio/demo-audio.mp3
0 → 100644
View file @
eb319507
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