Last active
October 31, 2018 15:54
-
-
Save luislobo14rap/93df6e65c4ad27d86a6a7a64787cd8ea to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // lightcase-default-options.js v1 | |
| $('.is-lightcase').lightcase({ | |
| 'video': { | |
| 'width': 16000, | |
| 'height': 9000, | |
| 'poster': '', | |
| 'preload': 'auto', | |
| 'controls': true, | |
| 'autobuffer': true, | |
| 'autoplay': true, | |
| 'loop': false | |
| } | |
| }); |
This file contains hidden or 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
| // lightcase-settings.js v1.1.1 | |
| $(function() { | |
| $('.is-lightcase').on('click', function() { | |
| let waitIframe = setInterval(function() { | |
| if ($('.lightcase-contentInner').children().length == 1) { | |
| clearInterval(waitIframe); | |
| let thisVideo = $('.lightcase-contentInner').children(); | |
| thisVideo.attr({ | |
| // youtube | |
| 'allow': 'autoplay; encrypted-media', | |
| 'allowfullscreen': 'allowfullscreen', | |
| // html5 | |
| 'controls': 'controls', | |
| 'controlsList': 'nodownload' | |
| }); | |
| thisVideo.on('click', function(){ | |
| let thisVideo = $(this)[0]; | |
| if( thisVideo.paused ){ | |
| thisVideo.play(); | |
| }else{ | |
| thisVideo.pause(); | |
| }; | |
| }); | |
| }; | |
| }, 100); | |
| }); | |
| }); |
This file contains hidden or 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
| // lightcase-settings.min.js v1.1.1 | |
| $(function(){$('.is-lightcase').on('click',function(){let waitIframe=setInterval(function(){if($('.lightcase-contentInner').children().length==1){clearInterval(waitIframe);let thisVideo=$('.lightcase-contentInner').children();thisVideo.attr({'allow':'autoplay; encrypted-media','allowfullscreen':'allowfullscreen','controls':'controls','controlsList':'nodownload'});thisVideo.on('click',function(){let thisVideo=$(this)[0];if(thisVideo.paused){thisVideo.play()}else{thisVideo.pause()}})}},100)})}) |
This file contains hidden or 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
| Inline {"showSequenceInfo":false} | |
| Ajax Form {"showSequenceInfo":false,"type":"ajax","ajax":{"width":16000},"onFinish":{}} | |
| Iframe {"showSequenceInfo":false,"fixedRatio":false} | |
| Swf {"showSequenceInfo":false} | |
| HTML5 video {"video":{"width":16000,"height":9000,"poster":"","preload":"auto","controls":true,"autobuffer":true,"autoplay":true,"loop":false}} | |
| Vimeo {"showSequenceInfo":false,"iframe":{"width":16000,"height":9000,"allowfullscreen":1}} | |
| Youtube video {"showSequenceInfo":false,"iframe":{"width":16000,"height":9000,"frameborder":0}} | |
| // href="//www.youtube.com/embed/XXXXXXXXXXX?autoplay=1" | |
| // href="//www.youtube.com/embed/XXXXXXXXXXX?start=0&end=278" | |
| // href="//www.youtube.com/embed/XXXXXXXXXXX?controls=0" | |
| Google Maps {"showSequenceInfo":false,"inline":{"width":16000,"height":9000},"swipe":false,"onFinish":{},"onResize":{},"onCleanup":{}} | |
| Not found... {"showSequenceInfo":false} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment