2014-06-24 03:51:54 +08:00
|
|
|
<template name="whiteboard">
|
2016-02-23 07:24:03 +08:00
|
|
|
<div id="{{id}}" class="component">
|
2015-11-18 01:01:27 +08:00
|
|
|
{{#if getCurrentSlide}}
|
2015-12-04 01:03:04 +08:00
|
|
|
{{>slide}}
|
|
|
|
{{forceSlideShow}}
|
2015-12-04 07:04:17 +08:00
|
|
|
{{else}}
|
|
|
|
{{clearSlide}}
|
2015-11-18 01:01:27 +08:00
|
|
|
{{/if}}
|
2015-12-04 01:03:04 +08:00
|
|
|
|
2015-05-28 01:29:59 +08:00
|
|
|
<div id="whiteboard-container" class="{{whiteboardSize}}">
|
2015-05-19 23:35:12 +08:00
|
|
|
<div id="whiteboard-paper">
|
|
|
|
</div>
|
2015-11-19 02:05:55 +08:00
|
|
|
<!-- TODO: Move this to the whiteboardControls -->
|
2015-11-18 02:53:01 +08:00
|
|
|
<div class="FABContainer {{#unless hasNoPresentation}}noPresentation{{/unless}}">
|
2015-11-02 07:34:49 +08:00
|
|
|
<button type="submit" class="FABTriggerButton">
|
|
|
|
<i class="ion-android-hand"></i>
|
2015-10-06 01:02:52 +08:00
|
|
|
</button>
|
2016-03-01 04:58:19 +08:00
|
|
|
{{#each emojiIcons}}
|
|
|
|
<button type="submit" value={{name}} class="{{name}}EmojiButton {{#if equals getCurrentUserEmojiStatus name}}activeEmojiButton{{else}}inactiveEmojiButton{{/if}}">
|
|
|
|
{{> icon name=icon size="50"}}
|
|
|
|
</button>
|
|
|
|
{{/each}}
|
2015-10-06 01:02:52 +08:00
|
|
|
</div>
|
2015-06-04 05:26:52 +08:00
|
|
|
{{#if isMobile}}
|
2015-06-11 03:10:06 +08:00
|
|
|
{{> makeButton btn_class="soaringButton fullscreenButton whiteboardFullscreenButton" i_class="ion-arrow-expand"}}
|
2015-06-04 05:26:52 +08:00
|
|
|
{{/if}}
|
2015-02-24 04:56:10 +08:00
|
|
|
</div>
|
2015-11-30 03:45:08 +08:00
|
|
|
{{#if isCurrentUserPresenter}}
|
|
|
|
{{> whiteboardControls}}
|
|
|
|
{{/if}}
|
2015-07-21 09:23:42 +08:00
|
|
|
{{#if isPollStarted}}
|
2015-09-09 07:57:39 +08:00
|
|
|
{{> polling}}
|
2015-07-21 09:23:42 +08:00
|
|
|
{{/if}}
|
2015-05-19 23:35:12 +08:00
|
|
|
</div>
|
2014-06-24 03:51:54 +08:00
|
|
|
</template>
|
2015-09-09 07:57:39 +08:00
|
|
|
|
2015-11-19 02:05:55 +08:00
|
|
|
<template name="whiteboardControls">
|
|
|
|
<div id="whiteboard-controls">
|
|
|
|
<div class="whiteboard-buttons-left">
|
2015-11-19 06:47:30 +08:00
|
|
|
<!-- TODO: Adjust the presenter uploader for mobile views on iOS devices
|
|
|
|
you cant upload PDFs, only images from camera/gallery -->
|
|
|
|
{{#unless isMobile}}
|
|
|
|
{{> presenterUploaderControl}}
|
|
|
|
{{/unless}}
|
2015-11-19 02:05:55 +08:00
|
|
|
</div>
|
2015-11-30 03:45:08 +08:00
|
|
|
<div class="whiteboard-buttons-right">
|
|
|
|
</div>
|
2015-11-19 02:05:55 +08:00
|
|
|
<div class="whiteboard-buttons-center">
|
|
|
|
{{#if isCurrentUserPresenter}}
|
|
|
|
<div class="whiteboard-buttons-slide">
|
|
|
|
{{> makeButton btn_class="prev" i_class="ion-arrow-left-a" rel="tooltip" data_placement="top" title="Previous"}}
|
|
|
|
<span class="current">
|
|
|
|
{{presentationProgress}}
|
|
|
|
</span>
|
|
|
|
{{> makeButton btn_class="next" i_class="ion-arrow-right-a" rel="tooltip" data_placement="top" title="Next"}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2015-09-09 07:57:39 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2015-11-19 02:05:55 +08:00
|
|
|
<template name="presenterUploaderControl">
|
2015-11-19 06:47:30 +08:00
|
|
|
{{#if isCurrentUserPresenter}}
|
2015-11-19 02:05:55 +08:00
|
|
|
<div class="presenter-uploader-control {{#if isOpen}}is-open{{/if}}">
|
|
|
|
<div class="presenter-uploader-container">
|
|
|
|
<ul class="presenter-uploader-file-list">
|
2015-11-19 06:47:30 +08:00
|
|
|
{{#each files}}
|
|
|
|
{{> presenterUploaderControlFileListItem}}
|
|
|
|
{{/each}}
|
|
|
|
{{#each presentations}}
|
|
|
|
{{> presenterUploaderControlPresentationListItem}}
|
|
|
|
{{/each}}
|
2015-11-19 02:05:55 +08:00
|
|
|
</ul>
|
2015-11-19 06:47:30 +08:00
|
|
|
<div class="presenter-uploader-dropzone" data-dropzone>
|
|
|
|
<input type="file" class="presenter-uploader-dropzone-fileinput" multiple />
|
2015-11-19 02:05:55 +08:00
|
|
|
<i class="presenter-uploader-dropzone-icon ion-archive"></i>
|
|
|
|
<span class="presenter-uploader-dropzone-label">Drop files here <br/>or click to upload</span>
|
|
|
|
</div>
|
2015-11-30 03:45:08 +08:00
|
|
|
{{> makeButton btn_class="presenter-uploader-control-btn js-close" i_class="ion-ios-close-outline"}}
|
2015-11-19 02:05:55 +08:00
|
|
|
<div class="presenter-uploader-tip">
|
2015-11-30 03:45:08 +08:00
|
|
|
UPLOAD ANY OFFICE DOCUMENT OR PORTABLE DOCUMENT FORMAT (PDF) FILE.
|
2015-11-19 06:47:30 +08:00
|
|
|
<br/>
|
2015-11-30 03:45:08 +08:00
|
|
|
FOR BEST RESULTS UPLOAD PDF.
|
2015-11-19 02:05:55 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-11-30 03:45:08 +08:00
|
|
|
{{> makeButton btn_class="presenter-uploader-control-btn js-open" i_class="ion-ios-upload-outline"}}
|
2015-11-19 02:05:55 +08:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</template>
|
|
|
|
|
2015-11-19 06:47:30 +08:00
|
|
|
<template name="presenterUploaderControlFileListItem">
|
|
|
|
<li class="presenter-uploader-file-item is-uploading">
|
|
|
|
<span class="presenter-uploader-file-item-name">
|
|
|
|
{{name}}
|
|
|
|
</span>
|
|
|
|
<span class="presenter-uploader-file-item-progress">
|
|
|
|
{{percUploaded}}%
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="presenterUploaderControlPresentationListItem">
|
|
|
|
<li class="presenter-uploader-file-item {{#if current}}current{{/if}}">
|
|
|
|
<span class="presenter-uploader-file-item-name" data-action-show>
|
|
|
|
{{name}}
|
|
|
|
</span>
|
|
|
|
<span class="presenter-uploader-file-item-actions">
|
|
|
|
{{#unless current}}
|
|
|
|
<i class="ion-ios-eye-outline" data-action-show></i>
|
|
|
|
{{/unless}}
|
|
|
|
<i class="ion-ios-trash-outline" data-action-delete></i>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</template>
|