-
Notifications
You must be signed in to change notification settings - Fork 832
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work for #5551 - Implement TOC navigation - reanimated timer panel
- Loading branch information
Showing
7 changed files
with
43 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<script type="text/html" id="survey-timerpanel"> | ||
<!-- ko if: timerModel.showTimerAsClock --> | ||
<div data-bind="css: timerModel.rootCss"> | ||
<!-- ko if: timerModel.showProgress --> | ||
<svg data-bind="css: timerModel.getProgressCss(), style: { strokeDasharray: 440, strokeDashoffset: -440 * timerModel.progress }"> | ||
<!-- ko if: showTimerAsClock --> | ||
<div data-bind="css: rootCss"> | ||
<!-- ko if: showProgress --> | ||
<svg data-bind="css: getProgressCss(), style: { strokeDasharray: 440, strokeDashoffset: -440 * progress }"> | ||
<use data-bind="attr:{'xlink:href': '#icon-timercircle'}" xlink:href=''></use> | ||
</svg> | ||
<!-- /ko --> | ||
<div data-bind="css: timerModel.textContainerCss"> | ||
<span data-bind="css: timerModel.majorTextCss, text: timerModel.clockMajorText"></span> | ||
<!-- ko if: !!timerModel.minorTextCss --> | ||
<span data-bind="css: timerModel.minorTextCss, text: timerModel.clockMinorText"></span> | ||
<div data-bind="css: textContainerCss"> | ||
<span data-bind="css: majorTextCss, text: clockMajorText"></span> | ||
<!-- ko if: !!minorTextCss --> | ||
<span data-bind="css: minorTextCss, text: clockMinorText"></span> | ||
<!-- /ko --> | ||
</div> | ||
</div> | ||
<!-- /ko --> | ||
<!-- ko if: !timerModel.showTimerAsClock --> | ||
<div data-bind="css: timerModel.survey.getCss().timerRoot, text: timerModel.text"></div> | ||
<!-- ko if: !showTimerAsClock --> | ||
<div data-bind="css: survey.getCss().timerRoot, text: text"></div> | ||
<!--/ko --> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters