/*! * bespoke-theme-cloudscreener v1.0.0 * * Copyright 2016, cloudscreener * This content is released under the MIT license * */ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self);var f=o;f=f.bespoke||(f.bespoke={}),f=f.themes||(f.themes={}),f.cloudscreener=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o*{transition:all .8s ease;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.bespoke-active .cascade>*,.bespoke-active.cascade>*{transition-delay:.5s}.bespoke-active .cascade>*:nth-child(2),.bespoke-active.cascade>*:nth-child(2){transition-delay:.8s}.bespoke-active .cascade>*:nth-child(3),.bespoke-active.cascade>*:nth-child(3){transition-delay:1.1s}.bespoke-active .cascade>*:nth-child(4),.bespoke-active.cascade>*:nth-child(4){transition-delay:1.4s}.bespoke-active .cascade>*:nth-child(5),.bespoke-active.cascade>*:nth-child(5){transition-delay:1.7s}.bespoke-active .cascade>*:nth-child(6),.bespoke-active.cascade>*:nth-child(6){transition-delay:2s}.bespoke-active .cascade>*:nth-child(7),.bespoke-active.cascade>*:nth-child(7){transition-delay:2.3s}.bespoke-after .cascade>*,.bespoke-after.cascade>*{-webkit-transform:translateZ(0) translateY(15px);transform:translateZ(0) translateY(15px);opacity:0}.bespoke-after .cascade>*.avatar,.bespoke-after.cascade>*.avatar{-webkit-transform:translateZ(0) translateY(15px) scale(1.2) rotateX(30deg);transform:translateZ(0) translateY(15px) scale(1.2) rotateX(30deg)}.star-wars{background:0 0;color:#ff0}.star-wars.bespoke-slide{-webkit-transform:rotateX(20deg) translateY(0);transform:rotateX(20deg) translateY(0)}.star-wars.bespoke-slide.bespoke-after{-webkit-transform:rotateX(20deg) translateY(250px);transform:rotateX(20deg) translateY(250px)}.star-wars.bespoke-slide.bespoke-before{-webkit-transform:rotateX(20deg) translateY(-250px);transform:rotateX(20deg) translateY(-250px)}.star-wars.bespoke-slide .bespoke-bullet{transition:all .6s ease}.star-wars.bespoke-slide .bespoke-bullet-inactive{-webkit-transform:translateY(20px);transform:translateY(20px)}"; insertCss(css, { prepend: true }); return function(deck) { classes()(deck); var wrap = function(element) { var wrapper = document.createElement('div'); wrapper.className = 'bespoke-theme-cloudscreener-slide-parent'; element.parentNode.insertBefore(wrapper, element); wrapper.appendChild(element); }; deck.slides.forEach(wrap); }; }; (function enableFrames() { var frames = document.querySelectorAll('iframe'); for (var i = 0, frame; frame = frames[i]; i++) { var src = frame.dataset.src; if (src && frame.src != src) { console.log('iframe enabled:', src); frame.src = src; } } }()); },{"bespoke-classes":2,"insert-css":3}],2:[function(_dereq_,module,exports){ module.exports = function() { return function(deck) { var addClass = function(el, cls) { el.classList.add('bespoke-' + cls); }, removeClass = function(el, cls) { el.className = el.className .replace(new RegExp('bespoke-' + cls +'(\\s|$)', 'g'), ' ') .trim(); }, deactivate = function(el, index) { var activeSlide = deck.slides[deck.slide()], offset = index - deck.slide(), offsetClass = offset > 0 ? 'after' : 'before'; ['before(-\\d+)?', 'after(-\\d+)?', 'active', 'inactive'].map(removeClass.bind(null, el)); if (el !== activeSlide) { ['inactive', offsetClass, offsetClass + '-' + Math.abs(offset)].map(addClass.bind(null, el)); } }; addClass(deck.parent, 'parent'); deck.slides.map(function(el) { addClass(el, 'slide'); }); deck.on('activate', function(e) { deck.slides.map(deactivate); addClass(e.slide, 'active'); removeClass(e.slide, 'inactive'); }); }; }; },{}],3:[function(_dereq_,module,exports){ var inserted = {}; module.exports = function (css, options) { if (inserted[css]) return; inserted[css] = true; var elem = document.createElement('style'); elem.setAttribute('type', 'text/css'); if ('textContent' in elem) { elem.textContent = css; } else { elem.styleSheet.cssText = css; } var head = document.getElementsByTagName('head')[0]; if (options && options.prepend) { head.insertBefore(elem, head.childNodes[0]); } else { head.appendChild(elem); } }; },{}]},{},[1]) (1) });