Download pool/shard003/JavaScript/0019019_videoCall.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 731 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019019_videoCall.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard003/JavaScript/0019019_videoCall.js
-
curl -L -o 0019019_videoCall.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019019_videoCall.js
731 Bytes
| /* globals LivechatVideoCall */ | |
| Template.videoCall.helpers({ | |
| visible() { | |
| if (Template.instance().showToolbar.get()) { | |
| return 'visible'; | |
| } | |
| } | |
| }); | |
| Template.videoCall.events({ | |
| 'click .end-call'() { | |
| LivechatVideoCall.finish(); | |
| }, | |
| 'click .video-overlay'(e, instance) { | |
| if (instance.timeout) { | |
| clearTimeout(instance.timeout); | |
| } | |
| instance.showToolbar.set(!instance.showToolbar.get()); | |
| if (instance.showToolbar.get()) { | |
| instance.timeout = setTimeout(() => { | |
| instance.showToolbar.set(false); | |
| }, 3000); | |
| } | |
| } | |
| }); | |
| Template.videoCall.onCreated(function() { | |
| this.timeout = null; | |
| this.showToolbar = new ReactiveVar(true); | |
| this.timeout = setTimeout(() => { | |
| this.showToolbar.set(false); | |
| }, 10000); | |
| }); | |