Rotate scale comments by reading time
Add an automatic comment interval (now the default) that keeps each comment on stage depending on its length: 2.5 s plus 15 characters per second, between 5 and 30 seconds. Fixed intervals remain selectable. Next, previous and resume give the current comment its full time again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6912d045cf
commit
05ff5967e3
6 files changed
+68
-25
No files matched your search
@@ -56,11 +56,18 @@ class Slide extends Entity
|
||||
public const QUIZ_TIME_LIMITS = [0, 10, 15, 20, 30, 45, 60, 90, 120, 180, 300];
|
||||
|
||||
/**
|
||||
* Selectable seconds per comment when the comments of a scale rotate in the presentation.
|
||||
* Comment interval "automatic": the presentation derives the time per comment
|
||||
* from its length (reading speed), see `Comments.delay()` in plenario.js.
|
||||
*/
|
||||
public const COMMENT_INTERVAL_AUTO = 0;
|
||||
|
||||
/**
|
||||
* Selectable seconds per comment when the comments of a scale rotate in the presentation
|
||||
* (COMMENT_INTERVAL_AUTO = depending on the length of each comment).
|
||||
*
|
||||
* @var list<int>
|
||||
*/
|
||||
public const COMMENT_INTERVALS = [3, 5, 8, 10, 15, 20, 30, 45, 60];
|
||||
public const COMMENT_INTERVALS = [self::COMMENT_INTERVAL_AUTO, 3, 5, 8, 10, 15, 20, 30, 45, 60];
|
||||
|
||||
/**
|
||||
* Q&A stages, see qaStage(): participants submit questions, then upvote
|
||||
@@ -94,10 +101,10 @@ class Slide extends Entity
|
||||
// private: internal feedback, ratings only visible in the admin area (never on the stage)
|
||||
// comments: optional comment field, comments rotate in the presentation (unless private)
|
||||
// comment_ratings: show the rating next to each comment in the presentation
|
||||
// comment_interval: seconds per comment while they rotate (one of COMMENT_INTERVALS)
|
||||
// comment_interval: seconds per comment while they rotate (one of COMMENT_INTERVALS, 0 = by length)
|
||||
self::TYPE_SCALE => [
|
||||
'scale_min' => 1, 'scale_max' => 5, 'min_label' => '', 'max_label' => '', 'private' => false,
|
||||
'comments' => false, 'comment_ratings' => false, 'comment_interval' => 8,
|
||||
'comments' => false, 'comment_ratings' => false, 'comment_interval' => self::COMMENT_INTERVAL_AUTO,
|
||||
],
|
||||
self::TYPE_CONTENT => [],
|
||||
// time_limit in seconds, 0 = no limit (presenter ends the quiz)
|
||||
|
||||
@@ -22,7 +22,7 @@ use Cake\ORM\Locator\LocatorAwareTrait;
|
||||
* 'comments' => [['id', 'text', 'value' (int|null)]] oldest first (only with the comment field, else [];
|
||||
* 'value' is null unless the setting comment_ratings is on;
|
||||
* presentation only: participants never get results of scale slides, see PollStateService);
|
||||
* 'commentInterval' => int seconds per comment while they rotate;
|
||||
* 'commentInterval' => int seconds per comment while they rotate, 0 = depending on its length;
|
||||
* open/scale with 'private' (anonymous/internal feedback): contents are included for the
|
||||
* presenter/embed, which start with the results hidden and may show them on demand;
|
||||
* participants never get results of these slides, the public PDF strips them (withoutContents())
|
||||
|
||||
Reference in new issue
Block a user