lido-player 0.0.2-beta-18-dev → 0.0.2-beta-19-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/dist/cjs/{decode-DUZYNXIv.js → decode-Bny56MQ9.js} +1 -1
- package/dist/cjs/{index-BEjUmVtH.js → index-BY9fvbr8.js} +137 -64
- package/dist/cjs/{index-DnqQXD5x.js → index-DjsCseV8.js} +16 -10
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +33 -33
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/avatar/lido-avatar.css +4 -4
- package/dist/collection/components/avatar/lido-avatar.js +1 -1
- package/dist/collection/components/avatar/lido-avatar.tsx +207 -207
- package/dist/collection/components/avatar/readme.md +49 -49
- package/dist/collection/components/calculator/lido-calculator.css +89 -89
- package/dist/collection/components/calculator/lido-calculator.js +2 -2
- package/dist/collection/components/canvas/lido-canvas.css +33 -33
- package/dist/collection/components/canvas/lido-canvas.js +1 -1
- package/dist/collection/components/cell/lido-cell.css +100 -100
- package/dist/collection/components/cell/lido-cell.js +12 -12
- package/dist/collection/components/column/lido-col.css +19 -19
- package/dist/collection/components/column/lido-col.js +6 -6
- package/dist/collection/components/container/lido-container.css +10 -10
- package/dist/collection/components/container/lido-container.js +8 -8
- package/dist/collection/components/flashCard/lido-flash-card.css +28 -28
- package/dist/collection/components/flashCard/lido-flash-card.js +4 -4
- package/dist/collection/components/float/lido-float.css +30 -30
- package/dist/collection/components/float/lido-float.js +2 -2
- package/dist/collection/components/home/lido-home.css +309 -309
- package/dist/collection/components/home/lido-home.js +5 -5
- package/dist/collection/components/image/lido-image.css +17 -17
- package/dist/collection/components/image/lido-image.js +6 -6
- package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
- package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
- package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
- package/dist/collection/components/position/lido-pos.css +16 -16
- package/dist/collection/components/position/lido-pos.js +2 -2
- package/dist/collection/components/random/lido-random.css +8 -8
- package/dist/collection/components/random/lido-random.js +2 -2
- package/dist/collection/components/root/lido-root.js +5 -5
- package/dist/collection/components/row/lido-row.css +10 -10
- package/dist/collection/components/row/lido-row.js +6 -6
- package/dist/collection/components/scale/assets/Shadow.svg +9 -9
- package/dist/collection/components/scale/lido-balance.css +145 -145
- package/dist/collection/components/scale/lido-balance.js +13 -13
- package/dist/collection/components/shape/lido-shape.css +216 -216
- package/dist/collection/components/shape/lido-shape.js +6 -6
- package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
- package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
- package/dist/collection/components/text/lido-text.css +53 -53
- package/dist/collection/components/text/lido-text.js +5 -5
- package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -8
- package/dist/collection/components/trace/lido-trace.css +97 -97
- package/dist/collection/components/trace/lido-trace.js +2 -2
- package/dist/collection/components/wrap/lido-wrap.css +18 -18
- package/dist/collection/components/wrap/lido-wrap.js +6 -6
- package/dist/collection/css/animation.css +211 -211
- package/dist/collection/css/index.css +324 -315
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
- package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
- package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
- package/dist/collection/stories/Templates/blender/blender.stories.js +59 -59
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
- package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
- package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
- package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
- package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
- package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
- package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
- package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
- package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
- package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
- package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
- package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
- package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
- package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
- package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
- package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
- package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
- package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
- package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
- package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
- package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
- package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
- package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
- package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
- package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
- package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +631 -631
- package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
- package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
- package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
- package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
- package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
- package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
- package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
- package/dist/collection/stories/Templates/total/total.stories.js +28 -28
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
- package/dist/collection/stories/components/flash-card.stories.js +48 -48
- package/dist/collection/stories/components/keyboard.stories.js +10 -10
- package/dist/collection/stories/components/slider.stories.js +4 -4
- package/dist/collection/stories/components/trace.stories.js +5 -5
- package/dist/collection/utils/audioPlayer.js +2 -5
- package/dist/collection/utils/utils.js +49 -9
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +10 -10
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
- package/dist/collection/utils/utilsHandlers/sortHandler.js +53 -15
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +1 -1
- package/dist/components/lido-cell.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-flash-card.js +1 -1
- package/dist/components/lido-float.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-math-matrix.js +1 -1
- package/dist/components/lido-pos.js +1 -1
- package/dist/components/lido-random.js +1 -1
- package/dist/components/lido-root.js +1 -1
- package/dist/components/lido-row.js +1 -1
- package/dist/components/lido-shape.js +1 -1
- package/dist/components/lido-slide-fill.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/lido-wrap.js +1 -1
- package/dist/components/{p-yT7udDfd.js → p-B4YAipq-.js} +1 -1
- package/dist/components/{p-DdQ1eqJr.js → p-B8nzzM8c.js} +1 -1
- package/dist/components/{p-Sl9R-E6h.js → p-BBHM059l.js} +1 -1
- package/dist/components/{p-SPZTb5fI.js → p-BJMjg5wu.js} +1 -1
- package/dist/components/{p-Cj-6tqzU.js → p-BOQDbCrm.js} +1 -1
- package/dist/components/{p-CwDTdXe5.js → p-BeRr8u5m.js} +1 -1
- package/dist/components/{p-CjdDpXfk.js → p-BfqihbR6.js} +1 -1
- package/dist/components/{p-CPYnt0P-.js → p-C5WmmkI6.js} +1 -1
- package/dist/components/{p-useuhkjH.js → p-C70ykycD.js} +1 -1
- package/dist/components/{p-BE25wHoo.js → p-CCR42e0i.js} +1 -1
- package/dist/components/{p-BfwUqpXc.js → p-CTlcpv4a.js} +1 -1
- package/dist/components/{p-BNNX1Pew.js → p-CWwymnbk.js} +2 -2
- package/dist/components/{p-CyGxEcn7.js → p-CXHPZN3m.js} +1 -1
- package/dist/components/{p-Bw-OC9iR.js → p-CgsPIpg0.js} +1 -1
- package/dist/components/{p-D54c-ybm.js → p-CljvnHkI.js} +1 -1
- package/dist/components/p-CwIlwnQk.js +1 -0
- package/dist/components/p-DLyacZap.js +1 -0
- package/dist/components/p-DONbWJGn.js +1 -0
- package/dist/components/p-DVTigdH_.js +1 -0
- package/dist/components/{p-CTlwn9r7.js → p-DYFVwyRr.js} +1 -1
- package/dist/esm/{decode-BgBfbPZu.js → decode-Buyq-Iy5.js} +1 -1
- package/dist/esm/{index-D-29PaRa.js → index-CQXciux9.js} +137 -64
- package/dist/esm/{index-BeHFCsWf.js → index-DQZfuGjI.js} +16 -10
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +33 -33
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/lido-player/assets/Shadow.svg +9 -9
- package/dist/lido-player/assets/Tracing-hand.svg +8 -8
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-avatar.css +4 -4
- package/dist/lido-player/lido-avatar.tsx +207 -207
- package/dist/lido-player/lido-player.css +8 -8
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-856e1956.entry.js → p-37736e11.entry.js} +2 -2
- package/dist/lido-player/p-3Ry570XH.js +1 -0
- package/dist/lido-player/{p-BA2X6O7O.js → p-CFtq4Thh.js} +1 -1
- package/dist/lido-player/p-DQZfuGjI.js +3 -0
- package/dist/lido-player/readme.md +49 -49
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/dist/types/types/json.d.ts +3 -3
- package/dist/types/utils/utils.d.ts +1 -1
- package/dist/types/utils/utilsHandlers/dragDropHandler.d.ts +1 -0
- package/dist/types/utils/utilsHandlers/sortHandler.d.ts +2 -0
- package/package.json +73 -73
- package/readme.md +113 -113
- package/dist/components/p-BSV5U72F.js +0 -1
- package/dist/components/p-D-B1groh.js +0 -1
- package/dist/components/p-DbR5sNOj.js +0 -1
- package/dist/components/p-leIEepjl.js +0 -1
- package/dist/lido-player/p-BeHFCsWf.js +0 -3
- package/dist/lido-player/p-TuBmCgtK.js +0 -1
|
@@ -92,72 +92,72 @@ export const Categ = {
|
|
|
92
92
|
function getContainerXml(args) {
|
|
93
93
|
const formatCorrect = (str) => (str.includes(',') ? `(${str.split(',').join('|')})` : str);
|
|
94
94
|
const objective = `${formatCorrect(args.correct1)},${formatCorrect(args.correct2)},${formatCorrect(args.correct3)}`;
|
|
95
|
-
return `
|
|
96
|
-
<main>
|
|
97
|
-
<lido-container id="lido-container" show-next-button="true" show-drop-border="false" tabIndex="0" value="mainContainer1" bg-Color="#FFF" height="100%" width="100%" visible="true" objective="${objective}" show-Check="false" is-Continue-On-Correct="true" after-Drop="false" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" is-allow-only-correct="false" >
|
|
98
|
-
|
|
99
|
-
<!-- parent cell -->
|
|
100
|
-
<lido-cell layout="col" visible="true" height="100%" width="98%" bgColor="transparent" margin="landscape.83px 0px 0px 0px, portrait.36px 0px -49px 0px">
|
|
101
|
-
<!-- Chimple Avatar -->
|
|
102
|
-
<lido-cell layout="pos" id="pos1" disableEdit="true" value="pos2" height="landscape.205px,portrait.195px" width="landscape.209px,portrait.209px" x="landscape.12px,portrait.-17px" y="landscape.68px,portrait.146px" ariaHidden="true" bgColor="transparent" visible="true" onEntry="">
|
|
103
|
-
<lido-avatar id="lido-avatar" disableEdit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" altText="{chimpleCharacterRive}">
|
|
104
|
-
</lido-avatar>
|
|
105
|
-
</lido-cell>
|
|
106
|
-
|
|
107
|
-
<!-- heading -->
|
|
108
|
-
<lido-text id="heading" tabIndex="2" audio="${args.headingAudio}" visible="true" string="${args.heading}" font-family="'Baloo Bhai 2'" fontColor="#323232" font-size="landscape.44px,portrait.32px" bg-Color="transparent" onEntry="this.padding='0px 47px'; this.fontWeight='400'; " margin="landscape.26px 0px -25px 0px, portrait.80px 0px -62px" >
|
|
109
|
-
</lido-text>
|
|
110
|
-
<!-- dropElements -->
|
|
111
|
-
<lido-cell layout="row" visible="true" height="landscape.38%,portrait.41%" width="100%" bg-Color="transparent" margin="landscape.7px 0px 0px 0px,portrait.55px 0px -73px 0px" >
|
|
112
|
-
<lido-cell id="cate1" z="100" visible="true" width="landscape.32%,portrait.30%" height="100%" bg-Color="#E3F5FC" onEntry="this.border-radius='6px';this.border=' 2px dashed #326B80';this.display='flex';this.flex-direction='column';this.align-items='center';" onTouch="this.addClass='highlight-element'; cate2.removeClass='highlight-element'; cate3.removeClass='highlight-element';">
|
|
113
|
-
<lido-text visible="true" audio="${args.category1Audio}" font-family="'Baloo Bhai 2'" font-size="landscape.32px,portrait.32px" string="${args.category1}" bg-Color="transparent" onEntry="this.padding='10px 47px'; this.fontWeight='600'; " ></lido-text>
|
|
114
|
-
<lido-cell layout="landscape.wrap,portrait.col" id="category1" scrollbar-width="14px" tab-index="3" visible="true" value="${args.correct1}" type="category" height="1000px" width="100%" bg-color="#E3F5FC" onEntry="this.padding='23px';this.overflow=' hidden'; this.justify-items='center'; this.grid-template-columns=' repeat(2, 1fr)'; this.gap=' 10px'; this.overflow-y=' auto';" margin="landscape.-15px 0px 0px 0px,portrait.0px" ></lido-cell>
|
|
115
|
-
</lido-cell>
|
|
116
|
-
<lido-cell id="cate2" z="100" visible="true" width="landscape.32%,portrait.30%" height="100%" bg-Color="#F2EAFC" onEntry="this.border-radius='6px';this.border=' 2px dashed #67428F';this.display='flex';this.flex-direction='column';this.align-items='center';" onTouch="this.addClass='highlight-element'; cate1.removeClass='highlight-element'; cate3.removeClass='highlight-element';">
|
|
117
|
-
<lido-text visible="true" audio="${args.category2Audio}" font-family="'Baloo Bhai 2'" font-size="landscape.32px,portrait.32px" string="${args.category2}" bg-Color="transparent" onEntry="this.padding='10px 47px'; this.fontWeight='600'; " ></lido-text>
|
|
118
|
-
<lido-cell layout="landscape.wrap,portrait.col" id="category2" scrollbar-width="14px" tab-index="4" visible="true" value="${args.correct2}" type="category" height="1000px" width="100%" bg-color="#F2EAFC" onEntry="this.padding='23px';this.overflow=' hidden'; this.justify-items='center'; this.grid-template-columns=' repeat(2, 1fr)'; this.gap=' 10px'; this.overflow-y=' auto'; this.flex-direction='column';" margin="landscape.-15px 0px 0px 0px,portrait.0px" ></lido-cell>
|
|
119
|
-
</lido-cell>
|
|
120
|
-
<lido-cell id="cate3" z="100" visible="true" width="landscape.32%,portrait.30%" height="100%" bg-Color="#DAF1BC" onEntry="this.border-radius='6px'; this.border=' 2px dashed #799650';this.display='flex';this.flex-direction='column';this.align-items='center';" onTouch="this.addClass='highlight-element'; cate2.removeClass='highlight-element'; cate1.removeClass='highlight-element';">
|
|
121
|
-
<lido-text visible="true" audio="${args.category3Audio}" font-family="'Baloo Bhai 2'" font-size="landscape.32px,portrait.32px" string="${args.category3}" bg-Color="transparent" onEntry="this.padding='10px 47px'; this.fontWeight='600'; " ></lido-text>
|
|
122
|
-
<lido-cell layout="landscape.wrap,portrait.col" id="category3" scrollbar-width="14px" tab-index="5" visible="true" value="${args.correct2}" type="category" height="1000px" width="100%" bg-color="#DAF1BC" onEntry="this.padding='23px';this.overflow=' hidden'; this.justify-items='center'; this.grid-template-columns=' repeat(2, 1fr)'; this.gap=' 10px'; this.overflow-y=' auto'; this.flex-direction='column'; " margin="landscape.-15px 0px 0px 0px,portrait.0px" ></lido-cell>
|
|
123
|
-
</lido-cell>
|
|
124
|
-
</lido-cell>
|
|
125
|
-
<!-- dragElements -->
|
|
126
|
-
<lido-cell layout="landscape.row,portrait.wrap" z="0" visible="true" type="optionArea" height="landscape.32%,portrait.38%" width="landscape.99%,portrait.98%" bg-Color="#FEEDE6" margin="landscape.-33px 0px 32px 0px, portrait.23px 0px 18px 0px" onEntry=" this.border='1px solid #FAB89C';this.overflow=' hidden'; this.gap='25px'; this.align-items='center'; this.justify-content='center';this.border-radius='6px';">
|
|
127
|
-
|
|
128
|
-
${args.image1.length === 0 && args.option1.length === 0 ? '' : `<lido-cell layout="col" audio="${args.option1Audio}" x="29px" y="-221px" z="1" onTouch="" visible="true" type="option" tab-index="6" id="i1" value="${args.option1}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0'; this.box-sizing='unset'; this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
129
|
-
${args.image1.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image1}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto'; this.boxShadow='unset';this.transition = 'transform 0.5s ease';" ></lido-image>`}
|
|
130
|
-
|
|
131
|
-
${args.option1.length === 0 ? '' : `<lido-text visible="true" height="31px" width="145px" string="${args.option1}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
132
|
-
</lido-cell>`}
|
|
133
|
-
${args.image2.length === 0 && args.option2.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option2Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="7" id="i2" value="${args.option2}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
134
|
-
${args.image2.length === 0 ? '' : ` <lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image2}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';"></lido-image>`}
|
|
135
|
-
${args.option2.length === 0 ? '' : ` <lido-text visible="true" height="31px" width="145px" string="${args.option2}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
136
|
-
</lido-cell>`}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
${args.image3.length === 0 && args.option3.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option3Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="8" id="i3" value="${args.option3}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
140
|
-
${args.image3.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image3}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';" z="5"></lido-image>`}
|
|
141
|
-
${args.option3.length === 0 ? '' : `<lido-text visible="true" height="31px" width="145px" string="${args.option3}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
142
|
-
</lido-cell>`}
|
|
143
|
-
|
|
144
|
-
${args.image4.length === 0 && args.option4.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option4Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="9" id="i4" value="${args.option4}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
145
|
-
${args.image4.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image4}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';" z="5"></lido-image>`}
|
|
146
|
-
${args.option4.length === 0 ? '' : `<lido-text visible="true" onTouch="" height="31px" width="145px" string="${args.option4}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
147
|
-
</lido-cell>`}
|
|
148
|
-
|
|
149
|
-
${args.image5.length === 0 && args.option5.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option5Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="10" id="i5" value="${args.option5}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
150
|
-
${args.image5.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image5}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';" z="5"></lido-image>`}
|
|
151
|
-
${args.option5.length === 0 ? '' : `<lido-text visible="true" onTouch="" height="31px" width="145px" string="${args.option5}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>1`}
|
|
152
|
-
</lido-cell>`}
|
|
153
|
-
|
|
154
|
-
${args.image6.length === 0 && args.option6.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option6Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="11" id="i6" value="${args.option6}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
155
|
-
${args.image6.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image6}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';" z="5"></lido-image>`}
|
|
156
|
-
${args.option6.length === 0 ? '' : `<lido-text visible="true" onTouch="" height="31px" width="145px" string="${args.option6}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
157
|
-
</lido-cell>`}
|
|
158
|
-
|
|
159
|
-
</lido-cell>
|
|
160
|
-
</lido-cell>
|
|
161
|
-
</lido-container>
|
|
95
|
+
return `
|
|
96
|
+
<main>
|
|
97
|
+
<lido-container id="lido-container" show-next-button="true" show-drop-border="false" tabIndex="0" value="mainContainer1" bg-Color="#FFF" height="100%" width="100%" visible="true" objective="${objective}" show-Check="false" is-Continue-On-Correct="true" after-Drop="false" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" is-allow-only-correct="false" >
|
|
98
|
+
|
|
99
|
+
<!-- parent cell -->
|
|
100
|
+
<lido-cell layout="col" visible="true" height="100%" width="98%" bgColor="transparent" margin="landscape.83px 0px 0px 0px, portrait.36px 0px -49px 0px">
|
|
101
|
+
<!-- Chimple Avatar -->
|
|
102
|
+
<lido-cell layout="pos" id="pos1" disableEdit="true" value="pos2" height="landscape.205px,portrait.195px" width="landscape.209px,portrait.209px" x="landscape.12px,portrait.-17px" y="landscape.68px,portrait.146px" ariaHidden="true" bgColor="transparent" visible="true" onEntry="">
|
|
103
|
+
<lido-avatar id="lido-avatar" disableEdit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" altText="{chimpleCharacterRive}">
|
|
104
|
+
</lido-avatar>
|
|
105
|
+
</lido-cell>
|
|
106
|
+
|
|
107
|
+
<!-- heading -->
|
|
108
|
+
<lido-text id="heading" tabIndex="2" audio="${args.headingAudio}" visible="true" string="${args.heading}" font-family="'Baloo Bhai 2'" fontColor="#323232" font-size="landscape.44px,portrait.32px" bg-Color="transparent" onEntry="this.padding='0px 47px'; this.fontWeight='400'; " margin="landscape.26px 0px -25px 0px, portrait.80px 0px -62px" >
|
|
109
|
+
</lido-text>
|
|
110
|
+
<!-- dropElements -->
|
|
111
|
+
<lido-cell layout="row" visible="true" height="landscape.38%,portrait.41%" width="100%" bg-Color="transparent" margin="landscape.7px 0px 0px 0px,portrait.55px 0px -73px 0px" >
|
|
112
|
+
<lido-cell id="cate1" z="100" visible="true" width="landscape.32%,portrait.30%" height="100%" bg-Color="#E3F5FC" onEntry="this.border-radius='6px';this.border=' 2px dashed #326B80';this.display='flex';this.flex-direction='column';this.align-items='center';" onTouch="this.addClass='highlight-element'; cate2.removeClass='highlight-element'; cate3.removeClass='highlight-element';">
|
|
113
|
+
<lido-text visible="true" audio="${args.category1Audio}" font-family="'Baloo Bhai 2'" font-size="landscape.32px,portrait.32px" string="${args.category1}" bg-Color="transparent" onEntry="this.padding='10px 47px'; this.fontWeight='600'; " ></lido-text>
|
|
114
|
+
<lido-cell layout="landscape.wrap,portrait.col" id="category1" scrollbar-width="14px" tab-index="3" visible="true" value="${args.correct1}" type="category" height="1000px" width="100%" bg-color="#E3F5FC" onEntry="this.padding='23px';this.overflow=' hidden'; this.justify-items='center'; this.grid-template-columns=' repeat(2, 1fr)'; this.gap=' 10px'; this.overflow-y=' auto';" margin="landscape.-15px 0px 0px 0px,portrait.0px" ></lido-cell>
|
|
115
|
+
</lido-cell>
|
|
116
|
+
<lido-cell id="cate2" z="100" visible="true" width="landscape.32%,portrait.30%" height="100%" bg-Color="#F2EAFC" onEntry="this.border-radius='6px';this.border=' 2px dashed #67428F';this.display='flex';this.flex-direction='column';this.align-items='center';" onTouch="this.addClass='highlight-element'; cate1.removeClass='highlight-element'; cate3.removeClass='highlight-element';">
|
|
117
|
+
<lido-text visible="true" audio="${args.category2Audio}" font-family="'Baloo Bhai 2'" font-size="landscape.32px,portrait.32px" string="${args.category2}" bg-Color="transparent" onEntry="this.padding='10px 47px'; this.fontWeight='600'; " ></lido-text>
|
|
118
|
+
<lido-cell layout="landscape.wrap,portrait.col" id="category2" scrollbar-width="14px" tab-index="4" visible="true" value="${args.correct2}" type="category" height="1000px" width="100%" bg-color="#F2EAFC" onEntry="this.padding='23px';this.overflow=' hidden'; this.justify-items='center'; this.grid-template-columns=' repeat(2, 1fr)'; this.gap=' 10px'; this.overflow-y=' auto'; this.flex-direction='column';" margin="landscape.-15px 0px 0px 0px,portrait.0px" ></lido-cell>
|
|
119
|
+
</lido-cell>
|
|
120
|
+
<lido-cell id="cate3" z="100" visible="true" width="landscape.32%,portrait.30%" height="100%" bg-Color="#DAF1BC" onEntry="this.border-radius='6px'; this.border=' 2px dashed #799650';this.display='flex';this.flex-direction='column';this.align-items='center';" onTouch="this.addClass='highlight-element'; cate2.removeClass='highlight-element'; cate1.removeClass='highlight-element';">
|
|
121
|
+
<lido-text visible="true" audio="${args.category3Audio}" font-family="'Baloo Bhai 2'" font-size="landscape.32px,portrait.32px" string="${args.category3}" bg-Color="transparent" onEntry="this.padding='10px 47px'; this.fontWeight='600'; " ></lido-text>
|
|
122
|
+
<lido-cell layout="landscape.wrap,portrait.col" id="category3" scrollbar-width="14px" tab-index="5" visible="true" value="${args.correct2}" type="category" height="1000px" width="100%" bg-color="#DAF1BC" onEntry="this.padding='23px';this.overflow=' hidden'; this.justify-items='center'; this.grid-template-columns=' repeat(2, 1fr)'; this.gap=' 10px'; this.overflow-y=' auto'; this.flex-direction='column'; " margin="landscape.-15px 0px 0px 0px,portrait.0px" ></lido-cell>
|
|
123
|
+
</lido-cell>
|
|
124
|
+
</lido-cell>
|
|
125
|
+
<!-- dragElements -->
|
|
126
|
+
<lido-cell layout="landscape.row,portrait.wrap" z="0" visible="true" type="optionArea" height="landscape.32%,portrait.38%" width="landscape.99%,portrait.98%" bg-Color="#FEEDE6" margin="landscape.-33px 0px 32px 0px, portrait.23px 0px 18px 0px" onEntry=" this.border='1px solid #FAB89C';this.overflow=' hidden'; this.gap='25px'; this.align-items='center'; this.justify-content='center';this.border-radius='6px';">
|
|
127
|
+
|
|
128
|
+
${args.image1.length === 0 && args.option1.length === 0 ? '' : `<lido-cell layout="col" audio="${args.option1Audio}" x="29px" y="-221px" z="1" onTouch="" visible="true" type="option" tab-index="6" id="i1" value="${args.option1}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0'; this.box-sizing='unset'; this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
129
|
+
${args.image1.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image1}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto'; this.boxShadow='unset';this.transition = 'transform 0.5s ease';" ></lido-image>`}
|
|
130
|
+
|
|
131
|
+
${args.option1.length === 0 ? '' : `<lido-text visible="true" height="31px" width="145px" string="${args.option1}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
132
|
+
</lido-cell>`}
|
|
133
|
+
${args.image2.length === 0 && args.option2.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option2Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="7" id="i2" value="${args.option2}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
134
|
+
${args.image2.length === 0 ? '' : ` <lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image2}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';"></lido-image>`}
|
|
135
|
+
${args.option2.length === 0 ? '' : ` <lido-text visible="true" height="31px" width="145px" string="${args.option2}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
136
|
+
</lido-cell>`}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
${args.image3.length === 0 && args.option3.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option3Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="8" id="i3" value="${args.option3}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
140
|
+
${args.image3.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image3}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';" z="5"></lido-image>`}
|
|
141
|
+
${args.option3.length === 0 ? '' : `<lido-text visible="true" height="31px" width="145px" string="${args.option3}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
142
|
+
</lido-cell>`}
|
|
143
|
+
|
|
144
|
+
${args.image4.length === 0 && args.option4.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option4Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="9" id="i4" value="${args.option4}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
145
|
+
${args.image4.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image4}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';" z="5"></lido-image>`}
|
|
146
|
+
${args.option4.length === 0 ? '' : `<lido-text visible="true" onTouch="" height="31px" width="145px" string="${args.option4}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
147
|
+
</lido-cell>`}
|
|
148
|
+
|
|
149
|
+
${args.image5.length === 0 && args.option5.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option5Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="10" id="i5" value="${args.option5}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
150
|
+
${args.image5.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image5}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';" z="5"></lido-image>`}
|
|
151
|
+
${args.option5.length === 0 ? '' : `<lido-text visible="true" onTouch="" height="31px" width="145px" string="${args.option5}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>1`}
|
|
152
|
+
</lido-cell>`}
|
|
153
|
+
|
|
154
|
+
${args.image6.length === 0 && args.option6.length === 0 ? '' : `<lido-cell layout="col" onTouch="" audio="${args.option6Audio}" x="29px" y="-221px" visible="true" type="option" tab-index="11" id="i6" value="${args.option6}" height="217px" width="149px" bg-Color="white" onEntry="this.padding='0px';this.flex-shrink='0';this.box-sizing='unset';this.align-items='center';this.justify-content='center';this.border-radius='6px';this. box-shadow=' 0px 8px 0px -2px rgba(0, 0, 0, 0.1)'">
|
|
155
|
+
${args.image6.length === 0 ? '' : `<lido-image visible="true" height="145px" width="145px" bgColor="transparent" src="${args.image6}" onEntry="this.pointer-events=' none';this.flex=' 0 0 auto';this.boxShadow='unset';this.transition = 'transform 0.5s ease';" z="5"></lido-image>`}
|
|
156
|
+
${args.option6.length === 0 ? '' : `<lido-text visible="true" onTouch="" height="31px" width="145px" string="${args.option6}" font-family="'Baloo Bhai 2'" font-size="32px" margin="0px 0px 0px 0px" onEntry="this.pointer-events=' none';this.border-radius='0px'; this.fontWeight='500';" bg-Color="white"></lido-text>`}
|
|
157
|
+
</lido-cell>`}
|
|
158
|
+
|
|
159
|
+
</lido-cell>
|
|
160
|
+
</lido-cell>
|
|
161
|
+
</lido-container>
|
|
162
162
|
</main>`;
|
|
163
163
|
}
|
|
@@ -23,8 +23,8 @@ function getContainerXml(args) {
|
|
|
23
23
|
const dropMatrices = Object.entries(shape)
|
|
24
24
|
.map(([key, { width, height }], index) => {
|
|
25
25
|
objective.push(`slot${index + 1}`);
|
|
26
|
-
return `
|
|
27
|
-
<lido-math-matrix id="drop-${index + 1}" visible="true" width="1600px" height="900px" rows="${width}" cols="${height}" top-index="false" left-index="false" bottom-index="false" active-only-visible="true" activeBgColor="#967ca6" defualtFill="${width * height}" tab-index="${tabIndex++}" type="drop" value="slot${index + 1}" clickable="false" border="2px solid black" font-color="white" onInCorrect="lido-avatar.avatarAnimate='Fail';" onCorrect="lido-avatar.avatarAnimate='Success';"></lido-math-matrix>
|
|
26
|
+
return `
|
|
27
|
+
<lido-math-matrix id="drop-${index + 1}" visible="true" width="1600px" height="900px" rows="${width}" cols="${height}" top-index="false" left-index="false" bottom-index="false" active-only-visible="true" activeBgColor="#967ca6" defualtFill="${width * height}" tab-index="${tabIndex++}" type="drop" value="slot${index + 1}" clickable="false" border="2px solid black" font-color="white" onInCorrect="lido-avatar.avatarAnimate='Fail';" onCorrect="lido-avatar.avatarAnimate='Success';"></lido-math-matrix>
|
|
28
28
|
`;
|
|
29
29
|
})
|
|
30
30
|
.join("\n");
|
|
@@ -32,36 +32,36 @@ function getContainerXml(args) {
|
|
|
32
32
|
.map(([key, { width, height }], index) => {
|
|
33
33
|
const colors = ['#a657fa', '#fa7f98', '#dee60e', '#71f24e', '#55d9a4'];
|
|
34
34
|
const randomColor = colors[Math.floor(Math.random() * colors.length)];
|
|
35
|
-
return `
|
|
35
|
+
return `
|
|
36
36
|
<lido-math-matrix id="drag-${index + 1}" visible="true" width="1600px" height="900px" rows="${width}" cols="${height}" top-index="false" left-index="false" bottom-index="false" active-only-visible="true" activeBgColor="${randomColor}" defualtFill="${width * height}" type="drag" value="slot${index + 1}" clickable="false" border="2px solid black" font-color="white" onCorrect="lido-avatar.avatarAnimate='Success';"></lido-math-matrix>`;
|
|
37
37
|
})
|
|
38
38
|
.join("\n");
|
|
39
|
-
return `<main>
|
|
40
|
-
<lido-container id="lido-container" visible="true" dropAttr="math-matrix" objective="${objective}" onCorrect="this.sleep='2000'; all.animation='placeToLeft 1.5s linear'; this.sleep='1500';" is-continue-on-correct="true" is-allow-only-correct="true" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Checker%20blocks.png" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" disable-speak="true">
|
|
41
|
-
|
|
42
|
-
<lido-text visible="false" tab-index="1" string="drag the missing numbers from right to its correct place and complete the puzzle" onEntry="this.sleep='2000'; this.speak='true';"></lido-text>
|
|
43
|
-
|
|
44
|
-
<!-- Chimple Avatar -->
|
|
45
|
-
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.448px,portrait.270px" width="landscape.350px,portrait.270px" x="landscape.500px, portrait.-9%" y="landscape.522px, portrait.36%" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
|
|
46
|
-
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
|
|
47
|
-
</lido-avatar>
|
|
48
|
-
</lido-cell>
|
|
49
|
-
|
|
50
|
-
<lido-cell visible="true" id="all" layout="landscape.row, portrait.col" height="100%" width="100%" flex-direction="landscape.unset, portrait.column-reverse" onEntry="this.justifyContent='unset';" bg-color="transparent">
|
|
51
|
-
<lido-cell visible="true" layout="col" width="landscape.30%, portrait.90%" height="landscape.90%, portrait.45%" bg-color="transparent" z="2">
|
|
52
|
-
<lido-cell visible="true" layout="random" width="100%" height="100%" bg-color="transparent">
|
|
53
|
-
${dragMatrices}
|
|
54
|
-
</lido-cell>
|
|
55
|
-
</lido-cell>
|
|
56
|
-
<lido-cell id="truck" visible="true" layout="pos" x="0" y="0" z="1" onEntry="this.animation='rightToPlace 1.5s linear';">
|
|
57
|
-
<lido-image visible="true" width="landscape.1500px, portrait.1234px" height="landscape.900px, portrait.850px" x="landscape.185px, portrait.-350px" y='landscape.20px, portrait.60px' src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/CheckerBlock/checkerBlockTruck.svg"></lido-image>
|
|
58
|
-
<lido-math-matrix id="matrix" visible="true" width="landscape.720px, portrait.660px" height="landscape.860px, portrait.400px" x="landscape.800px, portrait.135px" y="landscape.23px, portrait.75px" rows="10" cols="10" top-index="false" left-index="false" bottom-index="false" active-only-visible="false" defualtFill="100" text="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,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100" border="2px solid #736e6cff" border-radius="0" active-bg-color="#d7d5d9" clickable="false" type="checkerBlock" font-color="#4f2e35"></lido-math-matrix>
|
|
59
|
-
${dropMatrices}
|
|
60
|
-
|
|
61
|
-
</lido-cell>
|
|
62
|
-
</lido-cell>
|
|
63
|
-
|
|
64
|
-
</lido-container>
|
|
39
|
+
return `<main>
|
|
40
|
+
<lido-container id="lido-container" visible="true" dropAttr="math-matrix" objective="${objective}" onCorrect="this.sleep='2000'; all.animation='placeToLeft 1.5s linear'; this.sleep='1500';" is-continue-on-correct="true" is-allow-only-correct="true" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Checker%20blocks.png" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" disable-speak="true">
|
|
41
|
+
|
|
42
|
+
<lido-text visible="false" tab-index="1" string="drag the missing numbers from right to its correct place and complete the puzzle" onEntry="this.sleep='2000'; this.speak='true';"></lido-text>
|
|
43
|
+
|
|
44
|
+
<!-- Chimple Avatar -->
|
|
45
|
+
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.448px,portrait.270px" width="landscape.350px,portrait.270px" x="landscape.500px, portrait.-9%" y="landscape.522px, portrait.36%" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
|
|
46
|
+
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
|
|
47
|
+
</lido-avatar>
|
|
48
|
+
</lido-cell>
|
|
49
|
+
|
|
50
|
+
<lido-cell visible="true" id="all" layout="landscape.row, portrait.col" height="100%" width="100%" flex-direction="landscape.unset, portrait.column-reverse" onEntry="this.justifyContent='unset';" bg-color="transparent">
|
|
51
|
+
<lido-cell visible="true" layout="col" width="landscape.30%, portrait.90%" height="landscape.90%, portrait.45%" bg-color="transparent" z="2">
|
|
52
|
+
<lido-cell visible="true" layout="random" width="100%" height="100%" bg-color="transparent">
|
|
53
|
+
${dragMatrices}
|
|
54
|
+
</lido-cell>
|
|
55
|
+
</lido-cell>
|
|
56
|
+
<lido-cell id="truck" visible="true" layout="pos" x="0" y="0" z="1" onEntry="this.animation='rightToPlace 1.5s linear';">
|
|
57
|
+
<lido-image visible="true" width="landscape.1500px, portrait.1234px" height="landscape.900px, portrait.850px" x="landscape.185px, portrait.-350px" y='landscape.20px, portrait.60px' src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/CheckerBlock/checkerBlockTruck.svg"></lido-image>
|
|
58
|
+
<lido-math-matrix id="matrix" visible="true" width="landscape.720px, portrait.660px" height="landscape.860px, portrait.400px" x="landscape.800px, portrait.135px" y="landscape.23px, portrait.75px" rows="10" cols="10" top-index="false" left-index="false" bottom-index="false" active-only-visible="false" defualtFill="100" text="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,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100" border="2px solid #736e6cff" border-radius="0" active-bg-color="#d7d5d9" clickable="false" type="checkerBlock" font-color="#4f2e35"></lido-math-matrix>
|
|
59
|
+
${dropMatrices}
|
|
60
|
+
|
|
61
|
+
</lido-cell>
|
|
62
|
+
</lido-cell>
|
|
63
|
+
|
|
64
|
+
</lido-container>
|
|
65
65
|
</main>`;
|
|
66
66
|
}
|
|
67
67
|
function generateSlots(level) {
|
|
@@ -17,19 +17,19 @@ export const CheckerBlock = {
|
|
|
17
17
|
};
|
|
18
18
|
function getContainerXml(args) {
|
|
19
19
|
const shape = generateSlots();
|
|
20
|
-
return `<main>
|
|
21
|
-
<lido-container visible="true" show-next-button="true" dropAttr="math-matrix" objective="nammadha" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Checker%20blocks.png" onCorrect="this.sleep='120000';">
|
|
22
|
-
<lido-math-matrix id="matrix3" visible="true" rows="10" cols="10" top-index="false" left-index="false" bottom-index="false" active-only-visible="false" defualtFill="100" active-bg-color="#deb3f2" clickable="false" type="checkerBlock"></lido-math-matrix>
|
|
23
|
-
|
|
24
|
-
<lido-cell visible="true" layout="pos" x="0" y="0">
|
|
25
|
-
<lido-math-matrix id="matrix1" visible="true" width="1600px" height="900px" rows="1" cols="10" top-index="false" left-index="false" bottom-index="false" active-only-visible="true" text="false" activeBgColor="#9a3dc5ff" defualtFill="10" tab-index="1" type="drop" value="nammadha" clickable="false"></lido-math-matrix>
|
|
26
|
-
</lido-cell>
|
|
27
|
-
|
|
28
|
-
<lido-cell visible="true" layout="pos" x="0" y="0">
|
|
29
|
-
<lido-math-matrix id="matrix4" visible="true" width="1600px" height="900px" rows="2" cols="3" top-index="false" left-index="false" bottom-index="false" active-only-visible="true" text="false" activeBgColor="#9a3dc5ff" defualtFill="9" tab-index="3" type="drag" value="nammadha" clickable="false"></lido-math-matrix>
|
|
30
|
-
</lido-cell>
|
|
31
|
-
|
|
32
|
-
</lido-container>
|
|
20
|
+
return `<main>
|
|
21
|
+
<lido-container visible="true" show-next-button="true" dropAttr="math-matrix" objective="nammadha" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Checker%20blocks.png" onCorrect="this.sleep='120000';">
|
|
22
|
+
<lido-math-matrix id="matrix3" visible="true" rows="10" cols="10" top-index="false" left-index="false" bottom-index="false" active-only-visible="false" defualtFill="100" active-bg-color="#deb3f2" clickable="false" type="checkerBlock"></lido-math-matrix>
|
|
23
|
+
|
|
24
|
+
<lido-cell visible="true" layout="pos" x="0" y="0">
|
|
25
|
+
<lido-math-matrix id="matrix1" visible="true" width="1600px" height="900px" rows="1" cols="10" top-index="false" left-index="false" bottom-index="false" active-only-visible="true" text="false" activeBgColor="#9a3dc5ff" defualtFill="10" tab-index="1" type="drop" value="nammadha" clickable="false"></lido-math-matrix>
|
|
26
|
+
</lido-cell>
|
|
27
|
+
|
|
28
|
+
<lido-cell visible="true" layout="pos" x="0" y="0">
|
|
29
|
+
<lido-math-matrix id="matrix4" visible="true" width="1600px" height="900px" rows="2" cols="3" top-index="false" left-index="false" bottom-index="false" active-only-visible="true" text="false" activeBgColor="#9a3dc5ff" defualtFill="9" tab-index="3" type="drag" value="nammadha" clickable="false"></lido-math-matrix>
|
|
30
|
+
</lido-cell>
|
|
31
|
+
|
|
32
|
+
</lido-container>
|
|
33
33
|
</main>`;
|
|
34
34
|
}
|
|
35
35
|
function generateSlots() {
|
|
@@ -95,79 +95,79 @@ export const CreateSentence = {
|
|
|
95
95
|
},
|
|
96
96
|
};
|
|
97
97
|
function getContainerXml(args) {
|
|
98
|
-
return `<main>
|
|
99
|
-
<lido-container id="lido-container" is-allow-only-correct="true" value="maincontainer" objective="${args.correct1},${args.correct2},${args.correct3},${args.correct4},${args.correct5},${args.correct6},${args.correct7},${args.correct8}" x="0" y="0" z="0" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Create%20sentence.png" visible="true" audio="" onCorrect="lido-avatar.avatarAnimate='Success'; pos5.animation='placeToLeft 2.5s linear';pos2.animation='placeToLeft 2.5s linear'; this.sleep='2000';" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="false" appendToDropOnCompletion="true">
|
|
100
|
-
<lido-cell visible="false" id="speak-con">
|
|
101
|
-
<lido-text id="sentenceText" string="${args.correct}"/>
|
|
102
|
-
</lido-cell>
|
|
103
|
-
<lido-cell id="row1" layout="col" height="100%" width="100%" visible="true" bg-Color="transparent">
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<lido-text show-speak-icon="true" tab-index="1" margin="60px 0px -139px 0px" visible="true" bg-color="transparent" y="landscape.30px, portrait.79px" onEntry="this.padding='0px 45px'; this.fontWeight='600'; " audio="${args.headingAudio}" width="auto" height="5%" string="${args.heading}" font-family="'Baloo 2', serif" font-size="36px" z="2" >
|
|
107
|
-
|
|
108
|
-
</lido-text>
|
|
109
|
-
<!-- Truck -->
|
|
110
|
-
<lido-cell id="col" layout="col" disable-edit="true" value="pos" aria-hidden="true" x="0" y="0" z="0" bg-color="transparent" type="" visible="true" audio="" onTouch="" onCorrect="" width="100%" height="100%" onEntry="">
|
|
111
|
-
<lido-cell id="pos2" layout="pos" disable-edit="true" value="pos" aria-hidden="true" x="0" y="landscape.29px,portrait.0px" z="0" bg-color="transparent" type="" visible="true" audio="" onTouch="" width="100%" height="100%" onEntry="this.animation='rightToPlace 2.5s linear'; this.sleep='2000'">
|
|
112
|
-
<lido-image width="landscape.1477px, portrait.200%" height="landscape.139%, portrait.100%" y="landscape.-28%, portrait.-7%" x="landscape.0%, portrait.-73%" id="image1" disable-edit="true" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/create%20sentence/blueTruck.png" onEntry="">
|
|
113
|
-
</lido-image>
|
|
114
|
-
<lido-image width="landscape.16%, portrait.32%" y="landscape.17%, portrait.26%" x="landscape.51%, portrait.35%" z="2" id="image2" disable-edit="true" visible="true" src="${args.questionImg}" onEntry="">
|
|
115
|
-
</lido-image>
|
|
116
|
-
<lido-cell layout="wrap" visible="true" width="landscape.50%, portrait.88%" y="landscape.48%, portrait.48%" x="landscape.35%,portrait.7%" z="2" onEntry="this.gridTemplateColumns = 'repeat(4, 1fr)'; this.gridTemplateRows = 'repeat(2, 1fr)';this.position='relative';this.gap='45px';" bg-color="transparent">
|
|
117
|
-
<lido-text id="drop1" drop-attr="stretch" value="${args.correct1}" tab-index="2" is-allow-only-one-drop="true" visible="true" onEntry="this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" type="drop">
|
|
118
|
-
</lido-text>
|
|
119
|
-
<lido-text id="drop2" drop-attr="stretch" value="${args.correct2}" tab-index="3" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
120
|
-
</lido-text>
|
|
121
|
-
<lido-text id="drop3" drop-attr="stretch" value="${args.correct3}" tab-index="4" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
122
|
-
</lido-text>
|
|
123
|
-
<lido-text id="drop4" drop-attr="stretch" value="${args.correct4}" tab-index="5" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
124
|
-
</lido-text>
|
|
125
|
-
<lido-text id="drop5" drop-attr="stretch" value="${args.correct5}" tab-index="6" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
126
|
-
</lido-text>
|
|
127
|
-
<lido-text id="drop6" drop-attr="stretch" value="${args.correct6}" tab-index="7" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
128
|
-
</lido-text>
|
|
129
|
-
<lido-text id="drop7" drop-attr="stretch" value="${args.correct7}" tab-index="8" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
130
|
-
</lido-text>
|
|
131
|
-
<lido-text id="drop8" drop-attr="stretch" value="${args.correct8}" tab-index="9" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
132
|
-
</lido-text>
|
|
133
|
-
</lido-cell>
|
|
134
|
-
|
|
135
|
-
</lido-cell>
|
|
136
|
-
<lido-cell layout="landscape.flex,portrait.wrap" delay-visible="2650" visible="true" width="landscape.86%, portrait.88%" y="landscape.65%, portrait.62%" x="landscape.4%,portrait.0px" z="2" onEntry="this.gridTemplateColumns = 'repeat(4, 1fr)'; this.gridTemplateRows = 'repeat(2, 1fr)';this.position='relative';this.gap='40px';">
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
<lido-text id="option1" audio="${args.option1Audio}" value="${args.option1}" tab-index="10" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option1}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
140
|
-
</lido-text>
|
|
141
|
-
<lido-text id="option2" audio="${args.option2Audio}" value="${args.option2}" tab-index="11" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option2}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
142
|
-
|
|
143
|
-
</lido-text>
|
|
144
|
-
<lido-text id="option3" audio="${args.option3Audio}" value="${args.option3}" tab-index="12" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option3}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
145
|
-
</lido-text>
|
|
146
|
-
<lido-text id="option4" audio="${args.option4Audio}" value="${args.option4}" tab-index="13" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option4}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
147
|
-
</lido-text>
|
|
148
|
-
<lido-text id="option5" audio="${args.option5Audio}" value="${args.option5}" tab-index="14" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option5}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
149
|
-
</lido-text>
|
|
150
|
-
<lido-text id="option6" audio="${args.option6Audio}" value="${args.option6}" tab-index="15" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800';" width="auto" height="84px" string="${args.option6}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
151
|
-
</lido-text>
|
|
152
|
-
<lido-text id="option7" audio="${args.option7Audio}" value="${args.option7}" tab-index="16" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option7}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
153
|
-
</lido-text>
|
|
154
|
-
<lido-text id="option8" audio="${args.option8Audio}" value="${args.option8}" tab-index="17" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option8}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
155
|
-
|
|
156
|
-
</lido-text>
|
|
157
|
-
</lido-cell>
|
|
158
|
-
<lido-cell layout="row" visible="true" width="landscape.70%, portrait.88%" y="landscape.21%, portrait.42%" x="0%" z="2" onEntry="this.position='relative'">
|
|
159
|
-
|
|
160
|
-
</lido-cell>
|
|
161
|
-
</lido-cell>
|
|
162
|
-
<!-- avatar -->
|
|
163
|
-
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.408px,portrait.327px" width="landscape.311px,portrait.294px" x="landscape.85%, portrait.640px" y="landscape.43%, portrait.172px" aria-hidden="true" z="-13" bg-color="transparent" visible="true" onEntry="this.animation='rightToPlace 2.5s linear';">
|
|
164
|
-
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
|
|
165
|
-
</lido-avatar>
|
|
166
|
-
<lido-image id="image1" disable-edit="true" value="image1" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/Shadow.png" bg-color="transparent" width="186px" height="20px" x="landscape.61px,portrait.103px" y="landscape.315px,portrait.353px" alt-text="{shadowImage}">
|
|
167
|
-
</lido-image>
|
|
168
|
-
|
|
169
|
-
</lido-cell>
|
|
170
|
-
</lido-cell>
|
|
171
|
-
</lido-container>
|
|
98
|
+
return `<main>
|
|
99
|
+
<lido-container id="lido-container" is-allow-only-correct="true" value="maincontainer" objective="${args.correct1},${args.correct2},${args.correct3},${args.correct4},${args.correct5},${args.correct6},${args.correct7},${args.correct8}" x="0" y="0" z="0" bg-color="transparent" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Create%20sentence.png" visible="true" audio="" onCorrect="lido-avatar.avatarAnimate='Success'; pos5.animation='placeToLeft 2.5s linear';pos2.animation='placeToLeft 2.5s linear'; this.sleep='2000';" onEntry="" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="false" appendToDropOnCompletion="true">
|
|
100
|
+
<lido-cell visible="false" id="speak-con">
|
|
101
|
+
<lido-text id="sentenceText" string="${args.correct}"/>
|
|
102
|
+
</lido-cell>
|
|
103
|
+
<lido-cell id="row1" layout="col" height="100%" width="100%" visible="true" bg-Color="transparent">
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<lido-text show-speak-icon="true" tab-index="1" margin="60px 0px -139px 0px" visible="true" bg-color="transparent" y="landscape.30px, portrait.79px" onEntry="this.padding='0px 45px'; this.fontWeight='600'; " audio="${args.headingAudio}" width="auto" height="5%" string="${args.heading}" font-family="'Baloo 2', serif" font-size="36px" z="2" >
|
|
107
|
+
|
|
108
|
+
</lido-text>
|
|
109
|
+
<!-- Truck -->
|
|
110
|
+
<lido-cell id="col" layout="col" disable-edit="true" value="pos" aria-hidden="true" x="0" y="0" z="0" bg-color="transparent" type="" visible="true" audio="" onTouch="" onCorrect="" width="100%" height="100%" onEntry="">
|
|
111
|
+
<lido-cell id="pos2" layout="pos" disable-edit="true" value="pos" aria-hidden="true" x="0" y="landscape.29px,portrait.0px" z="0" bg-color="transparent" type="" visible="true" audio="" onTouch="" width="100%" height="100%" onEntry="this.animation='rightToPlace 2.5s linear'; this.sleep='2000'">
|
|
112
|
+
<lido-image width="landscape.1477px, portrait.200%" height="landscape.139%, portrait.100%" y="landscape.-28%, portrait.-7%" x="landscape.0%, portrait.-73%" id="image1" disable-edit="true" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/create%20sentence/blueTruck.png" onEntry="">
|
|
113
|
+
</lido-image>
|
|
114
|
+
<lido-image width="landscape.16%, portrait.32%" y="landscape.17%, portrait.26%" x="landscape.51%, portrait.35%" z="2" id="image2" disable-edit="true" visible="true" src="${args.questionImg}" onEntry="">
|
|
115
|
+
</lido-image>
|
|
116
|
+
<lido-cell layout="wrap" visible="true" width="landscape.50%, portrait.88%" y="landscape.48%, portrait.48%" x="landscape.35%,portrait.7%" z="2" onEntry="this.gridTemplateColumns = 'repeat(4, 1fr)'; this.gridTemplateRows = 'repeat(2, 1fr)';this.position='relative';this.gap='45px';" bg-color="transparent">
|
|
117
|
+
<lido-text id="drop1" drop-attr="stretch" value="${args.correct1}" tab-index="2" is-allow-only-one-drop="true" visible="true" onEntry="this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" type="drop">
|
|
118
|
+
</lido-text>
|
|
119
|
+
<lido-text id="drop2" drop-attr="stretch" value="${args.correct2}" tab-index="3" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
120
|
+
</lido-text>
|
|
121
|
+
<lido-text id="drop3" drop-attr="stretch" value="${args.correct3}" tab-index="4" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
122
|
+
</lido-text>
|
|
123
|
+
<lido-text id="drop4" drop-attr="stretch" value="${args.correct4}" tab-index="5" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
124
|
+
</lido-text>
|
|
125
|
+
<lido-text id="drop5" drop-attr="stretch" value="${args.correct5}" tab-index="6" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
126
|
+
</lido-text>
|
|
127
|
+
<lido-text id="drop6" drop-attr="stretch" value="${args.correct6}" tab-index="7" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
128
|
+
</lido-text>
|
|
129
|
+
<lido-text id="drop7" drop-attr="stretch" value="${args.correct7}" tab-index="8" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
130
|
+
</lido-text>
|
|
131
|
+
<lido-text id="drop8" drop-attr="stretch" value="${args.correct8}" tab-index="9" is-allow-only-one-drop="true" visible="true" onEntry=" this.background='transparent'; this.borderRadius='15px'; " width="150px" height="80px" z="2" type="drop">
|
|
132
|
+
</lido-text>
|
|
133
|
+
</lido-cell>
|
|
134
|
+
|
|
135
|
+
</lido-cell>
|
|
136
|
+
<lido-cell layout="landscape.flex,portrait.wrap" delay-visible="2650" visible="true" width="landscape.86%, portrait.88%" y="landscape.65%, portrait.62%" x="landscape.4%,portrait.0px" z="2" onEntry="this.gridTemplateColumns = 'repeat(4, 1fr)'; this.gridTemplateRows = 'repeat(2, 1fr)';this.position='relative';this.gap='40px';">
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<lido-text id="option1" audio="${args.option1Audio}" value="${args.option1}" tab-index="10" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option1}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
140
|
+
</lido-text>
|
|
141
|
+
<lido-text id="option2" audio="${args.option2Audio}" value="${args.option2}" tab-index="11" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option2}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
142
|
+
|
|
143
|
+
</lido-text>
|
|
144
|
+
<lido-text id="option3" audio="${args.option3Audio}" value="${args.option3}" tab-index="12" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option3}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
145
|
+
</lido-text>
|
|
146
|
+
<lido-text id="option4" audio="${args.option4Audio}" value="${args.option4}" tab-index="13" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option4}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
147
|
+
</lido-text>
|
|
148
|
+
<lido-text id="option5" audio="${args.option5Audio}" value="${args.option5}" tab-index="14" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option5}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
149
|
+
</lido-text>
|
|
150
|
+
<lido-text id="option6" audio="${args.option6Audio}" value="${args.option6}" tab-index="15" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800';" width="auto" height="84px" string="${args.option6}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
151
|
+
</lido-text>
|
|
152
|
+
<lido-text id="option7" audio="${args.option7Audio}" value="${args.option7}" tab-index="16" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option7}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
153
|
+
</lido-text>
|
|
154
|
+
<lido-text id="option8" audio="${args.option8Audio}" value="${args.option8}" tab-index="17" visible="true" bg-color="#FCF3B1" onEntry="this.padding='0px 40px';this.borderRadius='25px'; this.boxShadow='unset'; this.fontWeight='800'; " width="auto" height="84px" string="${args.option8}" font-family="'Baloo 2', serif" font-size="24px" z="2" type="drag">
|
|
155
|
+
|
|
156
|
+
</lido-text>
|
|
157
|
+
</lido-cell>
|
|
158
|
+
<lido-cell layout="row" visible="true" width="landscape.70%, portrait.88%" y="landscape.21%, portrait.42%" x="0%" z="2" onEntry="this.position='relative'">
|
|
159
|
+
|
|
160
|
+
</lido-cell>
|
|
161
|
+
</lido-cell>
|
|
162
|
+
<!-- avatar -->
|
|
163
|
+
<lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.408px,portrait.327px" width="landscape.311px,portrait.294px" x="landscape.85%, portrait.640px" y="landscape.43%, portrait.172px" aria-hidden="true" z="-13" bg-color="transparent" visible="true" onEntry="this.animation='rightToPlace 2.5s linear';">
|
|
164
|
+
<lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
|
|
165
|
+
</lido-avatar>
|
|
166
|
+
<lido-image id="image1" disable-edit="true" value="image1" visible="true" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/Shadow.png" bg-color="transparent" width="186px" height="20px" x="landscape.61px,portrait.103px" y="landscape.315px,portrait.353px" alt-text="{shadowImage}">
|
|
167
|
+
</lido-image>
|
|
168
|
+
|
|
169
|
+
</lido-cell>
|
|
170
|
+
</lido-cell>
|
|
171
|
+
</lido-container>
|
|
172
172
|
</main>`;
|
|
173
173
|
}
|