lido-player 0.0.2-alpha-50-dev → 0.0.2-alpha-52-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/{index-6a69c33a.js → index-baff5c15.js} +48 -14
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{lido-avatar_21.cjs.entry.js → lido-avatar_22.cjs.entry.js} +3043 -162
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-079a5e7d.js → utils-ce99b0d0.js} +294 -108
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/avatar/lido-avatar.css +4 -4
- package/dist/collection/components/avatar/lido-avatar.js +1 -1
- package/dist/collection/components/calculator/lido-calculator.css +87 -87
- package/dist/collection/components/calculator/lido-calculator.js +14 -8
- package/dist/collection/components/canvas/lido-canvas.css +35 -0
- package/dist/collection/components/canvas/lido-canvas.js +220 -0
- 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 +70 -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 +278 -278
- package/dist/collection/components/home/lido-home.js +92 -12
- 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 +69 -15
- 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 +42 -6
- 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/lido-balance.css +145 -114
- package/dist/collection/components/scale/lido-balance.js +17 -17
- package/dist/collection/components/shape/lido-shape.css +96 -96
- package/dist/collection/components/shape/lido-shape.js +5 -5
- 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 +6 -5
- 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 +194 -194
- package/dist/collection/css/index.css +277 -277
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +60 -60
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +55 -48
- package/dist/collection/stories/Templates/Tag/tagGame.stories.js +29 -29
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +42 -42
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +37 -31
- package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
- package/dist/collection/stories/Templates/blender/blender.stories.js +100 -0
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +52 -0
- 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 +28 -22
- 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 +39 -38
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +37 -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/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 +54 -54
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +25 -23
- 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 +32 -28
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +56 -54
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +56 -45
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +41 -39
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +131 -127
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +53 -49
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +44 -40
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +98 -97
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +92 -91
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +47 -45
- 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 +62 -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/reorder/reorder.stories.js +63 -63
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +52 -48
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +65 -61
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -58
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +111 -107
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +46 -46
- 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/sumTogether/sumTogether.stories.js +51 -47
- package/dist/collection/stories/Templates/total/total.stories.js +27 -27
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +35 -31
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +62 -58
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -40
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +36 -32
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +37 -33
- 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 +43 -6
- package/dist/collection/utils/constants.js +1 -0
- package/dist/collection/utils/i18n.js +36 -0
- package/dist/collection/utils/utils.js +170 -36
- package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +27 -15
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +2 -2
- package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +9 -9
- package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
- 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.d.ts +11 -0
- package/dist/components/lido-canvas.js +6 -0
- 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-image.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 +49 -25
- 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-9be56729.js → p-00777872.js} +46 -2
- package/dist/components/{p-3f406017.js → p-06171259.js} +2 -2
- package/dist/components/{p-08d0deab.js → p-09f1e2d2.js} +15 -9
- package/dist/components/{p-e4e42677.js → p-0c2aebfb.js} +2 -2
- package/dist/components/p-0fbeb3a1.js +2700 -0
- package/dist/components/{p-cbac3cbc.js → p-11bf64aa.js} +2 -2
- package/dist/components/{p-44808985.js → p-26df0769.js} +7 -7
- package/dist/components/{p-1fbdb431.js → p-2d53e1a5.js} +2 -2
- package/dist/components/{p-afbc196f.js → p-39a2e638.js} +3 -2
- package/dist/components/{p-e36ddcc1.js → p-3ce3744c.js} +14 -11
- package/dist/components/{p-7f7e5672.js → p-3f4d4c0a.js} +2 -2
- package/dist/components/{p-d37ab4dc.js → p-52e77394.js} +2 -2
- package/dist/components/{p-bed94c37.js → p-58c67252.js} +331 -118
- package/dist/components/p-5b5f59a8.js +129 -0
- package/dist/components/{p-52844fa4.js → p-68112f8c.js} +2 -2
- package/dist/components/{p-15971ede.js → p-8a34b98b.js} +1 -1
- package/dist/components/{p-904711c8.js → p-8f2ed62f.js} +2 -2
- package/dist/components/{p-74849cdd.js → p-9d34d59d.js} +4 -4
- package/dist/components/{p-73e31a86.js → p-a2f96840.js} +8 -8
- package/dist/components/{p-90465904.js → p-a516a324.js} +2 -2
- package/dist/components/{p-322acda6.js → p-b2125fc9.js} +67 -31
- package/dist/components/{p-835b973d.js → p-c4abfd0f.js} +2 -2
- package/dist/components/{p-29bdd953.js → p-cb56a853.js} +2 -2
- package/dist/esm/{index-170e58c7.js → index-37c2ad2d.js} +48 -14
- package/dist/esm/index.js +2 -2
- package/dist/esm/{lido-avatar_21.entry.js → lido-avatar_22.entry.js} +3043 -163
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-5df09162.js → utils-107b15a7.js} +294 -108
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-606ea279.entry.js +1 -0
- package/dist/lido-player/p-9a9d5339.js +2 -0
- package/dist/lido-player/{p-7556e652.js → p-d1251482.js} +2 -2
- package/dist/types/components/canvas/lido-canvas.d.ts +27 -0
- package/dist/types/components/container/lido-container.d.ts +6 -0
- package/dist/types/components/home/lido-home.d.ts +8 -0
- package/dist/types/components/mathMatrix/lido-math-matrix.d.ts +3 -1
- package/dist/types/components/root/lido-root.d.ts +5 -0
- package/dist/types/components.d.ts +71 -6
- package/dist/types/stories/Templates/RocketGame/rocketGame.stories.d.ts +1 -0
- package/dist/types/stories/Templates/blender/blender.stories.d.ts +4 -0
- package/dist/types/stories/Templates/calculator/calculator.stories.d.ts +4 -0
- package/dist/types/stories/Templates/multiplyBeeds/multiplyBeeds.stories.d.ts +1 -0
- package/dist/types/stories/Templates/openwindow/openwindow.stories.d.ts +1 -0
- package/dist/types/stories/Templates/openwindow/openwindow2.stories.d.ts +1 -0
- package/dist/types/stories/Templates/questionBoard/questionBoard.stories.d.ts +1 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox1.stories.d.ts +1 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox2.stories.d.ts +1 -0
- package/dist/types/stories/Templates/shapePair/shape-pair.stories.d.ts +1 -1
- package/dist/types/stories/Templates/sumTogether/sumTogether.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeCard/writeCard.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeLetter/writeLetter.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeNumber/writeNumber.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeWord/writeWord.stories.d.ts +1 -0
- package/dist/types/types/json.d.ts +4 -0
- package/dist/types/utils/audioPlayer.d.ts +2 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/i18n.d.ts +5 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +71 -69
- package/readme.md +113 -113
- package/dist/lido-player/p-137c99ce.js +0 -2
- package/dist/lido-player/p-eb956325.entry.js +0 -1
|
@@ -29,288 +29,288 @@ function getContainerXml(args) {
|
|
|
29
29
|
const [beforeBlank, afterBlank] = args.question.split('_');
|
|
30
30
|
const boxHeight = 'landscape.10vw, portrait.20vw';
|
|
31
31
|
const fontSize = 'landscape.48px, portrait.40px';
|
|
32
|
-
let xml = `<main>
|
|
33
|
-
<lido-container
|
|
34
|
-
id="main-container"
|
|
35
|
-
value="mainContainer1"
|
|
36
|
-
objective="${args.correctAns}"
|
|
37
|
-
x="0"
|
|
38
|
-
y="0"
|
|
39
|
-
z="0"
|
|
40
|
-
height="100%"
|
|
41
|
-
width="100%"
|
|
42
|
-
bgColor="transparent"
|
|
43
|
-
bgImage="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/grid-game//Sky.png"
|
|
44
|
-
visible="true"
|
|
45
|
-
showCheck="false"
|
|
46
|
-
isContinueOnCorrect="true"
|
|
47
|
-
isAllowOnlyCorrect="true"
|
|
48
|
-
afterDrop="true"
|
|
49
|
-
onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';"
|
|
50
|
-
onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';"
|
|
51
|
-
>
|
|
52
|
-
|
|
53
|
-
<!-- Decorative Wood Row -->
|
|
54
|
-
<lido-cell layout="row"
|
|
55
|
-
id="row-wood"
|
|
56
|
-
visible="true"
|
|
57
|
-
direction="row"
|
|
58
|
-
width="100%"
|
|
59
|
-
height="landscape.10%, portrait.10%"
|
|
60
|
-
>
|
|
61
|
-
<lido-image
|
|
62
|
-
id="wood-image-1"
|
|
63
|
-
visible="true"
|
|
64
|
-
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/grid-game//word_kicker_wood.png"
|
|
65
|
-
width="100%"
|
|
66
|
-
height="100%"
|
|
67
|
-
z="1"
|
|
68
|
-
altText="ground"
|
|
69
|
-
></lido-image>
|
|
70
|
-
<lido-image
|
|
71
|
-
id="wood-image-2"
|
|
72
|
-
visible="true"
|
|
73
|
-
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/grid-game//word_kicker_wood.png"
|
|
74
|
-
width="100%"
|
|
75
|
-
height="100%"
|
|
76
|
-
z="1"
|
|
77
|
-
altText="ground"
|
|
78
|
-
></lido-image>
|
|
79
|
-
</lido-cell>
|
|
80
|
-
|
|
81
|
-
<!-- Question Board Row -->
|
|
82
|
-
<lido-cell layout="row"
|
|
83
|
-
id="row-question"
|
|
84
|
-
visible="true"
|
|
85
|
-
direction="row"
|
|
86
|
-
spacing="landscape.2vw, portrait.3vw"
|
|
87
|
-
width="landscape.90%, portrait.95%"
|
|
88
|
-
height="landscape.40%, portrait.10%"
|
|
89
|
-
x="50%"
|
|
90
|
-
y="5%"
|
|
91
|
-
>
|
|
92
|
-
<lido-image
|
|
93
|
-
id="question-board-image"
|
|
94
|
-
visible="true"
|
|
95
|
-
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/grid-game//board_question_wordkicker.png"
|
|
96
|
-
width="landscape.100%, portrait.100%"
|
|
97
|
-
height="landscape.100%, portrait.100%"
|
|
98
|
-
z="0"
|
|
99
|
-
isSlice="true"
|
|
100
|
-
altText="Question background"
|
|
101
|
-
>
|
|
102
|
-
<lido-cell layout="row"
|
|
103
|
-
id="row-question-inline"
|
|
104
|
-
tab-index="1"
|
|
105
|
-
visible="true"
|
|
106
|
-
direction="row"
|
|
107
|
-
width="landscape.80%, portrait.95%"
|
|
108
|
-
height="50%"
|
|
109
|
-
spacing="landscape.20px, portrait.2vw"
|
|
110
|
-
x="50%"
|
|
111
|
-
y="50%"
|
|
112
|
-
>
|
|
113
|
-
<lido-text
|
|
114
|
-
id="question-text-before"
|
|
115
|
-
visible="true"
|
|
116
|
-
string="${beforeBlank.trim()}"
|
|
117
|
-
font="'Baloo 2', serif"
|
|
118
|
-
fontColor="white"
|
|
119
|
-
font-size="${fontSize}"
|
|
120
|
-
fontWeight="800"
|
|
121
|
-
bgColor="transparent"
|
|
122
|
-
width="auto"
|
|
123
|
-
></lido-text>
|
|
124
|
-
<lido-text
|
|
125
|
-
id="question-drop-slot"
|
|
126
|
-
visible="true"
|
|
127
|
-
width="25%"
|
|
128
|
-
height="${boxHeight}"
|
|
129
|
-
value="${args.correctAns}"
|
|
130
|
-
type="drop"
|
|
131
|
-
isAllowOnlyOneDrop="true"
|
|
132
|
-
bgColor="transparent"
|
|
133
|
-
font="'Baloo 2', serif"
|
|
134
|
-
fontColor="#000"
|
|
135
|
-
font-size="${fontSize}"
|
|
136
|
-
fontWeight="800"
|
|
137
|
-
borderRadius="1vw"
|
|
138
|
-
></lido-text>
|
|
139
|
-
<lido-text
|
|
140
|
-
id="question-text-after"
|
|
141
|
-
visible="true"
|
|
142
|
-
string="${afterBlank.trim()}"
|
|
143
|
-
font="'Baloo 2', serif"
|
|
144
|
-
fontColor="white"
|
|
145
|
-
font-size="${fontSize}"
|
|
146
|
-
bgColor="transparent"
|
|
147
|
-
width="auto"
|
|
148
|
-
></lido-text>
|
|
149
|
-
</lido-cell>
|
|
150
|
-
</lido-image>
|
|
151
|
-
</lido-cell>
|
|
152
|
-
|
|
153
|
-
<!-- Top Spacer Row -->
|
|
154
|
-
<lido-cell layout="row"
|
|
155
|
-
id="row-spacer-top"
|
|
156
|
-
visible="true"
|
|
157
|
-
direction="row"
|
|
158
|
-
spacing="20px"
|
|
159
|
-
width="100%"
|
|
160
|
-
height="landscape.30%, portrait.15%"
|
|
161
|
-
></lido-cell>
|
|
162
|
-
|
|
163
|
-
<!-- Options Grid (2x2) -->
|
|
164
|
-
<lido-cell layout="col"
|
|
165
|
-
id="row-options-outer"
|
|
166
|
-
visible="true"
|
|
167
|
-
direction="column"
|
|
168
|
-
bgColor = "transparent"
|
|
169
|
-
spacing="landscape.1vw, portrait.2vw"
|
|
170
|
-
width="landscape.60%, portrait.92%"
|
|
171
|
-
height="landscape.70%, portrait.20%"
|
|
172
|
-
x="50%"
|
|
173
|
-
y="42%"
|
|
174
|
-
>
|
|
175
|
-
<lido-cell layout="row"
|
|
176
|
-
id="row-options-1"
|
|
177
|
-
visible="true"
|
|
178
|
-
direction="row"
|
|
179
|
-
spacing="20px"
|
|
180
|
-
width="100%"
|
|
181
|
-
height="landscape.40%, portrait.10%"
|
|
182
|
-
>
|
|
183
|
-
<lido-text
|
|
184
|
-
id="option-1"
|
|
185
|
-
tab-index="2"
|
|
186
|
-
value="${args.option1}"
|
|
187
|
-
visible="true"
|
|
188
|
-
type="drag"
|
|
189
|
-
width="30%"
|
|
190
|
-
height="${boxHeight}"
|
|
191
|
-
string="${args.option1}"
|
|
192
|
-
font="'Baloo 2', serif"
|
|
193
|
-
fontColor="#FFFFFF"
|
|
194
|
-
font-size="${fontSize}"
|
|
195
|
-
fontWeight="800"
|
|
196
|
-
bgColor="#A97345"
|
|
197
|
-
borderRadius="1vw"
|
|
198
|
-
></lido-text>
|
|
199
|
-
<lido-text
|
|
200
|
-
id="option-2"
|
|
201
|
-
tab-index="3"
|
|
202
|
-
value="${args.option2}"
|
|
203
|
-
visible="true"
|
|
204
|
-
type="drag"
|
|
205
|
-
width="30%"
|
|
206
|
-
height="${boxHeight}"
|
|
207
|
-
string="${args.option2}"
|
|
208
|
-
font="'Baloo 2', serif"
|
|
209
|
-
fontColor="#FFFFFF"
|
|
210
|
-
font-size="${fontSize}"
|
|
211
|
-
fontWeight="800"
|
|
212
|
-
bgColor="#A97345"
|
|
213
|
-
borderRadius="1vw"
|
|
214
|
-
></lido-text>
|
|
215
|
-
</lido-cell>
|
|
216
|
-
<lido-cell layout="row"
|
|
217
|
-
id="row-options-2"
|
|
218
|
-
visible="true"
|
|
219
|
-
direction="row"
|
|
220
|
-
spacing="landscape.4vw, portrait.3vw"
|
|
221
|
-
width="100%"
|
|
222
|
-
height="landscape.40%, portrait.10%"
|
|
223
|
-
>
|
|
224
|
-
<lido-text
|
|
225
|
-
id="option-3"
|
|
226
|
-
tab-index="4"
|
|
227
|
-
value="${args.option3}"
|
|
228
|
-
visible="true"
|
|
229
|
-
type="drag"
|
|
230
|
-
width="30%"
|
|
231
|
-
height="${boxHeight}"
|
|
232
|
-
string="${args.option3}"
|
|
233
|
-
font="'Baloo 2', serif"
|
|
234
|
-
fontColor="#FFFFFF"
|
|
235
|
-
font-size="${fontSize}"
|
|
236
|
-
fontWeight="800"
|
|
237
|
-
bgColor="#A97345"
|
|
238
|
-
borderRadius="1vw"
|
|
239
|
-
></lido-text>
|
|
240
|
-
<lido-text
|
|
241
|
-
id="option-4"
|
|
242
|
-
tab-index="5"
|
|
243
|
-
value="${args.option4}"
|
|
244
|
-
visible="true"
|
|
245
|
-
type="drag"
|
|
246
|
-
width="30%"
|
|
247
|
-
height="${boxHeight}"
|
|
248
|
-
string="${args.option4}"
|
|
249
|
-
font="'Baloo 2', serif"
|
|
250
|
-
fontColor="#FFFFFF"
|
|
251
|
-
font-size="${fontSize}"
|
|
252
|
-
fontWeight="800"
|
|
253
|
-
bgColor="#A97345"
|
|
254
|
-
borderRadius="1vw"
|
|
255
|
-
></lido-text>
|
|
256
|
-
</lido-cell>
|
|
257
|
-
</lido-cell>
|
|
258
|
-
|
|
259
|
-
<!-- Bottom Spacer Row -->
|
|
260
|
-
<lido-cell layout="row"
|
|
261
|
-
id="row-spacer-bottom"
|
|
262
|
-
visible="true"
|
|
263
|
-
direction="row"
|
|
264
|
-
spacing="20px"
|
|
265
|
-
width="100%"
|
|
266
|
-
height="landscape.30%, portrait.50%"
|
|
267
|
-
></lido-cell>
|
|
268
|
-
|
|
269
|
-
<!-- Avatar and Shadow -->
|
|
270
|
-
<lido-cell
|
|
271
|
-
layout = "pos"
|
|
272
|
-
id="pos-avatar"
|
|
273
|
-
disableEdit="true"
|
|
274
|
-
value="pos1"
|
|
275
|
-
height="350px"
|
|
276
|
-
width="350px"
|
|
277
|
-
x="landscape.80%, portrait.60%"
|
|
278
|
-
y="landscape.60%, portrait.60%"
|
|
279
|
-
ariaHidden="true"
|
|
280
|
-
z="2"
|
|
281
|
-
bgColor="transparent"
|
|
282
|
-
type=""
|
|
283
|
-
visible="true"
|
|
284
|
-
audio=""
|
|
285
|
-
onTouch=""
|
|
286
|
-
onCorrect=""
|
|
287
|
-
onEntry="this.animation='leftToPlace 1.5s linear';"
|
|
288
|
-
>
|
|
289
|
-
<lido-avatar
|
|
290
|
-
id="lido-avatar"
|
|
291
|
-
disableEdit="true"
|
|
292
|
-
visible="true"
|
|
293
|
-
height="350px"
|
|
294
|
-
width="350px"
|
|
295
|
-
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp1/chimplecharacter.riv"
|
|
296
|
-
altText="chimpleCharacterRive"
|
|
297
|
-
bgColor="transparent"
|
|
298
|
-
></lido-avatar>
|
|
299
|
-
<lido-image
|
|
300
|
-
id="shadow-image"
|
|
301
|
-
disableEdit="true"
|
|
302
|
-
value="image1"
|
|
303
|
-
visible="true"
|
|
304
|
-
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp1/Shadow.png"
|
|
305
|
-
bgColor="transparent"
|
|
306
|
-
width="186px"
|
|
307
|
-
height="40px"
|
|
308
|
-
x="77px"
|
|
309
|
-
y="302px"
|
|
310
|
-
altText="shadowImage"
|
|
311
|
-
></lido-image>
|
|
312
|
-
</lido-cell>
|
|
313
|
-
</lido-container>
|
|
32
|
+
let xml = `<main>
|
|
33
|
+
<lido-container
|
|
34
|
+
id="main-container"
|
|
35
|
+
value="mainContainer1"
|
|
36
|
+
objective="${args.correctAns}"
|
|
37
|
+
x="0"
|
|
38
|
+
y="0"
|
|
39
|
+
z="0"
|
|
40
|
+
height="100%"
|
|
41
|
+
width="100%"
|
|
42
|
+
bgColor="transparent"
|
|
43
|
+
bgImage="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/grid-game//Sky.png"
|
|
44
|
+
visible="true"
|
|
45
|
+
showCheck="false"
|
|
46
|
+
isContinueOnCorrect="true"
|
|
47
|
+
isAllowOnlyCorrect="true"
|
|
48
|
+
afterDrop="true"
|
|
49
|
+
onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000';"
|
|
50
|
+
onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';"
|
|
51
|
+
>
|
|
52
|
+
|
|
53
|
+
<!-- Decorative Wood Row -->
|
|
54
|
+
<lido-cell layout="row"
|
|
55
|
+
id="row-wood"
|
|
56
|
+
visible="true"
|
|
57
|
+
direction="row"
|
|
58
|
+
width="100%"
|
|
59
|
+
height="landscape.10%, portrait.10%"
|
|
60
|
+
>
|
|
61
|
+
<lido-image
|
|
62
|
+
id="wood-image-1"
|
|
63
|
+
visible="true"
|
|
64
|
+
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/grid-game//word_kicker_wood.png"
|
|
65
|
+
width="100%"
|
|
66
|
+
height="100%"
|
|
67
|
+
z="1"
|
|
68
|
+
altText="ground"
|
|
69
|
+
></lido-image>
|
|
70
|
+
<lido-image
|
|
71
|
+
id="wood-image-2"
|
|
72
|
+
visible="true"
|
|
73
|
+
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/grid-game//word_kicker_wood.png"
|
|
74
|
+
width="100%"
|
|
75
|
+
height="100%"
|
|
76
|
+
z="1"
|
|
77
|
+
altText="ground"
|
|
78
|
+
></lido-image>
|
|
79
|
+
</lido-cell>
|
|
80
|
+
|
|
81
|
+
<!-- Question Board Row -->
|
|
82
|
+
<lido-cell layout="row"
|
|
83
|
+
id="row-question"
|
|
84
|
+
visible="true"
|
|
85
|
+
direction="row"
|
|
86
|
+
spacing="landscape.2vw, portrait.3vw"
|
|
87
|
+
width="landscape.90%, portrait.95%"
|
|
88
|
+
height="landscape.40%, portrait.10%"
|
|
89
|
+
x="50%"
|
|
90
|
+
y="5%"
|
|
91
|
+
>
|
|
92
|
+
<lido-image
|
|
93
|
+
id="question-board-image"
|
|
94
|
+
visible="true"
|
|
95
|
+
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/grid-game//board_question_wordkicker.png"
|
|
96
|
+
width="landscape.100%, portrait.100%"
|
|
97
|
+
height="landscape.100%, portrait.100%"
|
|
98
|
+
z="0"
|
|
99
|
+
isSlice="true"
|
|
100
|
+
altText="Question background"
|
|
101
|
+
>
|
|
102
|
+
<lido-cell layout="row"
|
|
103
|
+
id="row-question-inline"
|
|
104
|
+
tab-index="1"
|
|
105
|
+
visible="true"
|
|
106
|
+
direction="row"
|
|
107
|
+
width="landscape.80%, portrait.95%"
|
|
108
|
+
height="50%"
|
|
109
|
+
spacing="landscape.20px, portrait.2vw"
|
|
110
|
+
x="50%"
|
|
111
|
+
y="50%"
|
|
112
|
+
>
|
|
113
|
+
<lido-text
|
|
114
|
+
id="question-text-before"
|
|
115
|
+
visible="true"
|
|
116
|
+
string="${beforeBlank.trim()}"
|
|
117
|
+
font="'Baloo 2', serif"
|
|
118
|
+
fontColor="white"
|
|
119
|
+
font-size="${fontSize}"
|
|
120
|
+
fontWeight="800"
|
|
121
|
+
bgColor="transparent"
|
|
122
|
+
width="auto"
|
|
123
|
+
></lido-text>
|
|
124
|
+
<lido-text
|
|
125
|
+
id="question-drop-slot"
|
|
126
|
+
visible="true"
|
|
127
|
+
width="25%"
|
|
128
|
+
height="${boxHeight}"
|
|
129
|
+
value="${args.correctAns}"
|
|
130
|
+
type="drop"
|
|
131
|
+
isAllowOnlyOneDrop="true"
|
|
132
|
+
bgColor="transparent"
|
|
133
|
+
font="'Baloo 2', serif"
|
|
134
|
+
fontColor="#000"
|
|
135
|
+
font-size="${fontSize}"
|
|
136
|
+
fontWeight="800"
|
|
137
|
+
borderRadius="1vw"
|
|
138
|
+
></lido-text>
|
|
139
|
+
<lido-text
|
|
140
|
+
id="question-text-after"
|
|
141
|
+
visible="true"
|
|
142
|
+
string="${afterBlank.trim()}"
|
|
143
|
+
font="'Baloo 2', serif"
|
|
144
|
+
fontColor="white"
|
|
145
|
+
font-size="${fontSize}"
|
|
146
|
+
bgColor="transparent"
|
|
147
|
+
width="auto"
|
|
148
|
+
></lido-text>
|
|
149
|
+
</lido-cell>
|
|
150
|
+
</lido-image>
|
|
151
|
+
</lido-cell>
|
|
152
|
+
|
|
153
|
+
<!-- Top Spacer Row -->
|
|
154
|
+
<lido-cell layout="row"
|
|
155
|
+
id="row-spacer-top"
|
|
156
|
+
visible="true"
|
|
157
|
+
direction="row"
|
|
158
|
+
spacing="20px"
|
|
159
|
+
width="100%"
|
|
160
|
+
height="landscape.30%, portrait.15%"
|
|
161
|
+
></lido-cell>
|
|
162
|
+
|
|
163
|
+
<!-- Options Grid (2x2) -->
|
|
164
|
+
<lido-cell layout="col"
|
|
165
|
+
id="row-options-outer"
|
|
166
|
+
visible="true"
|
|
167
|
+
direction="column"
|
|
168
|
+
bgColor = "transparent"
|
|
169
|
+
spacing="landscape.1vw, portrait.2vw"
|
|
170
|
+
width="landscape.60%, portrait.92%"
|
|
171
|
+
height="landscape.70%, portrait.20%"
|
|
172
|
+
x="50%"
|
|
173
|
+
y="42%"
|
|
174
|
+
>
|
|
175
|
+
<lido-cell layout="row"
|
|
176
|
+
id="row-options-1"
|
|
177
|
+
visible="true"
|
|
178
|
+
direction="row"
|
|
179
|
+
spacing="20px"
|
|
180
|
+
width="100%"
|
|
181
|
+
height="landscape.40%, portrait.10%"
|
|
182
|
+
>
|
|
183
|
+
<lido-text
|
|
184
|
+
id="option-1"
|
|
185
|
+
tab-index="2"
|
|
186
|
+
value="${args.option1}"
|
|
187
|
+
visible="true"
|
|
188
|
+
type="drag"
|
|
189
|
+
width="30%"
|
|
190
|
+
height="${boxHeight}"
|
|
191
|
+
string="${args.option1}"
|
|
192
|
+
font="'Baloo 2', serif"
|
|
193
|
+
fontColor="#FFFFFF"
|
|
194
|
+
font-size="${fontSize}"
|
|
195
|
+
fontWeight="800"
|
|
196
|
+
bgColor="#A97345"
|
|
197
|
+
borderRadius="1vw"
|
|
198
|
+
></lido-text>
|
|
199
|
+
<lido-text
|
|
200
|
+
id="option-2"
|
|
201
|
+
tab-index="3"
|
|
202
|
+
value="${args.option2}"
|
|
203
|
+
visible="true"
|
|
204
|
+
type="drag"
|
|
205
|
+
width="30%"
|
|
206
|
+
height="${boxHeight}"
|
|
207
|
+
string="${args.option2}"
|
|
208
|
+
font="'Baloo 2', serif"
|
|
209
|
+
fontColor="#FFFFFF"
|
|
210
|
+
font-size="${fontSize}"
|
|
211
|
+
fontWeight="800"
|
|
212
|
+
bgColor="#A97345"
|
|
213
|
+
borderRadius="1vw"
|
|
214
|
+
></lido-text>
|
|
215
|
+
</lido-cell>
|
|
216
|
+
<lido-cell layout="row"
|
|
217
|
+
id="row-options-2"
|
|
218
|
+
visible="true"
|
|
219
|
+
direction="row"
|
|
220
|
+
spacing="landscape.4vw, portrait.3vw"
|
|
221
|
+
width="100%"
|
|
222
|
+
height="landscape.40%, portrait.10%"
|
|
223
|
+
>
|
|
224
|
+
<lido-text
|
|
225
|
+
id="option-3"
|
|
226
|
+
tab-index="4"
|
|
227
|
+
value="${args.option3}"
|
|
228
|
+
visible="true"
|
|
229
|
+
type="drag"
|
|
230
|
+
width="30%"
|
|
231
|
+
height="${boxHeight}"
|
|
232
|
+
string="${args.option3}"
|
|
233
|
+
font="'Baloo 2', serif"
|
|
234
|
+
fontColor="#FFFFFF"
|
|
235
|
+
font-size="${fontSize}"
|
|
236
|
+
fontWeight="800"
|
|
237
|
+
bgColor="#A97345"
|
|
238
|
+
borderRadius="1vw"
|
|
239
|
+
></lido-text>
|
|
240
|
+
<lido-text
|
|
241
|
+
id="option-4"
|
|
242
|
+
tab-index="5"
|
|
243
|
+
value="${args.option4}"
|
|
244
|
+
visible="true"
|
|
245
|
+
type="drag"
|
|
246
|
+
width="30%"
|
|
247
|
+
height="${boxHeight}"
|
|
248
|
+
string="${args.option4}"
|
|
249
|
+
font="'Baloo 2', serif"
|
|
250
|
+
fontColor="#FFFFFF"
|
|
251
|
+
font-size="${fontSize}"
|
|
252
|
+
fontWeight="800"
|
|
253
|
+
bgColor="#A97345"
|
|
254
|
+
borderRadius="1vw"
|
|
255
|
+
></lido-text>
|
|
256
|
+
</lido-cell>
|
|
257
|
+
</lido-cell>
|
|
258
|
+
|
|
259
|
+
<!-- Bottom Spacer Row -->
|
|
260
|
+
<lido-cell layout="row"
|
|
261
|
+
id="row-spacer-bottom"
|
|
262
|
+
visible="true"
|
|
263
|
+
direction="row"
|
|
264
|
+
spacing="20px"
|
|
265
|
+
width="100%"
|
|
266
|
+
height="landscape.30%, portrait.50%"
|
|
267
|
+
></lido-cell>
|
|
268
|
+
|
|
269
|
+
<!-- Avatar and Shadow -->
|
|
270
|
+
<lido-cell
|
|
271
|
+
layout = "pos"
|
|
272
|
+
id="pos-avatar"
|
|
273
|
+
disableEdit="true"
|
|
274
|
+
value="pos1"
|
|
275
|
+
height="350px"
|
|
276
|
+
width="350px"
|
|
277
|
+
x="landscape.80%, portrait.60%"
|
|
278
|
+
y="landscape.60%, portrait.60%"
|
|
279
|
+
ariaHidden="true"
|
|
280
|
+
z="2"
|
|
281
|
+
bgColor="transparent"
|
|
282
|
+
type=""
|
|
283
|
+
visible="true"
|
|
284
|
+
audio=""
|
|
285
|
+
onTouch=""
|
|
286
|
+
onCorrect=""
|
|
287
|
+
onEntry="this.animation='leftToPlace 1.5s linear';"
|
|
288
|
+
>
|
|
289
|
+
<lido-avatar
|
|
290
|
+
id="lido-avatar"
|
|
291
|
+
disableEdit="true"
|
|
292
|
+
visible="true"
|
|
293
|
+
height="350px"
|
|
294
|
+
width="350px"
|
|
295
|
+
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp1/chimplecharacter.riv"
|
|
296
|
+
altText="chimpleCharacterRive"
|
|
297
|
+
bgColor="transparent"
|
|
298
|
+
></lido-avatar>
|
|
299
|
+
<lido-image
|
|
300
|
+
id="shadow-image"
|
|
301
|
+
disableEdit="true"
|
|
302
|
+
value="image1"
|
|
303
|
+
visible="true"
|
|
304
|
+
src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp1/Shadow.png"
|
|
305
|
+
bgColor="transparent"
|
|
306
|
+
width="186px"
|
|
307
|
+
height="40px"
|
|
308
|
+
x="77px"
|
|
309
|
+
y="302px"
|
|
310
|
+
altText="shadowImage"
|
|
311
|
+
></lido-image>
|
|
312
|
+
</lido-cell>
|
|
313
|
+
</lido-container>
|
|
314
314
|
</main>`;
|
|
315
315
|
return xml;
|
|
316
316
|
}
|