- Initialize cam
- attach to an element in the DOM
- Take the first snap when load event fires
2: Do stuff with the result https://github.com/kabk/go-theses-17-manus-nijhoff/blob/8b09576a614fcb4bb7e11f15efdb92ebe905f278/src/js/cam.js
| Request: | |
| { | |
| "SHOULD": [ | |
| { | |
| "MATCH": { | |
| "predicted_lexicology_v1_1": { | |
| "id": "32e195f0-f5c9-4646-b76c-b4a68cc11be2", | |
| "value": "[50:100]" | |
| } |
| <template> | |
| <div class="youtube" :class="{'youtube--show': noframed}"> | |
| <youtube :video-id='id' @ready="ready"></youtube> | |
| </div> | |
| </template> | |
| <script> | |
| import { getIdFromURL } from 'vue-youtube-embed' | |
| import noframe from 'reframe.js' |
2: Do stuff with the result https://github.com/kabk/go-theses-17-manus-nijhoff/blob/8b09576a614fcb4bb7e11f15efdb92ebe905f278/src/js/cam.js
Landing page:
Program page:
| https://gist.github.com/jed/6147872 | |
| # in gulpfile, change the proxies to https://yourdomain.$(whoami):port to proxy | |
| http-server -S -C ssl.crt -K ssl.key -p 8888 |
| intitle:"index.of" (ttf|otf) FONTNAMEHERE -html -php -aps -cf -jsp |
| var $ = document.querySelector.bind(document); | |
| // Once the user clicks a custom fullscreen button | |
| $(playButtonClass).addEventListener('click', function(){ | |
| // Play video and go fullscreen | |
| player.playVideo(); | |
| var playerElement = $(playerWrapperClass); | |
| var requestFullScreen = playerElement.requestFullScreen || playerElement.mozRequestFullScreen || playerElement.webkitRequestFullScreen; | |
| if (requestFullScreen) { |
| http://gallery.glebovnaproductions.com/ilovemylife/ |
| http://gallery.glebovnaproductions.com/ilovemylife/ |
| $(function(){ | |
| var everything = document.getElementById('everything'); | |
| $(window) | |
| .on('resize', function(){ | |
| var scale = window.innerHeight / 750; | |
| everything.style.transform = 'scale(' + scale + ')'; | |
| }) | |
| .trigger('resize'); | |
| }); |