@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Family-G5-U5-L3-1",
|
"name": "GameSenaSpin",
|
||||||
"short_name": "Family-G5-U5-L3-1",
|
"short_name": "GameSenaSpin",
|
||||||
"start_url": "index.html",
|
"start_url": "index.html",
|
||||||
"display": "fullscreen",
|
"display": "fullscreen",
|
||||||
"orientation": "any",
|
"orientation": "any",
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 3.2 MiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 109 KiB |
|
Before Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 213 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 139 KiB |
|
Before Width: | Height: | Size: 286 KiB |
|
Before Width: | Height: | Size: 1016 KiB |
|
Before Width: | Height: | Size: 313 KiB After Width: | Height: | Size: 313 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 288 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 178 KiB |
|
Before Width: | Height: | Size: 17 KiB |
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||||
<title>Family-G5-U5-L3-1</title>
|
<title>GameSenaSpin</title>
|
||||||
|
|
||||||
<!-- Standardised web app manifest -->
|
<!-- Standardised web app manifest -->
|
||||||
<link rel="manifest" href="appmanifest.json" />
|
<link rel="manifest" href="appmanifest.json" />
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
<!-- The canvas the project will render to. If you change its ID, don't forget to change the
|
<!-- The canvas the project will render to. If you change its ID, don't forget to change the
|
||||||
ID the runtime looks for in the jQuery events above (ready() and cr_sizeCanvas()). -->
|
ID the runtime looks for in the jQuery events above (ready() and cr_sizeCanvas()). -->
|
||||||
<canvas id="c2canvas" width="1400" height="900">
|
<canvas id="c2canvas" width="1200" height="1200">
|
||||||
<!-- This text is displayed if the visitor's browser does not support HTML5.
|
<!-- This text is displayed if the visitor's browser does not support HTML5.
|
||||||
You can change it, but it is a good idea to link to a description of a browser
|
You can change it, but it is a good idea to link to a description of a browser
|
||||||
and provide some links to download some popular HTML5-compatible browsers. -->
|
and provide some links to download some popular HTML5-compatible browsers. -->
|
||||||
|
|||||||
BIN
GameSenaSpin/media/freepik-jolly-vibes.ogg
Normal file
@@ -1,65 +1,26 @@
|
|||||||
{
|
{
|
||||||
"version": 1770088038,
|
"version": 1770201980,
|
||||||
"fileList": [
|
"fileList": [
|
||||||
"data.js",
|
"data.js",
|
||||||
"c2runtime.js",
|
"c2runtime.js",
|
||||||
"jquery-3.4.1.min.js",
|
"jquery-3.4.1.min.js",
|
||||||
"offlineClient.js",
|
"offlineClient.js",
|
||||||
"images/bg-sheet0.png",
|
|
||||||
"images/koala_rmbg_-sheet0.png",
|
|
||||||
"images/khung_thoai3-sheet0.png",
|
|
||||||
"images/khung_vuong-sheet0.png",
|
|
||||||
"images/slot-sheet0.png",
|
"images/slot-sheet0.png",
|
||||||
"images/no-sheet0.png",
|
|
||||||
"images/no-sheet1.png",
|
|
||||||
"images/spritefont.png",
|
|
||||||
"images/soundon-sheet0.png",
|
|
||||||
"images/frame-sheet0.png",
|
|
||||||
"images/spin-sheet0.png",
|
"images/spin-sheet0.png",
|
||||||
"images/pen-sheet0.png",
|
"images/pen-sheet0.png",
|
||||||
"images/circle-sheet0.png",
|
"images/btn_circle-sheet0.png",
|
||||||
"images/txt-sheet0.png",
|
"images/logo_senaspin-sheet0.png",
|
||||||
"images/quit-sheet0.png",
|
|
||||||
"images/quit2-sheet0.png",
|
|
||||||
"images/logogame-sheet0.png",
|
|
||||||
"images/quit3-sheet0.png",
|
|
||||||
"images/sprite-sheet0.png",
|
"images/sprite-sheet0.png",
|
||||||
"images/back-sheet0.png",
|
|
||||||
"images/result-sheet0.png",
|
"images/result-sheet0.png",
|
||||||
"images/result-sheet1.png",
|
|
||||||
"images/koala-sheet0.png",
|
|
||||||
"images/eddy-sheet0.png",
|
|
||||||
"images/eddy_schatbox-sheet0.png",
|
|
||||||
"images/pic-sheet0.png",
|
|
||||||
"images/school_khungvuong2-sheet0.png",
|
|
||||||
"images/khunganh-sheet0.png",
|
|
||||||
"images/button-sheet0.png",
|
|
||||||
"images/zoom-sheet0.png",
|
|
||||||
"images/back2-sheet0.png",
|
|
||||||
"images/txt_question.png",
|
|
||||||
"images/btn_setting-sheet0.png",
|
"images/btn_setting-sheet0.png",
|
||||||
"images/btn_pause-sheet0.png",
|
"images/btn_pause-sheet0.png",
|
||||||
"images/btn_music-sheet0.png",
|
"images/btn_music-sheet0.png",
|
||||||
"images/btn_music-sheet1.png",
|
"images/btn_music-sheet1.png",
|
||||||
"images/panel_pause-sheet0.png",
|
"images/panel_pause-sheet0.png",
|
||||||
"images/layer-sheet0.png",
|
"images/btn_play-sheet0.png",
|
||||||
"media/click.m4a",
|
|
||||||
"media/click.ogg",
|
"media/click.ogg",
|
||||||
"media/correct.m4a",
|
|
||||||
"media/correct.ogg",
|
|
||||||
"media/fail.m4a",
|
|
||||||
"media/fail.ogg",
|
|
||||||
"media/sound_bg.m4a",
|
|
||||||
"media/sound_bg.ogg",
|
|
||||||
"media/0909.m4a",
|
|
||||||
"media/0909.ogg",
|
|
||||||
"media/pop-402324.m4a",
|
|
||||||
"media/pop-402324.ogg",
|
"media/pop-402324.ogg",
|
||||||
"media/correct-156911.ogg",
|
"media/freepik-jolly-vibes.ogg",
|
||||||
"media/error-04-199275.ogg",
|
|
||||||
"media/pop-402324-1.m4a",
|
|
||||||
"media/successed-295058.ogg",
|
|
||||||
"media/wrong-answer-129254.ogg",
|
|
||||||
"icon-16.png",
|
"icon-16.png",
|
||||||
"icon-32.png",
|
"icon-32.png",
|
||||||
"icon-114.png",
|
"icon-114.png",
|
||||||
|
|||||||
@@ -1,105 +1,105 @@
|
|||||||
var tdv_sdk = {};
|
// var tdv_sdk = {};
|
||||||
tdv_sdk.listText = [
|
// tdv_sdk.listText = [
|
||||||
{
|
// {
|
||||||
id : 0,
|
// id : 0,
|
||||||
value : "",
|
// value : "",
|
||||||
answer: [
|
// answer: [
|
||||||
{
|
// {
|
||||||
name: "Green",
|
// name: "Green",
|
||||||
isCorrect: 1
|
// isCorrect: 1
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "Yellow",
|
// name: "Yellow",
|
||||||
isCorrect: 0
|
// isCorrect: 0
|
||||||
}
|
// }
|
||||||
],
|
// ],
|
||||||
audio : "https://audio.senaai.vn/audio/en_female_1_i_have_colored_paper_but_i_dont_have_colored_penci.mp3"
|
// audio : "https://audio.senaai.vn/audio/en_female_1_i_have_colored_paper_but_i_dont_have_colored_penci.mp3"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
id : 1,
|
// id : 1,
|
||||||
value : "",
|
// value : "",
|
||||||
answer: [
|
// answer: [
|
||||||
{
|
// {
|
||||||
name: "Red",
|
// name: "Red",
|
||||||
isCorrect: 1
|
// isCorrect: 1
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "Pink",
|
// name: "Pink",
|
||||||
isCorrect: 0
|
// isCorrect: 0
|
||||||
}
|
// }
|
||||||
],
|
// ],
|
||||||
audio : "https://audio.senaai.vn/audio/en_female_1_i_have_a_pear_but_i_dont_have_an_apple.mp3"
|
// audio : "https://audio.senaai.vn/audio/en_female_1_i_have_a_pear_but_i_dont_have_an_apple.mp3"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
id : 2,
|
// id : 2,
|
||||||
value : "",
|
// value : "",
|
||||||
answer: [
|
// answer: [
|
||||||
{
|
// {
|
||||||
name: "Purple",
|
// name: "Purple",
|
||||||
isCorrect: 1
|
// isCorrect: 1
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "Orange",
|
// name: "Orange",
|
||||||
isCorrect: 0
|
// isCorrect: 0
|
||||||
}
|
// }
|
||||||
],
|
// ],
|
||||||
audio : "https://audio.senaai.vn/audio/en_female_1_i_have_rulers_but_i_dont_have_erasers.mp3"
|
// audio : "https://audio.senaai.vn/audio/en_female_1_i_have_rulers_but_i_dont_have_erasers.mp3"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
id : 3,
|
// id : 3,
|
||||||
value : "",
|
// value : "",
|
||||||
answer: [
|
// answer: [
|
||||||
{
|
// {
|
||||||
name: "Black",
|
// name: "Black",
|
||||||
isCorrect: 1
|
// isCorrect: 1
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "Gray",
|
// name: "Gray",
|
||||||
isCorrect: 0
|
// isCorrect: 0
|
||||||
}
|
// }
|
||||||
],
|
// ],
|
||||||
audio : "https://audio.senaai.vn/audio/en_female_1_i_have_a_pencil_sharpener_but_i_dont_have_glue.mp3"
|
// audio : "https://audio.senaai.vn/audio/en_female_1_i_have_a_pencil_sharpener_but_i_dont_have_glue.mp3"
|
||||||
}
|
// }
|
||||||
];
|
// ];
|
||||||
tdv_sdk.index = 0;
|
// tdv_sdk.index = 0;
|
||||||
tdv_sdk.getQuestion = function() {
|
// tdv_sdk.getQuestion = function() {
|
||||||
tdv_sdk.question = tdv_sdk.listText[tdv_sdk.index];
|
// tdv_sdk.question = tdv_sdk.listText[tdv_sdk.index];
|
||||||
tdv_sdk.shuffleArray(tdv_sdk.question.answer);
|
// tdv_sdk.shuffleArray(tdv_sdk.question.answer);
|
||||||
};
|
// };
|
||||||
tdv_sdk.getQuestionID = function() {
|
// tdv_sdk.getQuestionID = function() {
|
||||||
return tdv_sdk.question.id;
|
// return tdv_sdk.question.id;
|
||||||
};
|
// };
|
||||||
tdv_sdk.getAnswerNameByIndex = function(index) {
|
// tdv_sdk.getAnswerNameByIndex = function(index) {
|
||||||
if (tdv_sdk.question && tdv_sdk.question.answer) {
|
// if (tdv_sdk.question && tdv_sdk.question.answer) {
|
||||||
return tdv_sdk.question.answer[index].name;
|
// return tdv_sdk.question.answer[index].name;
|
||||||
}
|
// }
|
||||||
return 0;
|
// return 0;
|
||||||
};
|
// };
|
||||||
tdv_sdk.getAnswerCorrectByIndex = function(index) {
|
// tdv_sdk.getAnswerCorrectByIndex = function(index) {
|
||||||
if (tdv_sdk.question && tdv_sdk.question.answer) {
|
// if (tdv_sdk.question && tdv_sdk.question.answer) {
|
||||||
return tdv_sdk.question.answer[index].isCorrect;
|
// return tdv_sdk.question.answer[index].isCorrect;
|
||||||
}
|
// }
|
||||||
return 0;
|
// return 0;
|
||||||
};
|
// };
|
||||||
tdv_sdk.shuffleArray = function(array) {
|
// tdv_sdk.shuffleArray = function(array) {
|
||||||
for (let i = array.length - 1; i > 0; i--) {
|
// for (let i = array.length - 1; i > 0; i--) {
|
||||||
const j = Math.floor(Math.random() * (i + 1));
|
// const j = Math.floor(Math.random() * (i + 1));
|
||||||
[array[i], array[j]] = [array[j], array[i]];
|
// [array[i], array[j]] = [array[j], array[i]];
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
tdv_sdk.nextQuestion = function() {
|
// tdv_sdk.nextQuestion = function() {
|
||||||
tdv_sdk.index++;
|
// tdv_sdk.index++;
|
||||||
};
|
// };
|
||||||
tdv_sdk.getComplete = function() {
|
// tdv_sdk.getComplete = function() {
|
||||||
return tdv_sdk.index;
|
// return tdv_sdk.index;
|
||||||
}
|
// }
|
||||||
tdv_sdk.playSound = function() {
|
// tdv_sdk.playSound = function() {
|
||||||
if (tdv_sdk.question && tdv_sdk.question.audio) {
|
// if (tdv_sdk.question && tdv_sdk.question.audio) {
|
||||||
const audio = new Audio(tdv_sdk.question.audio);
|
// const audio = new Audio(tdv_sdk.question.audio);
|
||||||
audio.play();
|
// audio.play();
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
tdv_sdk.playIntroSound = function() {
|
// tdv_sdk.playIntroSound = function() {
|
||||||
const introAudio = new Audio("https://audio.senaai.vn/audio/en_female_1_spin_the_wheel_what_time_do_you_i_at_oclock.mp3");
|
// const introAudio = new Audio("https://audio.senaai.vn/audio/en_female_1_spin_the_wheel_what_time_do_you_i_at_oclock.mp3");
|
||||||
introAudio.play();
|
// introAudio.play();
|
||||||
};
|
// };
|
||||||
|
|||||||