@pie-element/select-text 6.5.3-next.582 → 6.5.3-next.596
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/configure/lib/utils.js +4 -1
- package/configure/lib/utils.js.map +1 -1
- package/configure/package.json +4 -4
- package/controller/lib/index.js +1 -1
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +1 -1
- package/docs/demo/generate.js +28 -346
- package/docs/demo/session.js +18 -5
- package/lib/index.js +38 -2
- package/lib/index.js.map +1 -1
- package/lib/main.js +18 -4
- package/lib/main.js.map +1 -1
- package/lib/utils.js +4 -1
- package/lib/utils.js.map +1 -1
- package/module/configure.js +30 -15
- package/module/controller.js +6 -1
- package/module/demo.js +28 -346
- package/module/element.js +71 -32
- package/module/manifest.json +2 -2
- package/module/print-demo.js +28 -346
- package/module/print.js +56 -32
- package/package.json +3 -3
package/module/print-demo.js
CHANGED
|
@@ -59,7 +59,7 @@ const base = extras =>
|
|
|
59
59
|
Object.assign(
|
|
60
60
|
{},
|
|
61
61
|
{
|
|
62
|
-
highlightChoices: true,
|
|
62
|
+
// highlightChoices: true,
|
|
63
63
|
feedback: {
|
|
64
64
|
correct: {
|
|
65
65
|
type: 'default',
|
|
@@ -209,375 +209,57 @@ generate.htmlAscii = (id, element) => ({
|
|
|
209
209
|
|
|
210
210
|
generate.model = (id, element) => {
|
|
211
211
|
return Object.assign({}, { id, element }, base( {
|
|
212
|
+
// "id": "8a808081701d693801703174fb900421",
|
|
213
|
+
"teacherInstructions": "",
|
|
212
214
|
"partialScoring": true,
|
|
215
|
+
"prompt": "<p>Select the sentence from "The Gymnast" that <span class=\"relative-emphasis\">best</span> represents the theme.</p>",
|
|
216
|
+
"rationale": "<p>The final sentence of the passage best exemplifies the theme of the short story because Natasha's practice and determination finally pays off.</p>",
|
|
213
217
|
"tokens": [
|
|
214
218
|
{
|
|
215
|
-
"
|
|
219
|
+
"text": "She thought about what she had to do, struggling to rein in her wild, fearful thoughts.",
|
|
220
|
+
"end": 90,
|
|
216
221
|
"start": 3,
|
|
217
|
-
"
|
|
218
|
-
"text": "Our"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"correct": false,
|
|
222
|
-
"start": 7,
|
|
223
|
-
"end": 16,
|
|
224
|
-
"text": "challenge"
|
|
222
|
+
"correct": false
|
|
225
223
|
},
|
|
226
224
|
{
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"correct": false,
|
|
234
|
-
"start": 22,
|
|
235
|
-
"end": 30,
|
|
236
|
-
"text": "tomorrow"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"correct": false,
|
|
240
|
-
"start": 31,
|
|
241
|
-
"end": 34,
|
|
242
|
-
"text": "but"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"correct": false,
|
|
246
|
-
"start": 35,
|
|
247
|
-
"end": 40,
|
|
248
|
-
"text": "today"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"correct": false,
|
|
252
|
-
"start": 42,
|
|
253
|
-
"end": 44,
|
|
254
|
-
"text": "is"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"correct": false,
|
|
258
|
-
"start": 45,
|
|
259
|
-
"end": 47,
|
|
260
|
-
"text": "to"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"correct": false,
|
|
264
|
-
"start": 48,
|
|
265
|
-
"end": 58,
|
|
266
|
-
"text": "accomplish"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"correct": false,
|
|
270
|
-
"start": 59,
|
|
271
|
-
"end": 69,
|
|
272
|
-
"text": "objectives"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"correct": false,
|
|
276
|
-
"start": 70,
|
|
277
|
-
"end": 75,
|
|
278
|
-
"text": "which"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"correct": false,
|
|
282
|
-
"start": 76,
|
|
283
|
-
"end": 80,
|
|
284
|
-
"text": "have"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"correct": false,
|
|
288
|
-
"start": 81,
|
|
289
|
-
"end": 87,
|
|
290
|
-
"text": "eluded"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"correct": false,
|
|
294
|
-
"start": 88,
|
|
295
|
-
"end": 95,
|
|
296
|
-
"text": "mankind"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"correct": false,
|
|
300
|
-
"start": 96,
|
|
301
|
-
"end": 101,
|
|
302
|
-
"text": "since"
|
|
225
|
+
"start": 449,
|
|
226
|
+
"end": 585,
|
|
227
|
+
"text": "Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.",
|
|
228
|
+
"correct": false
|
|
303
229
|
},
|
|
304
230
|
{
|
|
231
|
+
"end": 627,
|
|
305
232
|
"correct": false,
|
|
306
|
-
"
|
|
307
|
-
"
|
|
308
|
-
"text": "the"
|
|
233
|
+
"text": "At last Natasha's moment arrived.",
|
|
234
|
+
"start": 594
|
|
309
235
|
},
|
|
310
236
|
{
|
|
237
|
+
"end": 743,
|
|
238
|
+
"text": "The faces of past giants of gymnastics swam before her mind's eye, now razor–sharp with fierce determination.",
|
|
311
239
|
"correct": false,
|
|
312
|
-
"start":
|
|
313
|
-
"end": 115,
|
|
314
|
-
"text": "beginning"
|
|
240
|
+
"start": 628
|
|
315
241
|
},
|
|
316
242
|
{
|
|
243
|
+
"text": "Suddenly, the din of the gymnasium was silent to her.",
|
|
244
|
+
"end": 997,
|
|
317
245
|
"correct": false,
|
|
318
|
-
"start":
|
|
319
|
-
"end": 118,
|
|
320
|
-
"text": "of"
|
|
246
|
+
"start": 944
|
|
321
247
|
},
|
|
322
248
|
{
|
|
249
|
+
"end": 1087,
|
|
250
|
+
"start": 998,
|
|
323
251
|
"correct": false,
|
|
324
|
-
"
|
|
325
|
-
"end": 123,
|
|
326
|
-
"text": "time"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"correct": false,
|
|
330
|
-
"start": 125,
|
|
331
|
-
"end": 127,
|
|
332
|
-
"text": "We"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"correct": false,
|
|
336
|
-
"start": 128,
|
|
337
|
-
"end": 132,
|
|
338
|
-
"text": "must"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"correct": false,
|
|
342
|
-
"start": 133,
|
|
343
|
-
"end": 138,
|
|
344
|
-
"text": "bring"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"correct": false,
|
|
348
|
-
"start": 139,
|
|
349
|
-
"end": 144,
|
|
350
|
-
"text": "equal"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"correct": false,
|
|
354
|
-
"start": 145,
|
|
355
|
-
"end": 152,
|
|
356
|
-
"text": "justice"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"correct": false,
|
|
360
|
-
"start": 153,
|
|
361
|
-
"end": 155,
|
|
362
|
-
"text": "to"
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"correct": false,
|
|
366
|
-
"start": 156,
|
|
367
|
-
"end": 159,
|
|
368
|
-
"text": "all"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"correct": false,
|
|
372
|
-
"start": 160,
|
|
373
|
-
"end": 163,
|
|
374
|
-
"text": "our"
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
"correct": false,
|
|
378
|
-
"start": 164,
|
|
379
|
-
"end": 172,
|
|
380
|
-
"text": "citizens"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"correct": false,
|
|
384
|
-
"start": 174,
|
|
385
|
-
"end": 176,
|
|
386
|
-
"text": "We"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
"correct": false,
|
|
390
|
-
"start": 177,
|
|
391
|
-
"end": 181,
|
|
392
|
-
"text": "must"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"correct": false,
|
|
396
|
-
"start": 182,
|
|
397
|
-
"end": 189,
|
|
398
|
-
"text": "abolish"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"correct": false,
|
|
402
|
-
"start": 190,
|
|
403
|
-
"end": 195,
|
|
404
|
-
"text": "human"
|
|
252
|
+
"text": "Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her."
|
|
405
253
|
},
|
|
406
254
|
{
|
|
407
255
|
"correct": true,
|
|
408
|
-
"start":
|
|
409
|
-
"end":
|
|
410
|
-
"text": "
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"correct": false,
|
|
414
|
-
"start": 205,
|
|
415
|
-
"end": 207,
|
|
416
|
-
"text": "We"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"correct": false,
|
|
420
|
-
"start": 208,
|
|
421
|
-
"end": 212,
|
|
422
|
-
"text": "must"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"correct": false,
|
|
426
|
-
"start": 213,
|
|
427
|
-
"end": 222,
|
|
428
|
-
"text": "eradicate"
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"correct": false,
|
|
432
|
-
"start": 223,
|
|
433
|
-
"end": 230,
|
|
434
|
-
"text": "killing"
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"correct": false,
|
|
438
|
-
"start": 231,
|
|
439
|
-
"end": 234,
|
|
440
|
-
"text": "and"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"correct": false,
|
|
444
|
-
"start": 235,
|
|
445
|
-
"end": 244,
|
|
446
|
-
"text": "crippling"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"correct": true,
|
|
450
|
-
"start": 245,
|
|
451
|
-
"end": 252,
|
|
452
|
-
"text": "disease"
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"correct": false,
|
|
456
|
-
"start": 253,
|
|
457
|
-
"end": 256,
|
|
458
|
-
"text": "and"
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"correct": false,
|
|
462
|
-
"start": 257,
|
|
463
|
-
"end": 265,
|
|
464
|
-
"text": "lengthen"
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"correct": false,
|
|
468
|
-
"start": 266,
|
|
469
|
-
"end": 269,
|
|
470
|
-
"text": "the"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"correct": false,
|
|
474
|
-
"start": 270,
|
|
475
|
-
"end": 274,
|
|
476
|
-
"text": "span"
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"correct": false,
|
|
480
|
-
"start": 275,
|
|
481
|
-
"end": 277,
|
|
482
|
-
"text": "of"
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
"correct": false,
|
|
486
|
-
"start": 278,
|
|
487
|
-
"end": 282,
|
|
488
|
-
"text": "life"
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
"correct": false,
|
|
492
|
-
"start": 283,
|
|
493
|
-
"end": 285,
|
|
494
|
-
"text": "to"
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"correct": false,
|
|
498
|
-
"start": 286,
|
|
499
|
-
"end": 289,
|
|
500
|
-
"text": "100"
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
"correct": false,
|
|
504
|
-
"start": 290,
|
|
505
|
-
"end": 292,
|
|
506
|
-
"text": "or"
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
"correct": false,
|
|
510
|
-
"start": 293,
|
|
511
|
-
"end": 296,
|
|
512
|
-
"text": "200"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"correct": false,
|
|
516
|
-
"start": 297,
|
|
517
|
-
"end": 302,
|
|
518
|
-
"text": "years"
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"correct": false,
|
|
522
|
-
"start": 304,
|
|
523
|
-
"end": 306,
|
|
524
|
-
"text": "We"
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
"correct": false,
|
|
528
|
-
"start": 307,
|
|
529
|
-
"end": 311,
|
|
530
|
-
"text": "must"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
"correct": false,
|
|
534
|
-
"start": 312,
|
|
535
|
-
"end": 321,
|
|
536
|
-
"text": "eliminate"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
"correct": true,
|
|
540
|
-
"start": 322,
|
|
541
|
-
"end": 332,
|
|
542
|
-
"text": "illiteracy"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"correct": false,
|
|
546
|
-
"start": 333,
|
|
547
|
-
"end": 338,
|
|
548
|
-
"text": "among"
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"correct": false,
|
|
552
|
-
"start": 339,
|
|
553
|
-
"end": 342,
|
|
554
|
-
"text": "all"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"correct": false,
|
|
558
|
-
"start": 343,
|
|
559
|
-
"end": 345,
|
|
560
|
-
"text": "of"
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
"correct": false,
|
|
564
|
-
"start": 346,
|
|
565
|
-
"end": 349,
|
|
566
|
-
"text": "our"
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
"correct": false,
|
|
570
|
-
"start": 350,
|
|
571
|
-
"end": 356,
|
|
572
|
-
"text": "people"
|
|
256
|
+
"start": 1088,
|
|
257
|
+
"end": 1225,
|
|
258
|
+
"text": "Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10."
|
|
573
259
|
}
|
|
574
260
|
],
|
|
575
|
-
// "id": "0",
|
|
576
|
-
"text": "<p>Our challenge, not tomorrow but today, is to accomplish objectives which have eluded mankind since the beginning of time. We must bring equal justice to all our citizens. We must abolish human poverty. We must eradicate killing and crippling disease and lengthen the span of life to 100 or 200 years. We must eliminate illiteracy among all of our people.</p>\n",
|
|
577
|
-
"prompt": "<p>Select the <span class=\"relative-emphasis\">three</span> words from below that specifically describe the “enemies” which Johnson wants to eliminate.</p>",
|
|
578
|
-
"rationale": "<p>In paragraph 6, Johnson refers to the “ancient enemies”—which he defines as poverty, disease, illiteracy, strife, and bigotry. In paragraph 3, he talks about this idea by explaining that he wants to “accomplish objectives which have eluded mankind;” that is, to eliminate these enemies.</p>",
|
|
579
261
|
// "element": "select-text",
|
|
580
|
-
"
|
|
262
|
+
"text": "<p>She thought about what she had to do, struggling to rein in her wild, fearful thoughts. Coach Cummings always said that an undisciplined mind never scored a perfect 10. Natasha wanted to please her Coach, yet sometimes his approval wasn't as exciting as his anger. The gymnasts were unanimous about one thing: Coach Cummings's fits of disapproving rage were much more humorous to witness than his infrequent, backslapping moments of high praise. Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.</p>\n\n<p>At last Natasha's moment arrived. The faces of past giants of gymnastics swam before her mind's eye, now razor–sharp with fierce determination. \"I am talented. I am not afraid. I will make a perfect 10,\" she spoke aloud to herself, as she approached the mat, dusted her hands with chalk to prevent slippage, and returned to her starting point. Suddenly, the din of the gymnasium was silent to her. Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her. Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.</p>\n"
|
|
581
263
|
} ));
|
|
582
264
|
};
|
|
583
265
|
|