aboutsummaryrefslogtreecommitdiffstats
path: root/docs/dist/docs.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-10-05 16:33:26 +1100
committerSam Potts <me@sampotts.me>2015-10-05 16:33:26 +1100
commitb164a2f3fb6047dda880059801d88d4218b218b2 (patch)
tree82f1a12fa16d3b5ac725d1350cada3459134c95f /docs/dist/docs.js
parent262c9f9e13e2430de7abfc11e871fda91c32f3c1 (diff)
downloadplyr-b164a2f3fb6047dda880059801d88d4218b218b2.tar.lz
plyr-b164a2f3fb6047dda880059801d88d4218b218b2.tar.xz
plyr-b164a2f3fb6047dda880059801d88d4218b218b2.zip
Setup improvements, player -> plyr, docs (WIP)
Diffstat (limited to 'docs/dist/docs.js')
-rw-r--r--docs/dist/docs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/dist/docs.js b/docs/dist/docs.js
index b034a211..4376d476 100644
--- a/docs/dist/docs.js
+++ b/docs/dist/docs.js
@@ -1 +1 @@
-"document"in self&&("classList"in document.createElement("_")?!function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var s=function(e){var s=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,t=arguments.length;for(n=0;t>n;n++)e=arguments[n],s.call(this,e)}};s("add"),s("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,s){return 1 in arguments&&!this.contains(e)==!s?s:n.call(this,e)}}e=null}():!function(e){"use strict";if("Element"in e){var s="classList",n="prototype",t=e.Element[n],a=Object,r=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array[n].indexOf||function(e){for(var s=0,n=this.length;n>s;s++)if(s in this&&this[s]===e)return s;return-1},l=function(e,s){this.name=e,this.code=DOMException[e],this.message=s},i=function(e,s){if(""===s)throw new l("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(s))throw new l("INVALID_CHARACTER_ERR","String contains an invalid character");return o.call(e,s)},c=function(e){for(var s=r.call(e.getAttribute("class")||""),n=s?s.split(/\s+/):[],t=0,a=n.length;a>t;t++)this.push(n[t]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},u=c[n]=[],b=function(){return new c(this)};if(l[n]=Error[n],u.item=function(e){return this[e]||null},u.contains=function(e){return e+="",-1!==i(this,e)},u.add=function(){var e,s=arguments,n=0,t=s.length,a=!1;do e=s[n]+"",-1===i(this,e)&&(this.push(e),a=!0);while(++n<t);a&&this._updateClassName()},u.remove=function(){var e,s,n=arguments,t=0,a=n.length,r=!1;do for(e=n[t]+"",s=i(this,e);-1!==s;)this.splice(s,1),r=!0,s=i(this,e);while(++t<a);r&&this._updateClassName()},u.toggle=function(e,s){e+="";var n=this.contains(e),t=n?s!==!0&&"remove":s!==!1&&"add";return t&&this[t](e),s===!0||s===!1?s:!n},u.toString=function(){return this.join(" ")},a.defineProperty){var p={get:b,enumerable:!0,configurable:!0};try{a.defineProperty(t,s,p)}catch(g){-2146823252===g.number&&(p.enumerable=!1,a.defineProperty(t,s,p))}}else a[n].__defineGetter__&&t.__defineGetter__(s,b)}}(self));var templates={};templates.controls=new Hogan.Template({code:function(e,s,n){var t=this;return t.b(n=n||""),t.b('<div class="player-controls">'),t.b("\n"+n),t.b(' <div class="player-progress">'),t.b("\n"+n),t.b(' <label for="seek{id}" class="sr-only">Seek</label>'),t.b("\n"+n),t.b(' <input id="seek{id}" class="player-progress-seek" type="range" min="0" max="100" step="0.5" value="0" data-player="seek">'),t.b("\n"+n),t.b(' <progress class="player-progress-played" max="100" value="0">'),t.b("\n"+n),t.b(" <span>0</span>% played"),t.b("\n"+n),t.b(" </progress>"),t.b("\n"+n),t.b(' <progress class="player-progress-buffer" max="100" value="0">'),t.b("\n"+n),t.b(" <span>0</span>% buffered"),t.b("\n"+n),t.b(" </progress>"),t.b("\n"+n),t.b(" </div>"),t.b("\n"+n),t.b(' <span class="player-controls-left">'),t.b("\n"+n),t.b(' <button type="button" data-player="restart">'),t.b("\n"+n),t.b(' <svg><use xlink:href="#icon-restart"></use></svg>'),t.b("\n"+n),t.b(' <span class="sr-only">Restart</span>'),t.b("\n"+n),t.b(" </button>"),t.b("\n"+n),t.b(' <button type="button" data-player="rewind">'),t.b("\n"+n),t.b(' <svg><use xlink:href="#icon-rewind"></use></svg>'),t.b("\n"+n),t.b(' <span class="sr-only">Rewind {seektime} secs</span>'),t.b("\n"+n),t.b(" </button>"),t.b("\n"+n),t.b(' <button type="button" data-player="play">'),t.b("\n"+n),t.b(' <svg><use xlink:href="#icon-play"></use></svg>'),t.b("\n"+n),t.b(' <span class="sr-only">Play</span>'),t.b("\n"+n),t.b(" </button>"),t.b("\n"+n),t.b(' <button type="button" data-player="pause">'),t.b("\n"+n),t.b(' <svg><use xlink:href="#icon-pause"></use></svg>'),t.b("\n"+n),t.b(' <span class="sr-only">Pause</span>'),t.b("\n"+n),t.b(" </button>"),t.b("\n"+n),t.b(' <button type="button" data-player="fast-forward">'),t.b("\n"+n),t.b(' <svg><use xlink:href="#icon-fast-forward"></use></svg>'),t.b("\n"+n),t.b(' <span class="sr-only">Forward {seektime} secs</span>'),t.b("\n"+n),t.b(" </button>"),t.b("\n"+n),t.b(' <span class="player-time">'),t.b("\n"+n),t.b(' <span class="sr-only">Current time</span>'),t.b("\n"+n),t.b(' <span class="player-current-time">00:00</span>'),t.b("\n"+n),t.b(" </span>"),t.b("\n"+n),t.b(' <span class="player-time">'),t.b("\n"+n),t.b(' <span class="sr-only">Duration</span>'),t.b("\n"+n),t.b(' <span class="player-duration">00:00</span>'),t.b("\n"+n),t.b(" </span>"),t.b("\n"+n),t.b(" </span>"),t.b("\n"+n),t.b(' <span class="player-controls-right">'),t.b("\n"+n),t.b(' <button type="button" data-player="mute">'),t.b("\n"+n),t.b(' <svg class="icon-muted"><use xlink:href="#icon-muted"></use></svg>'),t.b("\n"+n),t.b(' <svg><use xlink:href="#icon-volume"></use></svg>'),t.b("\n"+n),t.b(' <span class="sr-only">Toggle Mute</span>'),t.b("\n"+n),t.b(" </button>"),t.b("\n"+n),t.b(' <label for="volume{id}" class="sr-only">Volume</label>'),t.b("\n"+n),t.b(' <input id="volume{id}" class="player-volume" type="range" min="0" max="10" step="0.5" value="0" data-player="volume">'),t.b("\n"+n),t.b(' <button type="button" data-player="captions">'),t.b("\n"+n),t.b(' <svg class="icon-captions-on"><use xlink:href="#icon-captions-on"></use></svg>'),t.b("\n"+n),t.b(' <svg><use xlink:href="#icon-captions-off"></use></svg>'),t.b("\n"+n),t.b(' <span class="sr-only">Toggle Captions</span>'),t.b("\n"+n),t.b(" </button>"),t.b("\n"+n),t.b(' <button type="button" data-player="fullscreen">'),t.b("\n"+n),t.b(' <svg class="icon-exit-fullscreen"><use xlink:href="#icon-exit-fullscreen"></use></svg>'),t.b("\n"+n),t.b(' <svg><use xlink:href="#icon-enter-fullscreen"></use></svg>'),t.b("\n"+n),t.b(' <span class="sr-only">Toggle Fullscreen</span>'),t.b("\n"+n),t.b(" </button>"),t.b("\n"+n),t.b(" </span>"),t.b("\n"+n),t.b("</div>"),t.fl()},partials:{},subs:{}}),plyr.setup({debug:!0,title:"Video demo",tooltips:!0,captions:{defaultActive:!0},onSetup:function(){console.log("✓ Setup done")}}),shr.setup({count:{classname:"btn-count"}}),function(){function e(){var e=this,n=e.getAttribute("data-source"),t=document.querySelector(".player").plyr;switch(n){case"video":t.source({type:"video",title:"Bug Buck Bunny",sources:[{src:"https://cdn.selz.com/plyr/1.0/movie.mp4",type:"video/mp4"},{src:"https://cdn.selz.com/plyr/1.0/movie.webm",type:"video/webm"}],poster:"https://cdn.selz.com/plyr/1.0/poster.jpg",tracks:[{kind:"captions",label:"English",srclang:"en",src:"https://cdn.selz.com/plyr/1.0/example_captions_en.vtt","default":!0}]});break;case"audio":t.source({type:"audio",title:"96 by Logistics",sources:[{src:"https://cdn.selz.com/plyr/1.0/logistics-96-sample.mp3",type:"audio/mp3"},{src:"https://cdn.selz.com/plyr/1.0/logistics-96-sample.ogg",type:"audio/ogg"}]});break;case"youtube":t.source({type:"youtube",title:"Introducing Apple Pencil",sources:"iicnVez5U7M"});break;case"vimeo":t.source({type:"vimeo",title:"The Beaten Track",sources:"125220818"})}for(var a=s.length-1;a>=0;a--)s[a].classList.remove("active");event.target.classList.add("active")}for(var s=document.querySelectorAll("[data-source]"),n=s.length-1;n>=0;n--)s[n].addEventListener("click",e)}(),document.domain.indexOf("plyr.io")>-1&&(!function(e,s,n,t,a,r,o){e.GoogleAnalyticsObject=a,e[a]=e[a]||function(){(e[a].q=e[a].q||[]).push(arguments)},e[a].l=1*new Date,r=s.createElement(n),o=s.getElementsByTagName(n)[0],r.async=1,r.src=t,o.parentNode.insertBefore(r,o)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-40881672-11","auto"),ga("send","pageview")); \ No newline at end of file
+"document"in self&&("classList"in document.createElement("_")?!function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var s,n=arguments.length;for(s=0;n>s;s++)t=arguments[s],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:s.call(this,t)}}t=null}():!function(t){"use strict";if("Element"in t){var e="classList",s="prototype",n=t.Element[s],i=Object,o=String[s].trim||function(){return this.replace(/^\s+|\s+$/g,"")},r=Array[s].indexOf||function(t){for(var e=0,s=this.length;s>e;e++)if(e in this&&this[e]===t)return e;return-1},c=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new c("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new c("INVALID_CHARACTER_ERR","String contains an invalid character");return r.call(t,e)},l=function(t){for(var e=o.call(t.getAttribute("class")||""),s=e?e.split(/\s+/):[],n=0,i=s.length;i>n;n++)this.push(s[n]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=l[s]=[],p=function(){return new l(this)};if(c[s]=Error[s],u.item=function(t){return this[t]||null},u.contains=function(t){return t+="",-1!==a(this,t)},u.add=function(){var t,e=arguments,s=0,n=e.length,i=!1;do t=e[s]+"",-1===a(this,t)&&(this.push(t),i=!0);while(++s<n);i&&this._updateClassName()},u.remove=function(){var t,e,s=arguments,n=0,i=s.length,o=!1;do for(t=s[n]+"",e=a(this,t);-1!==e;)this.splice(e,1),o=!0,e=a(this,t);while(++n<i);o&&this._updateClassName()},u.toggle=function(t,e){t+="";var s=this.contains(t),n=s?e!==!0&&"remove":e!==!1&&"add";return n&&this[n](t),e===!0||e===!1?e:!s},u.toString=function(){return this.join(" ")},i.defineProperty){var d={get:p,enumerable:!0,configurable:!0};try{i.defineProperty(n,e,d)}catch(m){-2146823252===m.number&&(d.enumerable=!1,i.defineProperty(n,e,d))}}else i[s].__defineGetter__&&n.__defineGetter__(e,p)}}(self)),plyr.setup({debug:!0,title:"Video demo",tooltips:!0,captions:{defaultActive:!0},onSetup:function(){console.log("✓ Setup done")}}),shr.setup({count:{classname:"btn-count"}}),function(){function t(){var t=this,s=t.getAttribute("data-source"),n=document.querySelector(".plyr").plyr;switch(s){case"video":n.source({type:"video",title:"Bug Buck Bunny",sources:[{src:"https://cdn.selz.com/plyr/1.0/movie.mp4",type:"video/mp4"},{src:"https://cdn.selz.com/plyr/1.0/movie.webm",type:"video/webm"}],poster:"https://cdn.selz.com/plyr/1.0/poster.jpg",tracks:[{kind:"captions",label:"English",srclang:"en",src:"https://cdn.selz.com/plyr/1.0/example_captions_en.vtt","default":!0}]});break;case"audio":n.source({type:"audio",title:"96 by Logistics",sources:[{src:"https://cdn.selz.com/plyr/1.0/logistics-96-sample.mp3",type:"audio/mp3"},{src:"https://cdn.selz.com/plyr/1.0/logistics-96-sample.ogg",type:"audio/ogg"}]});break;case"youtube":n.source({type:"youtube",title:"Enovato interview of Dan Cederholm for Made By",sources:"Au87oAJ2jeE"});break;case"vimeo":n.source({type:"vimeo",title:"Yosemite HD II",sources:"87701971"})}for(var i=e.length-1;i>=0;i--)e[i].classList.remove("active");event.target.classList.add("active")}for(var e=document.querySelectorAll("[data-source]"),s=e.length-1;s>=0;s--)e[s].addEventListener("click",t)}(),document.domain.indexOf("plyr.io")>-1&&(!function(t,e,s,n,i,o,r){t.GoogleAnalyticsObject=i,t[i]=t[i]||function(){(t[i].q=t[i].q||[]).push(arguments)},t[i].l=1*new Date,o=e.createElement(s),r=e.getElementsByTagName(s)[0],o.async=1,o.src=n,r.parentNode.insertBefore(o,r)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-40881672-11","auto"),ga("send","pageview")); \ No newline at end of file