Commit e6ac37ae authored by Vadim Makeev's avatar Vadim Makeev

Updates

parents
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shower Presentation Engine</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="shower/themes/ribbon/styles/styles.css">
<style>
.shower {
--slide-ratio: calc(16 / 9);
}
</style>
</head>
<body class="shower list">
<header class="caption">
<h1>Shower Presentation Engine</h1>
<p>Yours Truly, Famous Inc.</p>
</header>
<section class="slide" id="cover">
<h2>Shower Presentation Engine</h2>
<p>Brought to you by <a href="http://pepelsbey.net">Vadim Makeev</a></p>
<figure>
<img class="cover" src="pictures/cover.jpg" alt="Hands on the orange typewriter in a park">
<figcaption class="copyright right white">
<a href="http://fiftyfootshadows.net/">© John Carey</a>
</figcaption>
</figure>
<style>
#cover h2 {
margin: 30px 0 0;
color: white;
text-align: center;
font-size: 70px;
}
#cover p {
margin: 10px 0 0;
text-align: center;
color: white;
font-style: italic;
font-size: 20px;
}
#cover p a {
color: white;
}
</style>
</section>
<section class="slide">
<h2>Shower key features</h2>
<ol>
<li>Built on HTML, CSS and JavaScript</li>
<li>Works in all modern browsers</li>
<li>Themes are separated from engine</li>
<li>Fully keyboard accessible</li>
<li>Printable to PDF</li>
</ol>
<p class="note">Shower ['ʃəuə] noun. A person or thing that shows.</p>
</section>
<section class="slide">
<h2>Plain text on your slides</h2>
<p>Lorem ipsum dolor sit amet, consectetur <a href="#4">adipisicing</a> elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, <em>quis nostrud</em> exercitation ullamco laboris <strong>nisi ut aliquip</strong> ex ea commodo consequat. Duis aute irure <i>dolor</i> in reprehenderit in voluptate velit esse cillum <b>dolore</b> eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in <code>&lt;culpa&gt;</code> qui officia deserunt mollit anim id est laborum.</p>
</section>
<section class="slide">
<h2>Two columns if you like</h2>
<div class="columns two">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.</p>
</div>
</section>
<section class="slide">
<h2>All kind of lists</h2>
<ol>
<li>Simple lists are marked with bullets</li>
<li>Ordered lists begin with a number</li>
<li>You can even nest lists one inside another
<ul>
<li>Or mix their types</li>
<li>But do not go too far</li>
<li>Otherwise audience will be bored</li>
</ul>
</li>
<li>Look, seven rows exactly!</li>
</ol>
</section>
<section class="slide">
<h2>Serious citations</h2>
<figure>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.</p>
</blockquote>
<figcaption>Marcus Tullius Cicero</figcaption>
</figure>
</section>
<section class="slide">
<h2>Code samples</h2>
<pre>
<code>&lt;!DOCTYPE html&gt;</code>
<code class="mark">&lt;html lang="en"&gt;</code>
<code><mark>&lt;head&gt;</mark> <span class="comment">&lt;!--Comment--&gt;</span></code>
<code> &lt;title&gt;Shower&lt;/title&gt;</code>
<code> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code><mark>&lt;/head&gt;</mark></code>
</pre>
</section>
<section class="slide">
<h2>Even tables</h2>
<table>
<tr>
<th scope="col">Locavore</th>
<th>Umami</th>
<th>Helvetica</th>
<th>Vegan</th>
</tr>
<tr>
<th scope="row">Fingerstache</th>
<td>Kale</td>
<td>Chips</td>
<td>Keytar</td>
</tr>
<tr>
<th scope="row">Sriracha</th>
<td>Gluten-free</td>
<td>Ennui</td>
<td>Keffiyeh</td>
</tr>
<tr>
<th scope="row">Thundercats</th>
<td>Jean</td>
<td>Shorts</td>
<td>Biodiesel</td>
</tr>
<tr>
<th scope="row">Terry</th>
<td>Richardson</td>
<td>Swag</td>
<td>Blog</td>
</tr>
</table>
<p>It’s good to have information organized.</p>
</section>
<section class="slide" id="picture">
<h2>Pictures</h2>
<figure>
<img class="cover" src="pictures/picture.jpg" alt="Orange typewriter on a wooden table close-up">
<figcaption class="copyright right white">
<a href="http://fiftyfootshadows.net/">© John Carey</a>
</figcaption>
</figure>
<style>
#picture h2 {
color: white;
}
</style>
</section>
<section class="slide">
<h2 class="shout shrink">You can even shout this way</h2>
</section>
<section class="slide">
<h2>Inner navigation</h2>
<ol>
<li>Lets you reveal list items one by one</li>
<li class="next">To keep some key points</li>
<li class="next">In secret from audience</li>
<li class="next">But it will work only once</li>
<li class="next">Nobody wants to see the same joke twice</li>
</ol>
</section>
<section class="slide" id="see-more">
<h2 class="shout">
<img src="pictures/logo.svg" alt="Shower logo">
<a href="https://github.com/shower/shower">See more on GitHub</a>
</h2>
<style>
#see-more h2 {
font-size: 100px
}
#see-more img {
width: 0.72em;
height: 0.72em;
}
</style>
</section>
<footer class="badge">
<a href="https://github.com/shower/shower">Fork me on GitHub</a>
</footer>
<div class="progress"></div>
<script src="shower/shower.min.js"></script>
<!-- Copyright © 2018 Yours Truly, Famous Inc. -->
</body>
</html>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><path fill="#4b86c2" d="M327.5 273.5l17.7-17.7L500 410.7v-35.4L362.8 238.1l17.7-17.7L500 339.9v-35.4L398.2 202.8l17.7-17.7 84.1 84.1V50c0-27.6-22.4-50-50-50H50C22.4 0 0 22.4 0 50v400c0 27.6 22.4 50 50 50h214.3c4.9-20.5-.7-42.9-16.7-58.9L186 379.5 124.5 318c-53.9-53.9-54.1-141.1-.4-194.8 53.7-53.7 140.9-53.6 194.8.3l8.5 8.5h106.1L274 291.1v-106l-8.3-8.5c-24.5-24.5-64-24.6-88.4-.2s-24.3 64.1.2 88.5l61.5 61.5 61.5 61.5c30.6 30.6 43.9 72.1 39.8 112H450c27.6 0 50-22.4 50-50v-4L327.5 273.5z"/></svg>
\ No newline at end of file
/**
* Core for Shower HTML presentation engine
* shower-core v2.1.0, https://github.com/shower/core
* @copyright 2010-2017 Vadim Makeev, http://pepelsbey.net/
* @license MIT
*/
!function(global){var undef,DECL_STATES={NOT_RESOLVED:"NOT_RESOLVED",IN_RESOLVING:"IN_RESOLVING",RESOLVED:"RESOLVED"},create=function(){var curOptions={trackCircularDependencies:!0,allowMultipleDeclarations:!0},modulesStorage={},waitForNextTick=!1,pendingRequires=[],define=function(name,deps,declFn){declFn||(declFn=deps,deps=[]);var module=modulesStorage[name];module||(module=modulesStorage[name]={name:name,decl:undef}),module.decl={name:name,prev:module.decl,fn:declFn,state:DECL_STATES.NOT_RESOLVED,deps:deps,dependents:[],exports:undef}},require=function(modules,cb,errorCb){"string"==typeof modules&&(modules=[modules]),waitForNextTick||(waitForNextTick=!0,nextTick(onNextTick)),pendingRequires.push({deps:modules,cb:function(exports,error){error?(errorCb||onError)(error):cb.apply(global,exports)}})},getState=function(name){var module=modulesStorage[name];return module?DECL_STATES[module.decl.state]:"NOT_DEFINED"},isDefined=function(name){return!!modulesStorage[name]},setOptions=function(options){for(var name in options)options.hasOwnProperty(name)&&(curOptions[name]=options[name])},getStat=function(){var module,res={};for(var name in modulesStorage)modulesStorage.hasOwnProperty(name)&&(module=modulesStorage[name],(res[module.decl.state]||(res[module.decl.state]=[])).push(name));return res},onNextTick=function(){waitForNextTick=!1,applyRequires()},applyRequires=function(){var require,requiresToProcess=pendingRequires,i=0;for(pendingRequires=[];require=requiresToProcess[i++];)requireDeps(null,require.deps,[],require.cb)},requireDeps=function(fromDecl,deps,path,cb){var unresolvedDepsCnt=deps.length;unresolvedDepsCnt||cb([]);for(var dep,decl,decls=[],onDeclResolved=function(_,error){if(error)return void cb(null,error);if(!--unresolvedDepsCnt){for(var decl,exports=[],i=0;decl=decls[i++];)exports.push(decl.exports);cb(exports)}},i=0,len=unresolvedDepsCnt;i<len;){if(dep=deps[i++],"string"==typeof dep){if(!modulesStorage[dep])return void cb(null,buildModuleNotFoundError(dep,fromDecl));decl=modulesStorage[dep].decl}else decl=dep;decls.push(decl),startDeclResolving(decl,path,onDeclResolved)}},startDeclResolving=function(decl,path,cb){if(decl.state===DECL_STATES.RESOLVED)return void cb(decl.exports);if(decl.state===DECL_STATES.IN_RESOLVING)return void(curOptions.trackCircularDependencies&&isDependenceCircular(decl,path)?cb(null,buildCircularDependenceError(decl,path)):decl.dependents.push(cb));if(decl.dependents.push(cb),decl.prev&&!curOptions.allowMultipleDeclarations)return void provideError(decl,buildMultipleDeclarationError(decl));curOptions.trackCircularDependencies&&(path=path.slice()).push(decl);var isProvided=!1,deps=decl.prev?decl.deps.concat([decl.prev]):decl.deps;decl.state=DECL_STATES.IN_RESOLVING,requireDeps(decl,deps,path,function(depDeclsExports,error){return error?void provideError(decl,error):(depDeclsExports.unshift(function(exports,error){return isProvided?void cb(null,buildDeclAreadyProvidedError(decl)):(isProvided=!0,void(error?provideError(decl,error):provideDecl(decl,exports)))}),void decl.fn.apply({name:decl.name,deps:decl.deps,global:global},depDeclsExports))})},provideDecl=function(decl,exports){decl.exports=exports,decl.state=DECL_STATES.RESOLVED;for(var dependent,i=0;dependent=decl.dependents[i++];)dependent(exports);decl.dependents=undef},provideError=function(decl,error){decl.state=DECL_STATES.NOT_RESOLVED;for(var dependent,i=0;dependent=decl.dependents[i++];)dependent(null,error);decl.dependents=[]};return{create:create,define:define,require:require,getState:getState,isDefined:isDefined,setOptions:setOptions,getStat:getStat}},onError=function(e){nextTick(function(){throw e})},buildModuleNotFoundError=function(name,decl){return Error(decl?'Module "'+decl.name+'": can\'t resolve dependence "'+name+'"':'Required module "'+name+"\" can't be resolved")},buildCircularDependenceError=function(decl,path){for(var pathDecl,strPath=[],i=0;pathDecl=path[i++];)strPath.push(pathDecl.name);return strPath.push(decl.name),Error('Circular dependence has been detected: "'+strPath.join(" -> ")+'"')},buildDeclAreadyProvidedError=function(decl){return Error('Declaration of module "'+decl.name+'" has already been provided')},buildMultipleDeclarationError=function(decl){return Error('Multiple declarations of module "'+decl.name+'" have been detected')},isDependenceCircular=function(decl,path){for(var pathDecl,i=0;pathDecl=path[i++];)if(decl===pathDecl)return!0;return!1},nextTick=function(){var fns=[],enqueueFn=function(fn){return 1===fns.push(fn)},callFns=function(){var fnsToCall=fns,i=0,len=fns.length;for(fns=[];i<len;)fnsToCall[i++]()};if("object"==typeof process&&process.nextTick)return function(fn){enqueueFn(fn)&&process.nextTick(callFns)};if(global.setImmediate)return function(fn){enqueueFn(fn)&&global.setImmediate(callFns)};if(global.postMessage&&!global.opera){var isPostMessageAsync=!0;if(global.attachEvent){var checkAsync=function(){isPostMessageAsync=!1};global.attachEvent("onmessage",checkAsync),global.postMessage("__checkAsync","*"),global.detachEvent("onmessage",checkAsync)}if(isPostMessageAsync){var msg="__modules"+ +new Date,onMessage=function(e){e.data===msg&&(e.stopPropagation&&e.stopPropagation(),callFns())};return global.addEventListener?global.addEventListener("message",onMessage,!0):global.attachEvent("onmessage",onMessage),function(fn){enqueueFn(fn)&&global.postMessage(msg,"*")}}}var doc=global.document;if("onreadystatechange"in doc.createElement("script")){var head=doc.getElementsByTagName("head")[0],createScript=function(){var script=doc.createElement("script");script.onreadystatechange=function(){script.parentNode.removeChild(script),script=script.onreadystatechange=null,callFns()},head.appendChild(script)};return function(fn){enqueueFn(fn)&&createScript()}}return function(fn){enqueueFn(fn)&&setTimeout(callFns,0)}}();"object"==typeof exports?module.exports=create():global.modules=create()}("undefined"!=typeof window?window:global),function(global){function initialize(){global.shower.modules.require("shower.defaultOptions",function(defaultOptions){var hasOptions=global.hasOwnProperty("showerOptions"),options=global.shower.options,containerSelector=options.shower_selector||defaultOptions.container_selector,element=document.querySelector(containerSelector),getDataAttr=getData.bind(this,element),autoInit="undefined"==typeof options.auto_init||options.auto_init;if(!element)throw new Error("Shower element with selector "+containerSelector+" not found.");("false"!==getDataAttr("auto-init")||hasOptions&&autoInit)&&(hasOptions||dataAttrsOptions.forEach(function(name){var value=getDataAttr(name);null!==value&&"undefined"!=typeof value&&(options[name.replace(/-/g,"_")]=value)}),global.shower.modules.require(["shower"],function(sh){sh.init({container:element,options:options})}))})}function getData(element,name){return element.dataset?element.dataset[name]:element.getAttribute("data-"+name)}var dataAttrsOptions=["debug-mode","slides-selector","hotkeys"];global.shower={modules:modules.create(),options:global.showerOptions||{}},/interactive|complete|loaded/.test(document.readyState)?initialize():document.addEventListener("DOMContentLoaded",initialize)}(window),shower.modules.define("shower",["shower.global"],function(provide,showerGlobal){provide(showerGlobal)}),shower.modules.define("Emitter",["emitter.Event","emitter.EventGroup","util.extend"],function(provide,EmitterEvent,EventGroup,extend){function EventEmitter(parameters){parameters=parameters||{},this._context=parameters.context,this._parent=parameters.parent,this._listeners={}}function sortByPriority(aListener,bListener){return aListener.priority-bListener.priority}extend(EventEmitter.prototype,{on:function(types,callback,context,priority){if("undefined"==typeof callback)throw new Error("Callback is not defined.");if(priority=priority||0,"string"==typeof types)this._addListener(types,callback,context,priority);else for(var i=0,l=types.length;i<l;i++)this._addListener(types[i],callback,context,priority);return this},off:function(types,callback,context,priority){if(priority=priority||0,"string"==typeof types)this._removeListener(types,callback,context,priority);else for(var i=0,l=types.length;i<l;i++)this._removeListener(types[i],callback,context,priority);return this},once:function(eventType,callback,context,priority){var handler=function(event){this.off(eventType,handler,this,priority),context?callback.call(context,event):callback(event)};return this.on(eventType,handler,this,priority),this},emit:function(eventType,eventObject){var event=eventObject,listeners=this._listeners;event&&"function"==typeof event.get||(event=this.createEventObject(eventType,eventObject,this._context)),event.isPropagationStopped()||(listeners.hasOwnProperty(eventType)&&this._callListeners(listeners[eventType],event),this._parent&&!event.isPropagationStopped()&&this._parent.emit(eventType,event))},createEventObject:function(type,eventData,target){var data={target:target,type:type};return new EmitterEvent(eventData?extend(data,eventData):data)},setParent:function(parent){this._parent!=parent&&(this._parent=parent)},getParent:function(){return this._parent},group:function(){return new EventGroup(this)},_addListener:function(eventType,callback,context,priority){var listener={callback:callback,context:context,priority:priority};this._listeners[eventType]?this._listeners[eventType].push(listener):this._listeners[eventType]=[listener]},_removeListener:function(eventType,callback,context,priority){var listener,listeners=this._listeners[eventType];if(listeners){for(var foundIndex=-1,i=0,l=listeners.length;i<l;i++)listener=listeners[i],listener.callback==callback&&listener.context==context&&listener.priority==priority&&(foundIndex=i);foundIndex!=-1&&(1==listeners.length?this._clearType(eventType):listeners.splice(foundIndex,1))}},_clearType:function(eventType){this._listeners.hasOwnProperty(eventType)&&delete this._listeners[eventType]},_callListeners:function(listeners,event){var i=listeners.length-1;for(listeners.sort(sortByPriority);i>=0&&!event.defaultPrevented();){var listener=listeners[i];listener&&(listener.context?listener.callback.call(listener.context,event):listener.callback(event)),i--}}}),provide(EventEmitter)}),shower.modules.define("emitter.Event",["util.extend"],function(provide,extend){function Event(data){this._data=data,this._preventDefault=!1,this._stopPropagation=!1}extend(Event.prototype,{get:function(key){return this._data[key]},preventDefault:function(){return this._preventDefault=!0,this._preventDefault},defaultPrevented:function(){return this._preventDefault},stopPropagation:function(){return this._stopPropagation=!0,this._stopPropagation},isPropagationStopped:function(){return this._stopPropagation}}),provide(Event)}),shower.modules.define("emitter.EventGroup",["util.extend"],function(provide,extend){function EventGroup(eventManager){this.events=eventManager,this._listeners=[]}extend(EventGroup.prototype,{on:function(types,callback,context){if(Array.isArray(types))for(var i=0,k=types.length;i<k;i++)this._listeners.push(types[i],callback,context);else this._listeners.push(types,callback,context);return this.events.on(types,callback,context),this},off:function(types,callback,context){if(Array.isArray(types))for(var i=0,k=types.length;i<k;i++)this._removeListener(types[i],callback,context);else this._removeListener(types,callback,context);return this},offAll:function(){for(var i=0,k=this._listeners.length;i<k;i+=3)this.events.off(this._listeners[i],this._listeners[i+1],this._listeners[i+2]);return this._listeners.length=0,this},_removeListener:function(type,callback,context){for(var index=this._listeners.indexOf(type,0);index!=-1;)this._listeners[index+1]==callback&&this._listeners[index+2]==context&&(this._listeners.splice(index,3),this.events.off(type,callback,context)),index=this._listeners.indexOf(type,index)}}),provide(EventGroup)}),shower.modules.define("Plugins",["Emitter","util.extend"],function(provide,EventEmitter,extend){function Plugins(showerGlobal){this.events=new EventEmitter({context:this}),this._showerGlobal=showerGlobal,this._showerInstances=showerGlobal.getInited(),this._plugins={},this._instances=[],showerGlobal.events.on("init",this._onShowerInit,this)}extend(Plugins.prototype,{destroy:function(){this._showerGlobal.events.off("init",this._onShowerInit,this),this._plugins=null},add:function(name,options){if(this._plugins.hasOwnProperty(name))throw new Error("Plugin "+name+" already exist.");return this._requireAndAdd({name:name,options:options}),this},remove:function(name){if(!this._plugins.hasOwnProperty(name))throw new Error("Plugin "+name+" not found.");return delete this._plugins[name],this.events.emit("remove",{name:name}),this},get:function(name,shower){var pluginInstance,plugin=this._plugins[name];if(plugin&&shower)for(var i=0,l=this._instances.length;i<l;i++){var instanceInfo=this._instances[i];instanceInfo.plugin.name===name&&instanceInfo.shower===shower&&(pluginInstance=instanceInfo.instance)}return pluginInstance},_requireAndAdd:function(plugin){shower.modules.require(plugin.name,function(pluginClass){plugin.class=pluginClass,this._plugins[plugin.name]=plugin,this._instancePlugin(plugin)}.bind(this))},_instancePlugin:function(plugin){this._showerInstances.forEach(function(shower){this._instance(plugin,shower)},this),this.events.emit("add",{name:plugin.name})},_instanceFor:function(shower){for(var name in this._plugins)this._plugins.hasOwnProperty(name)&&this._instance(this._plugins[name],shower)},_instance:function(plugin,shower){var options=plugin.options||shower.options.get("plugin_"+plugin.name);this._instances.push({shower:shower,plugin:plugin,instance:new plugin.class(shower,options)})},_onShowerInit:function(event){var shower=event.get("shower");this._instanceFor(shower)}}),provide(Plugins)}),shower.modules.define("shower.global",["Emitter","Plugins"],function(provide,EventEmitter,Plugins){var inited=[],sh={ready:function(callback){return callback&&(inited.length?inited.forEach(callback):this.events.once("init",function(e){callback(e.get("shower"))})),Boolean(inited.length)},init:function(initOptions){initOptions=initOptions||{},shower.modules.require(["Shower"],function(Shower){new Shower(initOptions.container,initOptions.options)})},getInited:function(){return inited.slice()}};sh.events=new EventEmitter({context:sh}),sh.plugins=new Plugins(sh),sh.events.on("notify",function(e){var showerInstance=e.get("shower");inited.push(showerInstance),sh.events.emit("init",e)}),provide(sh)}),shower.modules.define("Options",["Emitter","options.Monitor","util.Store","util.extend","util.inherit"],function(provide,EventEmitter,Monitor,Store,extend,inherit){function Options(initOptions){Options.super.constructor.apply(this,arguments),this.events=new EventEmitter}inherit(Options,Store,{set:function(name,value){var changed=[];if("string"==typeof name)Options.super.set.call(this,name,value),changed.push({name:name,value:value});else{var options=name||{};Object.keys(options).forEach(function(optionName){var optionValue=options[optionName];Options.super.set.call(this,optionName,optionValue),changed.push({name:optionName,value:optionValue})})}return changed.length&&this.events.emit("set",{items:changed}),this},unset:function(name){return Options.super.unset(this,name),this.events.emit("unset",{name:name}),this},getMonitor:function(){return new Monitor(this)}}),provide(Options)}),shower.modules.define("options.Monitor",["util.extend"],function(provide,extend){function Monitor(options){this._options=options,this._optionsEvents=options.events.group().on(["set","unset"],this._onOptionsChange,this),this._fieldsHanders={}}extend(Monitor.prototype,{destroy:function(){this._options=null,this._optionsEvents.offAll(),this._fieldsHanders=null},add:function(field,callback,context){if(Array.prototype.isArray.call(null,field)){var fields=field;for(var fieldName in fields)fields.hasOwnProperty(fieldName)&&this._addHandler(fieldName,callback,context)}else this._addHandler(field,callback,context);return this},remove:function(field,callback,context){if(Array.prototype.isArray.call(null,field)){var fields=field;for(var fieldName in fields)fields.hasOwnProperty(fieldName)&&this._remodeHandler(fieldName,callback,context)}else this._remodeHandler(field,callback,context);return this},getOptions:function(){return this._options},_onOptionsChange:function(event){var fieldsUpdated="unset"===event.get("type")?[event.get("name")]:event.get("items");fieldsUpdated.forEach(function(field){this._fieldsHanders.hasOwnProperty(field)&&this._fieldsHanders[field].forEach(function(handler){handler.callback.call(handler.context,this._options.get(field))})},this)},_addHandler:function(field,callback,context){var handler={callback:callback,context:context};this._fieldsHanders.hasOwnProperty(fieldName)?this._fieldsHanders[fieldName].push(handler):this._fieldsHanders[fieldName]=[handler]},_remodeHandler:function(field,callback,context){if(!this._fieldsHanders.hasOwnProperty(field))throw new Error("Remove undefined handler for "+field+" field");var fieldsHanders=this._fieldsHanders[field],handler=fieldsHanders.filter(function(hander){return hander.callback===callback&&hander.context===context})[0];if(!hander)throw new Error("Hanlder for "+field+" not found.");fieldsHanders.splice(fieldsHanders.indexOf(handler,1))}}),provide(Monitor)}),shower.modules.define("Shower",["Emitter","Options","shower.global","shower.defaultOptions","shower.Container","shower.Player","shower.Location","shower.slidesParser","util.extend"],function(provide,EventEmitter,Options,showerGlobal,defaultShowerOptions,Container,Player,Location,defaultSlidesParser,extend){function Shower(container,options){options=options||{},this.events=new EventEmitter({context:this}),this.options=new Options({},defaultShowerOptions,options);var containerElement=container||this.options.get("container_selector");"string"==typeof containerElement&&(containerElement=document.querySelector(containerElement)),this.player=new Player(this),this.container=new Container(this,containerElement),this._slides=[],this._isHotkeysOn=!0,this._liveRegion=null,this._initSlides(),this._initLiveRegion(),this.options.get("debug_mode")&&(document.body.classList.add(this.options.get("debug_mode_classname")),console.info("Debug mode on")),this.options.get("hotkeys")||this.disableHotkeys(),this.location=new Location(this),showerGlobal.events.emit("notify",{shower:this}),this._playerListeners=this.player.events.group().on("activate",this._onPlayerSlideActivate,this)}extend(Shower.prototype,{destroy:function(){this.events.emit("destroy"),this.location.destroy(),this.container.destroy(),this.player.destroy(),this._slides=[]},add:function(slide){if(Array.isArray.call(null,slide))for(var i=0,k=slide.length;i<k;i++)this._addSlide(slide[i]);else this._addSlide(slide);return this},remove:function(slide){var slidePosition;if("number"==typeof slide)slidePosition=slide;else{if(this._slides.indexOf(slide)==-1)throw new Error("Slide not found");slidePosition=this._slides.indexOf(slide)}return slide=this._slides.splice(slidePosition,1)[0],this.events.emit("slideremove",{slide:slide}),slide.destroy(),this},get:function(index){return this._slides[index]},getSlides:function(){return this._slides.slice()},getSlidesCount:function(){return this._slides.length},getSlideIndex:function(slide){return this._slides.indexOf(slide)},disableHotkeys:function(){return this._isHotkeysOn=!1,this},enableHotkeys:function(){return this._isHotkeysOn=!0,this},isHotkeysEnabled:function(){return this._isHotkeysOn},getLiveRegion:function(){return this._liveRegion},updateLiveRegion:function(content){return this._liveRegion.innerHTML=content,this},_onPlayerSlideActivate:function(event){var currentSlide=event.get("slide");this.updateLiveRegion(currentSlide.getContent())},_initSlides:function(){var slidesParser=this.options.get("slides_parser")||defaultSlidesParser,slides=slidesParser(this.container.getElement(),this.options.get("slides_selector"));this.add(slides)},_addSlide:function(slide){slide.state.set("index",this._slides.length),this._slides.push(slide),this.events.emit("slideadd",{slide:slide})},_initLiveRegion:function(){var liveRegion=document.createElement("section");liveRegion.setAttribute("role","region"),liveRegion.setAttribute("aria-live","assertive"),liveRegion.setAttribute("aria-relevant","additions"),liveRegion.setAttribute("aria-label","Slide Content: Auto-updating"),liveRegion.className="region",document.body.appendChild(liveRegion),this._liveRegion=liveRegion}}),provide(Shower)}),shower.modules.define("shower.Container",["Emitter","util.bound","util.extend"],function(provide,EventEmitter,bound,extend){function Container(shower,containerElement){this.events=new EventEmitter({context:this,parent:shower.events}),this._shower=shower,this._element=containerElement,this._isSlideMode=!1,this.init()}extend(Container.prototype,{init:function(){var bodyClassList=document.body.classList,showerOptions=this._shower.options,fullModeClass=showerOptions.get("mode_full_classname"),listModeClass=showerOptions.get("mode_list_classname");bodyClassList.contains(listModeClass)||bodyClassList.contains(fullModeClass)||bodyClassList.add(listModeClass),this._setupListeners()},destroy:function(){this._clearListeners(),this._element=null,this._shower=null,this._isSlideMode=null},getElement:function(){return this._element},enterSlideMode:function(){var bodyClassList=document.body.classList,showerOptions=this._shower.options;return bodyClassList.remove(showerOptions.get("mode_list_classname")),bodyClassList.add(showerOptions.get("mode_full_classname")),document.body.setAttribute("role","application"),this._applyTransform(this._getTransformScale()),this._isSlideMode=!0,this.events.emit("slidemodeenter"),this},exitSlideMode:function(){var elementClassList=document.body.classList,showerOptions=this._shower.options;return elementClassList.remove(showerOptions.get("mode_full_classname")),elementClassList.add(showerOptions.get("mode_list_classname")),document.body.removeAttribute("role","application"),this._applyTransform("none"),this._isSlideMode=!1,this.scrollToCurrentSlide(),this.events.emit("slidemodeexit"),this},isSlideMode:function(){return this._isSlideMode},scrollToCurrentSlide:function(){var activeSlideClassName=this._shower.options.get("slide_active_classname"),slideElement=this._element.querySelector("."+activeSlideClassName);return slideElement&&window.scrollTo(0,slideElement.offsetTop),this},_setupListeners:function(){this._showerListeners=this._shower.events.group().on("slideadd",this._onSlideAdd,this).on("slideremove",this._onSlideRemove,this),window.addEventListener("resize",bound(this,"_onResize")),document.addEventListener("keydown",bound(this,"_onKeyDown"))},_clearListeners:function(){this._showerListeners.offAll(),window.removeEventListener("resize",bound(this,"_onResize")),document.removeEventListener("keydown",bound(this,"_onKeyDown"))},_getTransformScale:function(){var denominator=Math.max(document.body.clientWidth/window.innerWidth,document.body.clientHeight/window.innerHeight);return"scale("+1/denominator+")"},_applyTransform:function(transformValue){["WebkitTransform","MozTransform","msTransform","OTransform","transform"].forEach(function(property){document.body.style[property]=transformValue})},_onResize:function(){this.isSlideMode()&&this._applyTransform(this._getTransformScale())},_onSlideAdd:function(e){var slide=e.get("slide");slide.events.on("click",this._onSlideClick,this)},_onSlideRemove:function(e){var slide=e.get("slide");slide.events.off("click",this._onSlideClick,this)},_onSlideClick:function(){this._isSlideMode||this.enterSlideMode()},_onKeyDown:function(e){if(this._shower.isHotkeysEnabled())switch(e.which){case 13:if(e.preventDefault(),!this.isSlideMode()&&e.metaKey){var slideNumber=e.shiftKey?0:this._shower.player.getCurrentSlideIndex();this._shower.player.go(slideNumber),this.enterSlideMode()}else e.shiftKey?this._shower.player.prev():this._shower.player.next();break;case 27:e.preventDefault(),this.exitSlideMode();break;case 116:if(!this.isSlideMode()&&e.shiftKey){e.preventDefault();var slideNumber=this._shower.player.getCurrentSlideIndex();this._shower.player.go(slideNumber),this.enterSlideMode()}break;case 80:!this.isSlideMode()&&e.altKey&&e.metaKey&&(e.preventDefault(),this.enterSlideMode())}}}),provide(Container)}),shower.modules.define("shower.Location",["util.SessionStore","util.bound","util.extend"],function(provide,SessionStore,bound,extend){function Location(shower){this._shower=shower;var sessionStoreKey=shower.options.get("sessionstore_key")+"-shower.Location";this.state=new SessionStore(sessionStoreKey,{isSlideMode:!1}),this._showerListeners=null,this._playerListeners=null,this._documentTitle=document.title,this._popStateProcess=null,this._setupListeners(),this._init()}extend(Location.prototype,{destroy:function(){this._clearListeners()},save:function(){this.state.set("isSlideMode",this._isSlideMode())},_init:function(){var slideInfo,shower=this._shower,currentSlideId=window.location.hash.substr(1),slideModeClass=shower.options.get("mode_full_classname");window.location.hash="",(this.state.get("isSlideMode")||document.body.classList.contains(slideModeClass))&&shower.container.enterSlideMode(),""!==currentSlideId&&(slideInfo=this._getSlideById(currentSlideId),shower.player.go("undefined"!=typeof slideInfo.index?slideInfo.index:0))},_setupListeners:function(){var shower=this._shower;this._playerListeners=shower.player.events.group().on("activate",this._onSlideActivate,this),this._containerListener=shower.container.events.group().on(["slidemodeenter","slidemodeexit"],this._onContainerSlideModeChange,this),window.addEventListener("popstate",bound(this,"_onPopstate"))},_clearListeners:function(){window.removeEventListener("popstate",bound(this,"_onPopstate")),this._playerListeners.offAll(),this._containerListener.offAll()},_getSlideById:function(slideId){for(var slide,index,slides=this._shower.getSlides(),i=slides.length-1;i>=0;i--)if(slides[i].getId()===slideId){slide=slides[i],index=i;break}return{slide:slide,index:index}},_onSlideActivate:function(e){window.location.hash=e.get("slide").getId(),this._setTitle()},_onContainerSlideModeChange:function(){this._setTitle(),this.save()},_isSlideMode:function(){return this._shower.container.isSlideMode()},_onPopstate:function(){var slideInfo,shower=this._shower,slideId=window.location.hash.substr(1),currentSlide=shower.player.getCurrentSlide(),currentSlideNumber=shower.player.getCurrentSlideIndex();this._isSlideMode()&&currentSlideNumber===-1?shower.player.go(0):currentSlideNumber===-1&&""!==window.location.hash&&shower.player.go(0),currentSlide&&slideId!==currentSlide.getId()&&(slideInfo=this._getSlideById(slideId),shower.player.go(slideInfo.index))},_setTitle:function(){var title=document.title,isSlideMode=this._isSlideMode(),currentSlide=this._shower.player.getCurrentSlide();if(isSlideMode&&currentSlide){var slideTitle=currentSlide.getTitle();document.title=slideTitle?slideTitle+" — "+this._documentTitle:this._documentTitle}else this._documentTitle!==title&&(document.title=this._documentTitle)}}),provide(Location)}),shower.modules.define("shower.Player",["Emitter","util.bound","util.extend"],function(provide,EventEmitter,bound,extend){function Player(shower){this.events=new EventEmitter({context:this,parent:shower.events}),this._shower=shower,this._showerListeners=null,this._playerListeners=null,this._currentSlideNumber=-1,this._currentSlide=null,this.init()}extend(Player.prototype,{init:function(){this._showerListeners=this._shower.events.group().on("slideadd",this._onSlideAdd,this).on("slideremove",this._onSlideRemove,this).on("slidemodeenter",this._onSlideModeEnter,this),this._playerListeners=this.events.group().on("prev",this._onPrev,this).on("next",this._onNext,this).on("prevslide",this._onPrev,this).on("nextslide",this._onNext,this),document.addEventListener("keydown",bound(this,"_onKeyDown"))},destroy:function(){this._showerListeners.offAll(),this._playerListeners.offAll(),document.removeEventListener("keydown",bound(this,"_onKeyDown")),this._currentSlide=null,this._currentSlideNumber=null,this._shower=null},next:function(){return this.events.emit("next"),this},prev:function(){return this.events.emit("prev"),this},nextSlide:function(){return this.events.emit("nextslide"),this},prevSlide:function(){return this.events.emit("prevslide"),this},first:function(){return this.go(0),this},last:function(){return this.go(this._shower.getSlidesCount()-1),this},go:function(index){"number"!=typeof index&&(index=this._shower.getSlideIndex(index));var slidesCount=this._shower.getSlidesCount(),currentSlide=this._currentSlide;return index!=this._currentSlideNumber&&index<slidesCount&&index>=0&&(currentSlide&&currentSlide.isActive()&&currentSlide.deactivate(),currentSlide=this._shower.get(index),this._currentSlide=currentSlide,this._currentSlideNumber=index,currentSlide.isActive()||currentSlide.activate(),this.events.emit("activate",{index:index,slide:currentSlide})),this},getCurrentSlide:function(){return this._currentSlide},getCurrentSlideIndex:function(){return this._currentSlideNumber},_onPrev:function(){this._changeSlide(this._currentSlideNumber-1)},_onNext:function(){this._changeSlide(this._currentSlideNumber+1)},_changeSlide:function(index){this.go(index)},_onSlideAdd:function(e){var slide=e.get("slide");slide.events.on("activate",this._onSlideActivate,this)},_onSlideRemove:function(e){var slide=e.get("slide");slide.events.off("activate",this._onSlideActivate,this)},_onSlideActivate:function(e){var slide=e.get("slide"),slideNumber=this._shower.getSlideIndex(slide);this.go(slideNumber)},_onKeyDown:function(e){if(this._shower.isHotkeysEnabled()&&!/^(?:button|input|select|textarea)$/i.test(e.target.tagName)){this.events.emit("keydown",{event:e});var action,allowModifiers=!1;switch(e.which){case 33:case 38:case 37:case 72:case 75:case 80:action=e.shiftKey?"prevSlide":"prev";break;case 34:case 40:case 39:case 76:case 74:case 78:action=e.shiftKey?"nextSlide":"next";break;case 36:allowModifiers=!0,action="first";break;case 35:allowModifiers=!0,action="last";break;case 32:this._shower.container.isSlideMode()&&(action=e.shiftKey?"prev":"next")}!action||!allowModifiers&&(e.altKey||e.ctrlKey||e.metaKey)||(e.preventDefault(),this[action]())}},_onSlideModeEnter:function(){this._currentSlide||this.go(0)}}),provide(Player)}),shower.modules.define("shower.defaultOptions",function(provide,slidesParser){provide({container_selector:".shower",debug_mode:!1,debug_mode_classname:"debug",hotkeys:!0,sessionstore_key:"shower",slides_selector:".shower .slide",mode_full_classname:"full",mode_list_classname:"list",slide_title_element_selector:"H2",slide_active_classname:"active",slide_visited_classname:"visited"})}),shower.modules.define("shower.slidesParser",["Slide"],function(provide,Slide){function parse(containerElement,cssSelector){var slidesElements=containerElement.querySelectorAll(cssSelector);return slidesElements=Array.prototype.slice.call(slidesElements),slidesElements.map(function(slideElement,index){var slide=new Slide(slideElement);return slideElement.id||(slideElement.id=index+1),slide})}provide(parse)}),shower.modules.define("Slide",["shower.defaultOptions","Emitter","Options","slide.Layout","slide.layoutFactory","util.Store","util.extend"],function(provide,defaultOptions,EventEmitter,OptionsManager,Layout,slideLayoutFactory,DataStore,extend){function Slide(content,options,state){this.events=new EventEmitter,this.options=new OptionsManager(options),this.layout=null,this.state=new DataStore({visited:0,index:null},state),this._content=content,this._isVisited=this.state.get("visited")>0,this._isActive=!1,this.init()}extend(Slide.prototype,{init:function(){this.layout="string"==typeof this._content?new slideLayoutFactory.createLayout({content:this._content}):new Layout(this._content,this.options),this.layout.setParent(this),
this._setupListeners()},destroy:function(){this._clearListeners(),this._isActive=null,this.options=null,this.layout.destroy()},activate:function(){this._isActive=!0;var visited=this.state.get("visited");return this.state.set("visited",++visited),this.events.emit("activate",{slide:this}),this},deactivate:function(){return this._isActive=!1,this.events.emit("deactivate",{slide:this}),this},isActive:function(){return this._isActive},isVisited:function(){return this.state.get("visited")>0},getTitle:function(){return this.layout.getTitle()},setTitle:function(title){return this.layout.setTitle(title),this},getId:function(){return this.layout.getElement().id},getContent:function(){return this.layout.getContent()},_setupListeners:function(){this.layoutListeners=this.layout.events.group().on("click",this._onSlideClick,this)},_clearListeners:function(){this.layoutListeners.offAll()},_onSlideClick:function(){this.activate(),this.events.emit("click",{slide:this})}}),provide(Slide)}),shower.modules.define("slide.Layout",["Options","shower.defaultOptions","Emitter","util.bound","util.extend"],function(provide,OptionsManager,defaultOptions,EventEmitter,bound,extend){function Layout(element,options){this.options=new OptionsManager({title_element_selector:defaultOptions.slide_title_element_selector,active_classname:defaultOptions.slide_active_classname,visited_classname:defaultOptions.slide_visited_classname},options),this.events=new EventEmitter,this._element=element,this._parent=null,this._parentElement=null,this.init()}extend(Layout.prototype,{init:function(){var parentNode=this._element.parentNode;parentNode?this._parentElement=parentNode:this.setParentElement(parentNode)},destroy:function(){this.setParent(null)},setParent:function(parent){this._parent!=parent&&(this._clearListeners(),this._parent=parent,this._parent&&this._setupListeners(),this.events.emit("parentchange",{parent:parent}))},getParent:function(){return this._parent},setParentElement:function(parentElement){parentElement!=this._parentElement&&(this._parentElement=parentElement,parentElement.appendChild(this._element),this.events.emit("parentelementchange",{parentElement:parentElement}))},getParentElement:function(){return this._parentElement},getElement:function(){return this._element},setTitle:function(title){var titleElementSelector=this.options.get("title_element_selector"),titleElement=this._element.querySelector(titleElementSelector);titleElement?titleElement.innerHTML=title:(titleElement=document.createElement(titleElementSelector),titleElement.innerHTML=title,this._element.insertBefore(titleElement,this._element.firstChild))},getTitle:function(){var titleElementSelector=this.options.get("title_element_selector"),titleElement=this._element.querySelector(titleElementSelector);return titleElement?titleElement.textContent:null},getData:function(name){var element=this._element;return element.dataset?element.dataset[name]:element.getAttribute("data-"+name)},getContent:function(){return this._element.innerHTML},_setupListeners:function(){this._slideListeners=this._parent.events.group().on("activate",this._onSlideActivate,this).on("deactivate",this._onSlideDeactivate,this),this._element.addEventListener("click",bound(this,"_onSlideClick"),!1)},_clearListeners:function(){this._slideListeners&&this._slideListeners.offAll(),this._element.removeEventListener("click",bound(this,"_onSlideClick"))},_onSlideActivate:function(){this._element.classList.add(this.options.get("active_classname"))},_onSlideDeactivate:function(){var elementClassList=this._element.classList;elementClassList.remove(this.options.get("active_classname")),elementClassList.add(this.options.get("visited_classname"))},_onSlideClick:function(){this.events.emit("click")}}),provide(Layout)}),shower.modules.define("slide.layoutFactory",["slide.Layout","util.extend"],function(provide,SlideLayout,extend){var layoutFactory={};extend(layoutFactory,{createLayout:function(parameters){parameters=parameters||{};var element=layoutFactory._createElement(extend({content:"",contentType:"slide"},parameters));return new SlideLayout(element)},_createElement:function(options){var element=document.createElement("section");return element.innerHTML=options.content,element.classList.add(options.contentType),element}}),provide(layoutFactory)}),shower.modules.define("util.SessionStore",["util.Store","util.inherit"],function(provide,Store,inherit){function SessionStore(storeKey,initData){this._storageKey=storeKey;var data=this._loadFromStorage()||initData;SessionStore.super.constructor.call(this,data)}inherit(SessionStore,Store,{set:function(key,value){SessionStore.super.set.call(this,key,value),this._saveToStorage()},unset:function(key){SessionStore.super.unset.call(this,key),this._saveToStorage()},_saveToStorage:function(){window.sessionStorage.setItem(this._storageKey,JSON.stringify(this.getAll()))},_loadFromStorage:function(){var store=window.sessionStorage.getItem(this._storageKey);return store&&JSON.parse(store)}}),provide(SessionStore)}),shower.modules.define("util.Store",["util.extend"],function(provide,extend){function Store(initData){this._data=initData||{};for(var i=1,k=arguments.length;i<k;i++)extend(this._data,arguments[i]||{})}extend(Store.prototype,{get:function(key,defaultValue){return this._data.hasOwnProperty(key)?this._data[key]:defaultValue},getAll:function(){return extend({},this._data)},set:function(key,value){return this._data[key]=value,this},unset:function(key){if(!this._data.hasOwnProperty(key))throw new Error(key+" not found.");return delete this._data[key],this},destroy:function(){this._data={}}}),provide(Store)}),shower.modules.define("util.bound",function(provide){function bound(ctx,fn){return ctx["__bound_"+fn]||(ctx["__bound_"+fn]=ctx[fn].bind(ctx))}provide(bound)}),shower.modules.define("util.extend",function(provide){function extend(target){if(!target)throw new Error("util.extend: Target not found");return"undefined"==typeof Object.assign?polyfill.apply(null,arguments):Object.assign.apply(null,arguments)}function polyfill(target){for(var i=1,l=arguments.length;i<l;i++){var obj=arguments[i];for(var property in obj)obj.hasOwnProperty(property)&&(target[property]=obj[property])}return target}provide(extend)}),shower.modules.define("util.inherit",["util.extend"],function(provide,extend){var inherit=function(childClass,parentClass,override){return childClass.prototype=Object.create(parentClass.prototype),childClass.prototype.constructor=childClass,childClass.super=parentClass.prototype,childClass.super.constructor=parentClass,override&&extend(childClass.prototype,override),childClass.prototype};provide(inherit)}),shower.modules.define("shower-next",["shower","Emitter","util.extend"],function(provide,globalShower,EventEmitter,extend){function Next(shower,options){options=options||{},this.events=new EventEmitter({context:this}),this._shower=shower,this._elementsSelector=options.selector||DEFAULT_SELECTOR,this._elements=[],this._innerComplete=0,this._setupListeners(),this._shower.player.getCurrentSlideIndex()!=-1&&this._onSlideActivate()}var TIMER_PLUGIN_NAME="shower-timer",DEFAULT_SELECTOR=".next";extend(Next.prototype,{destroy:function(){this._clearListeners(),this._elements=null,this._elementsSelector=null,this._innerComplete=null,this._shower=null},next:function(){if(!this._elements.length)throw new Error("Inner nav elements not found.");return this._innerComplete++,this._go(),this.events.emit("next"),this},prev:function(){if(!this._elements.length)throw new Error("Inner nav elements not found.");return this._innerComplete--,this._go(),this.events.emit("prev"),this},getLength:function(){return this._elements=this._getElements(),this._elements.length},getComplete:function(){return this._innerComplete},_setupListeners:function(){var shower=this._shower;this._showerListeners=shower.events.group().on("destroy",this.destroy,this),this._playerListeners=shower.player.events.group().on("activate",this._onSlideActivate,this).on("next",this._onNext,this).on("prev",this._onPrev,this);var timerPlugin=globalShower.plugins.get(TIMER_PLUGIN_NAME,shower);timerPlugin?this._setupTimerPluginListener(timerPlugin):this._pluginsListeners=globalShower.plugins.events.group().on("add",function(e){e.get("name")===TIMER_PLUGIN_NAME&&(this._setupTimerPluginListener(),this._pluginsListeners.offAll())},this)},_setupTimerPluginListener:function(plugin){if(!plugin){globalShower.plugins.get(TIMER_PLUGIN_NAME,this._shower)}plugin.events.on("next",this._onNext,this,100)},_clearListeners:function(){this._showerListeners.offAll(),this._playerListeners.offAll(),this._pluginsListeners&&this._pluginsListeners.offAll()},_getElements:function(){var slideLayout=this._shower.player.getCurrentSlide().layout,slideElement=slideLayout.getElement();return Array.prototype.slice.call(slideElement.querySelectorAll(this._elementsSelector))},_onNext:function(e){var elementsLength=this._elements.length,isSlideMode=this._shower.container.isSlideMode();isSlideMode&&elementsLength&&this._innerComplete<elementsLength&&(e.preventDefault(),this.next())},_onPrev:function(e){var elementsLength=this._elements.length,completed=(this._shower.container.isSlideMode(),this._innerComplete);elementsLength&&completed<elementsLength&&completed>0&&(e.preventDefault(),this.prev())},_go:function(){for(var i=0,k=this._elements.length;i<k;i++){var element=this._elements[i];i<this._innerComplete?element.classList.add("active"):element.classList.remove("active")}},_onSlideActivate:function(){this._elements=this._getElements(),this._innerComplete=this._getInnerComplete()},_getInnerComplete:function(){return this._elements.filter(function(element){return element.classList.contains("active")}).length}}),provide(Next)}),shower.modules.require(["shower"],function(sh){sh.plugins.add("shower-next")}),shower.modules.define("shower-progress",["util.extend"],function(provide,extend){function Progress(shower,options){options=options||{},this._shower=shower,this._playerListeners=null,this._element=null,this._elementSelector=options.selector||".progress";var showerContainerElement=this._shower.container.getElement();this._element=showerContainerElement.querySelector(this._elementSelector),this._element&&(this._setupListeners(),this._element.setAttribute("role","progressbar"),this._element.setAttribute("aria-valuemin","0"),this._element.setAttribute("aria-valuemax","100"),this.updateProgress())}extend(Progress.prototype,{destroy:function(){this._clearListeners(),this._shower=null},updateProgress:function(){var slidesCount=this._shower.getSlidesCount(),currentSlideNumber=this._shower.player.getCurrentSlideIndex(),currentProgressValue=100/(slidesCount-1)*currentSlideNumber;this._element&&(this._element.style.width=currentProgressValue.toFixed(2)+"%",this._element.setAttribute("aria-valuenow",currentProgressValue.toFixed()),this._element.setAttribute("aria-valuetext","Slideshow Progress: "+currentProgressValue.toFixed()+"%"))},_setupListeners:function(){var shower=this._shower;this._showerListeners=shower.events.group().on("destroy",this.destroy,this),this._playerListeners=shower.player.events.group().on("activate",this._onSlideChange,this)},_clearListeners:function(){this._showerListeners&&this._showerListeners.offAll(),this._playerListeners&&this._playerListeners.offAll()},_onSlideChange:function(){this.updateProgress()}}),provide(Progress)}),shower.modules.require(["shower"],function(sh){sh.plugins.add("shower-progress")}),shower.modules.define("shower-timer",["shower","Emitter","util.extend"],function(provide,showerGlobal,EventEmitter,extend){function Timer(shower){this.events=new EventEmitter,this._shower=shower,this._timer=null,this._showerListeners=null,this._playerListeners=null,this._pluginsListeners=null,this._setupListeners()}var PLUGIN_NAME_NEXT="shower-next";extend(Timer.prototype,{destroy:function(){this._clearTimer(),this._clearListeners(),this._shower=null},run:function(timing){this._initTimer(timing)},stop:function(){this._clearTimer()},_setupListeners:function(){var shower=this._shower;this.events.on("next",this._onNext,this),this._showerListeners=shower.events.group().on("destroy",this.destroy,this),this._playerListeners=shower.player.events.group().on("keydown",this._clearTimer,this).on("activate",this._onSlideActivate,this),this._nextPlugin=showerGlobal.plugins.get(PLUGIN_NAME_NEXT,shower),this._nextPlugin||(this._pluginsListeners=shower.plugins.events.group().on("pluginadd",function(e){e.get("name")===PLUGIN_NAME_NEXT&&(this._nextPlugin=shower.plugins.get(PLUGIN_NAME_NEXT),this._pluginsListeners.offAll())},this)),shower.player.getCurrentSlideIndex()!=-1&&this._onSlideActivate()},_clearListeners:function(){this._showerListeners.offAll(),this._playerListeners.offAll()},_onSlideActivate:function(){this._clearTimer();var currentSlide=this._shower.player.getCurrentSlide();if(this._shower.container.isSlideMode()&&currentSlide.state.get("visited")<2){var timing=currentSlide.layout.getData("timing");timing&&/^(\d{1,2}:)?\d{1,3}$/.test(timing)&&(timing.indexOf(":")!==-1?(timing=timing.split(":"),timing=1e3*(60*parseInt(timing[0],10)+parseInt(timing[1],10))):timing=1e3*parseInt(timing,10),0!==timing&&this._initTimer(timing))}},_initTimer:function(timing){var events=this.events,nextPlugin=(this._shower,this._nextPlugin);nextPlugin&&nextPlugin.getLength()&&nextPlugin.getLength()!=nextPlugin.getComplete()&&(timing/=nextPlugin.getLength()+1),this._timer=setInterval(function(){events.emit("next")},timing)},_clearTimer:function(){this._timer&&(clearInterval(this._timer),this._timer=null)},_onNext:function(){this._clearTimer(),this._shower.player.next()}}),provide(Timer)}),shower.modules.require(["shower"],function(sh){sh.plugins.add("shower-timer")}),shower.modules.define("shower-touch",["util.extend"],function(provide,extend){function Touch(shower,options){options=options||{},this._shower=shower,this._setupListeners()}var INTERACTIVE_ELEMENTS=["VIDEO","AUDIO","A","BUTTON","INPUT"];extend(Touch.prototype,{destroy:function(){this._clearListeners(),this._shower=null},_setupListeners:function(){var shower=this._shower;this._showerListeners=shower.events.group().on("add",this._onSlideAdd,this),this._bindedTouchStart=this._onTouchStart.bind(this),this._bindedTouchMove=this._onTouchMove.bind(this),this._shower.getSlides().forEach(this._addTouchStartListener,this),document.addEventListener("touchmove",this._bindedTouchMove,!0)},_clearListeners:function(){this._showerListeners.offAll(),this._shower.getSlides().forEach(this._removeTouchStartListener,this),document.removeEventListener("touchmove",this._bindedTouchMove,!1)},_onSlideAdd:function(event){var slide=event.get("slide");this._addTouchStartListener(slide)},_addTouchStartListener:function(slide){var element=slide.layout.getElement();element.addEventListener("touchstart",this._bindedTouchStart,!1)},_removeTouchStartListener:function(slide){var element=slide.layout.getElement();element.removeEventListener("touchstart",this._bindedTouchStart,!1)},_onTouchStart:function(e){var x,shower=this._shower,isSlideMode=shower.container.isSlideMode(),element=e.target,slide=this._getSlideByElement(e.currentTarget);slide&&(isSlideMode&&!this._isInteractiveElement(element)&&(e.preventDefault(),x=e.touches[0].pageX,x>window.innerWidth/2?shower.player.next():shower.player.prev()),isSlideMode||slide.activate())},_onTouchMove:function(e){this._shower.container.isSlideMode()&&e.preventDefault()},_getSlideByElement:function(element){for(var slides=this._shower.getSlides(),result=null,i=0,k=slides.length;i<k;i++)if(element.id===slides[i].getId()){result=this._shower.get(i);break}return result},_isInteractiveElement:function(element){return INTERACTIVE_ELEMENTS.some(function(elName){return elName===element.tagName})}}),provide(Touch)}),shower.modules.require(["shower"],function(sh){sh.plugins.add("shower-touch")});
\ No newline at end of file
# The MIT License
Copyright © 2010–2018 Vadim Makeev, http://pepelsbey.net/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---
# Лицензия MIT
Copyright © 2010–2018 Вадим Макеев, http://pepelsbey.net/
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий:
Указанное выше уведомление об авторском праве и данные условия должны быть включены во все копии или значимые части данного Программного Обеспечения.
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ.
# Material theme for Shower [![Build Status](https://travis-ci.org/shower/material.svg?branch=master)](https://travis-ci.org/shower/material)
![Ribbon screen shot](pictures/canvas.png)
Default theme for the [Shower](https://github.com/shower/shower/) presentation engine. Doesn’t include engine itself. [See it in action](http://shwr.me/shower/themes/material/). Follow [@shower_me](https://twitter.com/shower_me) for support and updates, [file an issue](https://github.com/shower/shower/issues/new) if you have any.
## Usage
Get the Shower template where Material is already included. Download the [template archive](http://shwr.me/shower.zip) or install the package:
npm install shower
If you want to install Material separately you can install the package:
npm install shower-material
## Features
All theme’s features are demonstrated in the [index.html](index.html) file, [see it live](https://shwr.me/shower/themes/material/). Use it as a reference while building your presentation. See more detailed [features overview](https://github.com/shower/shower/blob/master/docs/features.md).
## Ratios
Material theme supports any slide ratio you want. But it’s optimized for the most common ones: 16×9 and 4×3. It’s 16×9 by default, but you can change it by adjusting `--slide-ratio` property for `.shower`, [see example](https://github.com/shower/ribbon/blob/master/index.html#L10) in `index.html`.
## Key color
By default Material theme is green, but you can easily change the key color by adjusting `--color-key` property for `.shower`. You can choose any color you want, just make sure that it’s dark enough for a good contrast. For example, in [Material Color Tool](https://material.io/tools/color/) good colors start at 500 column.
## PDF
Ribbon could be exported to PDF by printing it from the list mode in Chrome or Opera browsers. See [printing documentation](https://github.com/shower/shower/blob/master/docs/pdf.md) for more options.
## Development
If you want to adjust theme for your needs:
1. Fork this repository and clone it to your local machine.
2. Install dependencies: `npm install`.
3. Start a local server with watcher: `npm run dev` or just `gulp` if you have it installed globally.
4. Edit your files and see changes in the opened browser.
To take part in Material development please read [contributing guidelines](CONTRIBUTING.md) first and [file an issue](https://github.com/shower/shower/issues/new) before sending any pull request.
---
Licensed under [MIT License](LICENSE.md).
Copyright 2011 Google Inc. All Rights Reserved.
\ No newline at end of file
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Material theme for Shower</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles/styles.css">
<style>
.shower {
--slide-ratio: calc(16 / 9);
--color-key: #4caf50;
}
</style>
</head>
<body class="shower list">
<header class="caption">
<h1>Presentation Title</h1>
<p><a href="">Yours Truly</a>, Famous Inc.</p>
</header>
<section class="slide">
<h2>Slide Header</h2>
<p>Echo Park 8-bit sustainable umami deep v Kickstarter. DIY cliche typewriter brunch, Odd Future sriracha pickled aesthetic. Farm-to-table bespoke fingerstache, kale chips umami brunch letterpress.</p>
<p>Whatever authentic disrupt, you probably haven’t heard of them direct trade mlkshk Etsy. Gluten-free roof party plaid four loko quinoa.</p>
<p class="note">Echo Park 8-bit sustainable umami deep v Kickstarter.</p>
</section>
<section class="slide">
<h2><a href="">Linked Header</a></h2>
<p>Retro meh brunch aesthetic Cosby sweater Shoreditch. Banksy Tumblr sriracha, flexitarian pug chia master cleanse vinyl wayfarers fanny pack bespoke Helvetica roof party. Messenger bag retro cred Portland next level. Yr stumptown Schlitz Carles deep v small batch. Echo Park 8-bit sustainable umami deep v Kickstarter. Hella sustainable messenger bag, leggings skateboard literally bicycle rights H₂0 mumblecore banh mi DIY VHS. Semiotics four loko street art asymmetrical.</p>
</section>
<section class="slide">
<h2>
Multiline<br>
Header
</h2>
<p>Retro meh brunch aesthetic Cosby sweater Shoreditch. Banksy Tumblr sriracha, flexitarian pug chia master cleanse vinyl wayfarers fanny pack bespoke Helvetica roof party. Messenger bag retro cred Portland next level. Yr stumptown Schlitz Carles deep v small batch. Hella sustainable messenger bag, leggings skateboard literally bicycle rights H₂0 mumblecore banh mi DIY VHS. Semiotics four loko street art asymmetrical.</p>
</section>
<section class="slide">
<h2>Inline Elements</h2>
<p>Retro meh brunch <a href="">aesthetic</a> Cosby sweater Shoreditch. Banksy Tumblr <strong>sriracha</strong>, flexitarian pug chia master cleanse vinyl <em>wayfarers</em> fanny pack bespoke Helvetica <b>roof</b> party. Messenger bag retro cred <i>Portland</i> next level. Yr stumptown Schlitz Carles deep v small batch. Hella sustainable messenger bag, <mark>leggings</mark> skateboard literally<sup>1</sup> bicycle rights H<sub>2</sub>0 mumblecore banh mi DIY VHS. Semiotics four loko street art asymmetrical. Asymmetrical <code>&lt;paleo&gt;</code> you probably haven’t heard of.</p>
<footer class="footer">
<p>Flannel bicycle rights locavore selfies skateboard. Authentic fanny pack paleo four loko bespoke. Artisan tattooed chia XOXO ennui, lomo disrupt 8-bit art party Tumblr scenester. Post-ironic fashion axe flexitarian, Tonx narwhal messenger bag Tumblr. Portland gentrify deep v kale chips literally.</p>
</footer>
</section>
<section class="slide">
<h2>Quotes</h2>
<blockquote>
<p>Flannel bicycle rights locavore selfies skateboard. Authentic fanny pack paleo four loko bespoke. Artisan tattooed chia XOXO ennui, lomo disrupt 8-bit art party Tumblr scenester.</p>
</blockquote>
<figure>
<blockquote>
<p>Post-ironic fashion axe flexitarian, Tonx narwhal messenger bag Tumblr. Portland gentrify deep v kale chips literally.</p>
</blockquote>
<figcaption>Yours Truly</figcaption>
</figure>
</section>
<section class="slide">
<h2>Ordered Lists</h2>
<ol>
<li>Literally viral vegan, ugh drinking vinegar photo booth</li>
<li>Wes Anderson chillwave Marfa pour-over Etsy banh mi</li>
<li>Ethnic polaroid lo-fi iPhone ennui</li>
<li>Yr wayfarers before they sold out Kickstarter asymmetrical</li>
<li>Irony flexitarian readymade quinoa, kogi bespoke meggings narwhal</li>
<li>Skateboard Etsy twee artisan Echo Park</li>
<li>Tonx kitsch fingerstache readymade, retro single-origin coffee</li>
</ol>
</section>
<section class="slide">
<h2>Unordered Lists</h2>
<ul>
<li>Literally viral vegan, ugh drinking vinegar photo booth</li>
<li>Wes Anderson chillwave Marfa pour-over Etsy banh mi</li>
<li>Ethnic polaroid lo-fi iPhone ennui</li>
<li>Yr wayfarers before they sold out Kickstarter asymmetrical</li>
<li>Irony flexitarian readymade quinoa, kogi bespoke meggings narwhal</li>
<li>Skateboard Etsy twee artisan Echo Park</li>
<li>Tonx kitsch fingerstache readymade, retro single-origin coffee</li>
</ul>
</section>
<section class="slide">
<h2>Block Lists</h2>
<ul>
<li>Retro meh brunch aesthetic Cosby sweater Shoreditch. Banksy Tumblr sriracha, flexitarian pug chia master cleanse vinyl wayfarers fanny pack.</li>
<li>Messenger bag retro cred Portland next level. Yr stumptown Schlitz Carles deep v small batch. Hella sustainable messenger bag.</li>
<li>Leggings skateboard literally bicycle rights H₂0 mumblecore banh mi DIY VHS. Semiotics four loko street art asymmetrical. Asymmetrical paleo you probably haven’t heard of.</li>
</ul>
</section>
<section class="slide">
<h2>Nested Lists</h2>
<ol>
<li>Literally viral vegan, ugh drinking vinegar photo booth</li>
<li>Wes Anderson chillwave Marfa pour-over Etsy banh mi</li>
<li>Ethnic polaroid lo-fi iPhone ennui
<ul>
<li>Yr wayfarers before they sold out Kickstarter asymmetrical</li>
<li>Irony flexitarian readymade quinoa, kogi bespoke meggings narwhal</li>
<li>Skateboard Etsy twee artisan Echo Park</li>
</ul>
</li>
<li>Tonx kitsch fingerstache readymade, retro single-origin coffee</li>
</ol>
</section>
<section class="slide">
<h2>Latin and Cyrillic List Bullets</h2>
<ul lang="en">
<li>Occupy locavore blog, mustache you probably haven’t heard of them</li>
<li>Skateboard pork belly aesthetic hoodie selfies brunch</li>
<li>Food truck gluten-free disrupt Portland</li>
</ul>
<ul lang="ru">
<li>Helvetica narwhal drinking vinegar chillwave, post-ironic ennui</li>
<li>Cray pug paleo retro, Echo Park narwhal Wes Anderson</li>
<li>Disrupt Williamsburg fixie, shabby chic bicycle rights hashtag kogi</li>
</ul>
</section>
<section class="slide">
<h2>Custom List Bullets</h2>
<ul>
<li value="+">Helvetica narwhal drinking vinegar chillwave, post-ironic ennui</li>
<li value="−">Cray pug paleo retro, Echo Park narwhal Wes Anderson</li>
<li value="+">Disrupt Williamsburg fixie, shabby chic bicycle rights hashtag kogi</li>
</ul>
<ol>
<li value="100">Occupy locavore blog, mustache you probably haven’t heard of them</li>
<li value="10">Skateboard pork belly aesthetic hoodie selfies brunch</li>
<li value="1">Food truck gluten-free disrupt Portland</li>
</ol>
</section>
<section class="slide">
<h2>Two Columns</h2>
<div class="columns two">
<p>Echo Park 8-bit sustainable umami deep v Kickstarter. DIY cliche typewriter brunch, Odd Future sriracha pickled aesthetic. Farm-to-table bespoke fingerstache, kale chips umami brunch.</p>
<p>American Apparel letterpress. Whatever authentic disrupt, you probably haven’t heard of them direct trade mlkshk Etsy. Gluten-free roof party plaid American Apparel four loko quinoa.</p>
</div>
</section>
<section class="slide">
<h2>Two Lists</h2>
<div class="columns two">
<ul>
<li>Occupy locavore, mustache you probably haven’t heard of them</li>
<li>Skateboard pork belly aesthetic hoodie selfies brunch</li>
<li>Food truck gluten-free disrupt Portland</li>
</ul>
<ul>
<li>Helvetica narwhal drinking vinegar chillwave, post-ironic ennui</li>
<li>Cray pug paleo retro, Echo Park narwhal Wes Anderson</li>
<li>Disrupt Williamsburg fixie, shabby chic bicycle rights hashtag kogi</li>
</ul>
</div>
</section>
<section class="slide">
<h2>Three Lists</h2>
<div class="columns three">
<ul>
<li>Skateboard pork belly aesthetic hoodie selfies brunch.</li>
<li>You probably haven’t heard of them.</li>
</ul>
<ul>
<li>Food truck gluten-free Portland.</li>
<li>Helvetica narwhal drinking vinegar chillwave, post-ironic ennui</li>
</ul>
<ul>
<li>Cray pug paleo retro, Echo Park narwhal Wes Anderson</li>
<li>Disrupt fixie, shabby chic bicycle rights hashtag kogi</li>
</ul>
</div>
</section>
<section class="slide">
<h2>Four Lists</h2>
<div class="columns four">
<ul>
<li>Gentrify</li>
<li>Messenger</li>
<li>Meggings</li>
<li>Vegan</li>
<li>Next level</li>
<li>Umami</li>
</ul>
<ul>
<li>Twee</li>
<li>Mixtape</li>
<li>Freegan</li>
<li>Occupy</li>
<li>Selfies</li>
<li>Haven’t heard</li>
</ul>
<ul>
<li>Artisan</li>
<li>Small batch</li>
<li>Biodiesel</li>
<li>Normcore</li>
<li>Sustainable</li>
<li>Skateboard</li>
</ul>
<ul>
<li>Banksy</li>
<li>Bicycle rights</li>
<li>Slow-carb</li>
<li>Bird on it</li>
<li>Organic</li>
<li>Farm-to-table</li>
</ul>
</div>
</section>
<section class="slide">
<h2>Simple Table</h2>
<table>
<tr>
<th scope="col">Gentrify</th>
<th>Twee</th>
<th>Artisan</th>
<th>Banksy</th>
</tr>
<tr>
<th scope="row">Messenger</th>
<td>Mixtape</td>
<td>Small batch</td>
<td>Bicycle rights</td>
</tr>
<tr>
<th scope="row">Meggings</th>
<td>Freegan</td>
<td>Retro biodiesel</td>
<td>Slow-carb</td>
</tr>
<tr>
<th scope="row">Vegan</th>
<td>Occupy</td>
<td>Normcore</td>
<td>Put a bird on it</td>
</tr>
<tr>
<th scope="row">Next level</th>
<td>Selfies</td>
<td>Sustainable</td>
<td>Organic</td>
</tr>
<tr>
<th scope="row">Umami</th>
<td>Asymmetrical</td>
<td>Keytar</td>
<td>Craft beer</td>
</tr>
<tr>
<th scope="row">Biodiesel</th>
<td>Haven’t heard</td>
<td>Skateboard</td>
<td>Farm-to-table</td>
</tr>
</table>
</section>
<section class="slide">
<h2>Striped Table</h2>
<table class="striped">
<tr>
<th scope="col">Gentrify</th>
<th>Twee</th>
<th>Artisan</th>
<th>Banksy</th>
</tr>
<tr>
<th scope="row">Messenger</th>
<td>Mixtape</td>
<td>Small batch</td>
<td>Bicycle rights</td>
</tr>
<tr>
<th scope="row">Meggings</th>
<td>Freegan</td>
<td>Retro biodiesel</td>
<td>Slow-carb</td>
</tr>
<tr>
<th scope="row">Vegan</th>
<td>Occupy</td>
<td>Normcore</td>
<td>Put a bird on it</td>
</tr>
<tr>
<th scope="row">Next level</th>
<td>Selfies</td>
<td>Sustainable</td>
<td>Organic</td>
</tr>
<tr>
<th scope="row">Umami</th>
<td>Asymmetrical</td>
<td>Keytar</td>
<td>Craft beer</td>
</tr>
<tr>
<th scope="row">Biodiesel</th>
<td>Haven’t heard</td>
<td>Skateboard</td>
<td>Farm-to-table</td>
</tr>
</table>
</section>
<section class="slide">
<h2>Plain Code Listing</h2>
<pre><code>&lt;html lang="en"&gt;
<mark>&lt;head&gt;</mark> <span class="comment">&lt;!--Comment--&gt;</span>
&lt;title&gt;Shower&lt;/title&gt;
&lt;meta charset="<mark class="important">UTF-8</mark>"&gt;
&lt;link rel="stylesheet" href="screen.css"&gt;
&lt;script src="script.js"&gt;&lt;/script&gt;
<mark>&lt;/head&gt;</mark></code></pre>
</section>
<section class="slide">
<h2>Numbered Code Listing</h2>
<pre>
<code>&lt;html lang="en"&gt;</code>
<code><mark>&lt;head&gt;</mark> <span class="comment">&lt;!--Comment--&gt;</span></code>
<code> &lt;title&gt;Shower&lt;/title&gt;</code>
<code> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code> &lt;script src="script.js"&gt;&lt;/script&gt;</code>
<code><mark>&lt;/head&gt;</mark></code>
</pre>
</section>
<section class="slide">
<h2>Highlighted Code Lines</h2>
<pre>
<code>&lt;html lang="en"&gt;</code>
<code class="mark">&lt;head&gt; <span class="comment">&lt;!--Comment--&gt;</span></code>
<code> &lt;title&gt;Shower&lt;/title&gt;</code>
<code> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code> &lt;script src="script.js"&gt;&lt;/script&gt;</code>
<code class="mark">&lt;/head&gt;</code>
</pre>
</section>
<section class="slide">
<h2>Hidden Code Steps</h2>
<pre>
<code class="next">&lt;html lang="en"&gt;</code>
<code class="next"><mark>&lt;head&gt;</mark> <span class="comment">&lt;!--Comment--&gt;</span></code>
<code class="next"> &lt;title&gt;Shower&lt;/title&gt;</code>
<code class="next"> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code class="next"> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code class="next"> &lt;script src="script.js"&gt;&lt;/script&gt;</code>
<code class="next"><mark>&lt;/head&gt;</mark></code>
</pre>
</section>
<section class="slide">
<h2>Highlighted Code Steps</h2>
<pre>
<code class="mark next">&lt;html lang="en"&gt;</code>
<code>&lt;head&gt; <span class="comment">&lt;!--Comment--&gt;</span></code>
<code class="mark next"> &lt;title&gt;Shower&lt;/title&gt;</code>
<code> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code class="mark next"> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code> &lt;script src="script.js"&gt;&lt;/script&gt;</code>
<code class="mark next">&lt;/head&gt;</code>
</pre>
</section>
<section class="slide white">
<h2>White Slide</h2>
</section>
<section class="slide black">
<h2>Black Slide</h2>
</section>
<section class="slide clear">
<h2>Clear Slide</h2>
</section>
<section class="slide">
<h2 class="shout">Shout</h2>
</section>
<section class="slide">
<h2 class="shout">
Multiline<br>
Shout
</h2>
</section>
<section class="slide">
<h2 class="shout">
<a href="">Linked Shout</a>
</h2>
</section>
<section class="slide">
<h2 class="shout">
<a href="">
Multiline<br>
Linked
</a>
</h2>
</section>
<section class="slide">
<h2>Cover</h2>
<figure>
<img class="cover" src="pictures/exact.svg" alt="Picture placeholder.">
<figcaption class="copyright top">Copyright © 2018 <a href="">Yours Truly</a>, Famous Inc.</figcaption>
<figcaption class="copyright">Copyright © 2018 <a href="">Yours Truly</a>, Famous Inc.</figcaption>
<figcaption class="copyright bottom">Copyright © 2018 <a href="">Yours Truly</a>, Famous Inc.</figcaption>
</figure>
</section>
<section class="slide">
<h2>Tall Cover</h2>
<img class="cover" src="pictures/tall.svg" alt="Tall picture placeholder.">
</section>
<section class="slide">
<h2>Wide Cover</h2>
<img class="cover" src="pictures/wide.svg" alt="Wide picture placeholder.">
</section>
<section class="slide clear">
<h2>Place</h2>
<img class="place top left" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place top" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place top right" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place left" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place right" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place bottom left" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place bottom" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place bottom right" src="pictures/square.svg" alt="Square picture placeholder.">
</section>
<section class="slide">
<h2>List Navigation</h2>
<ol>
<li>Ennui keffiyeh thundercats</li>
<li class="next">Jean shorts biodiesel</li>
<li class="next">Terry richardson, swag blog</li>
<li class="next">Locavore umami vegan helvetica</li>
<li class="next">Fingerstache kale chips</li>
</ol>
<p class="next">Before they sold out master</p>
</section>
<section class="slide clear">
<h2>Place + Next</h2>
<img class="place next left" height="100%" src="pictures/picture-1.svg" alt="Picture placeholder.">
<img class="place next" height="100%" src="pictures/picture-2.svg" alt="Picture placeholder.">
<img class="place next right" height="100%" src="pictures/picture-3.svg" alt="Picture placeholder.">
</section>
<section class="slide" data-timing="00:03">
<h2 class="shout">Timer</h2>
</section>
<section class="slide">
<h2 class="shout">The End</h2>
</section>
<div class="progress"></div>
<footer class="badge">
<a href="https://github.com/shower/shower">
<svg width="81" height="79" viewBox="0 0 81 79" aria-hidden="true">
<path d="M40.5 0a40.5 40.5 0 0 0-12.8 78.93c2 .37 2.76-.88 2.76-2s0-3.51-.05-6.89c-11.27 2.45-13.64-5.43-13.64-5.43-1.84-4.68-4.5-5.92-4.5-5.92-3.68-2.51.28-2.46.28-2.46 4.06.29 6.2 4.17 6.2 4.17 3.61 6.19 9.48 4.4 11.79 3.37a8.65 8.65 0 0 1 2.57-5.41c-9-1-18.45-4.5-18.45-20a15.65 15.65 0 0 1 4.17-10.87 14.57 14.57 0 0 1 .4-10.72s3.4-1.09 11.14 4.15a38.39 38.39 0 0 1 20.28 0c7.73-5.24 11.13-4.15 11.13-4.15a14.55 14.55 0 0 1 .4 10.72 15.63 15.63 0 0 1 4.16 10.87c0 15.56-9.47 19-18.49 20 1.45 1.25 2.75 3.72 2.75 7.5v11.11c0 1.08.73 2.34 2.78 1.95A40.51 40.51 0 0 0 40.5 0z"/>
</svg>
Fork me<br>on GitHub
</a>
</footer>
<script src="node_modules/shower-core/shower.min.js"></script>
<!-- Copyright © 2018 Yours Truly, Famous Inc. -->
</body>
</html>
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="576">
<rect width="1024" height="576" fill="#9a9a9a"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#9a9a9a" fill-opacity="0.2"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#9a9a9a" fill-opacity="0.6"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#9a9a9a" fill-opacity="1"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64">
<rect width="64" height="64" fill="#9a9a9a"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="1200">
<rect width="400" height="1200" fill="#9a9a9a"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="400">
<rect width="1200" height="400" fill="#9a9a9a"/>
</svg>
/* Badge */
.badge {
align-content: center;
justify-items: center;
outline:
calc(var(--slide-scale) * 8px)
dashed rgba(0, 0, 0, 0.2);
outline-offset: calc(
-1 * var(--slide-scale) * 8px
);
line-height: 1;
font-size: calc(
var(--slide-scale) * 48px
);
}
/* Elements */
.badge a {
display: inline-block;
margin-left: 4em;
color: var(--color-medium);
text-decoration: none;
}
.badge a:hover,
.badge a:focus {
outline: none;
color: var(--color-key);
}
.badge svg {
position: absolute;
margin: -1.1em 0 0 -4.5em;
width: 4em;
height: 4em;
fill: currentColor;
}
/* List */
.shower.list .badge {
display: grid;
}
/* Full */
.shower.full .badge {
display: none;
}
/* Print */
@media print {
.shower.list .badge,
.shower.full .badge {
display: none;
}
}
/* Caption */
.caption {
grid-column: 1 / -1;
margin-top: calc(
-1 * var(--slide-gap) * var(--slide-scale)
);
margin-left: calc(
-1 * var(--slide-gap) * var(--slide-scale)
);
padding-top: 0.8em;
padding-bottom: 0.9em;
padding-left: calc(
var(--slide-gap) * var(--slide-scale)
);
box-sizing: border-box;
width: 100vw;
background-color: var(--color-key);
background-image: var(--diagonal);
font-size: calc(
var(--slide-scale) * 96px
);
}
/* Elements */
.caption h1 {
margin: 0;
padding-bottom: 0.28em;
color: white;
font: 100 1.17em/1 'Roboto', sans-serif;
}
.caption p {
margin: 0;
color: rgba(255, 255, 255, 0.7);
line-height: 1;
font-size: 0.58em;
}
.caption a {
color: inherit;
text-decoration: none;
}
/* List */
.shower.list .caption {
display: block;
}
/* Full */
.shower.full .caption {
display: none;
}
/* Print */
@media print {
.shower.list .caption,
.shower.full .caption {
display: none;
}
}
/* Progress */
.progress {
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: var(--progress-size);
background-color: var(--color-key);
transition: width 0.2s linear;
box-shadow:
calc(var(--slide-width) / 2) 0 0
calc(var(--slide-width) / 2)
var(--color-light);
clip: rect(0 var(--slide-width) var(--progress-size) 0);
}
/* List */
.shower.list .progress {
display: none;
}
/* Full */
.shower.full .progress {
display: block;
}
/* Print */
@media print {
.shower.list .progress,
.shower.full .progress {
display: none;
}
}
/* Region */
.region {
position: absolute;
top: 0;
left: 0;
clip: rect(0 0 0 0);
}
/* List */
.shower.list .region {
display: none;
}
/* Full */
.shower.full .region {
display: block;
}
/* Print */
@media print {
.shower.list .region,
.shower.full .region {
display: none;
}
}
/* Roboto */
@font-face {
font-family: 'Roboto';
font-weight: 100;
font-display: swap;
src:
local('Roboto Light'),
local('Roboto-Light'),
url('../fonts/roboto-light.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-weight: 400;
font-display: swap;
src:
local('Roboto'),
local('Roboto-Regular'),
url('../fonts/roboto-regular.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-weight: 400;
font-style: italic;
font-display: swap;
src:
local('Roboto Italic'),
local('Roboto-Italic'),
url('../fonts/roboto-italic.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-weight: 700;
font-display: swap;
src:
local('Roboto Bold'),
local('Roboto-Bold'),
url('../fonts/roboto-bold.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-weight: 700;
font-style: italic;
font-display: swap;
src:
local('Roboto Bold Italic'),
local('Roboto-BoldItalic'),
url('../fonts/roboto-bold-italic.woff2') format('woff2');
}
/* Roboto Mono */
@font-face {
font-family: 'Roboto Mono';
font-display: swap;
src:
local('Roboto Mono'),
local('RobotoMono-Regular'),
url('../fonts/roboto-mono-regular.woff2') format('woff2');
}
<svg width="1024" height="768" xmlns="http://www.w3.org/2000/svg">
<defs>
<style>
.square {
stroke: red;
stroke-opacity: 0.1;
stroke-width: 1;
fill: transparent;
}
.grid {
fill: url(#grid);
}
.line {
stroke: #8af8f9;
}
</style>
<pattern x="0" y="0" width="24" height="24" viewBox="0 0 24 24" patternUnits="userSpaceOnUse" id="grid">
<rect x="0" y="0" width="24" height="24" class="square"/>
</pattern>
</defs>
<rect x="0" y="0" width="1024" height="768" class="grid"/>
<line x1="96" y1="0" x2="96" y2="768" class="line"/>
<line x1="192" x2="192" y1="0" y2="768" class="line"/>
<line x1="288" x2="288" y1="0" y2="768" class="line"/>
<line x1="384" x2="384" y1="0" y2="768" class="line"/>
<line x1="480" x2="480" y1="0" y2="768" class="line"/>
<line x1="528" x2="528" y1="0" y2="768" class="line"/>
<line x1="624" x2="624" y1="0" y2="768" class="line"/>
<line x1="720" x2="720" y1="0" y2="768" class="line"/>
<line x1="816" x2="816" y1="0" y2="768" class="line"/>
<line x1="912" x2="912" y1="0" y2="768" class="line"/>
<line y1="120" y2="120" x1="0" x2="1024" class="line"/>
<line y1="192" y2="192" x1="0" x2="1024" class="line"/>
<line y1="240" y2="240" x1="0" x2="1024" class="line"/>
<line y1="288" y2="288" x1="0" x2="1024" class="line"/>
<line y1="336" y2="336" x1="0" x2="1024" class="line"/>
<line y1="384" y2="384" x1="0" x2="1024" class="line"/>
<line y1="432" y2="432" x1="0" x2="1024" class="line"/>
<line y1="480" y2="480" x1="0" x2="1024" class="line"/>
<line y1="528" y2="528" x1="0" x2="1024" class="line"/>
<line y1="576" y2="576" x1="0" x2="1024" class="line"/>
<line y1="624" y2="624" x1="0" x2="1024" class="line"/>
<line y1="672" y2="672" x1="0" x2="1024" class="line"/>
<line y1="720" y2="720" x1="0" x2="1024" class="line"/>
</svg>
/* Shower Full */
.shower.full {
position: absolute;
top: 50%;
left: 50%;
overflow: hidden;
margin-top: calc(var(--slide-height) / 2 * -1);
margin-left: calc(var(--slide-width) / 2 * -1);
width: var(--slide-width);
height: var(--slide-height);
background: black;
}
/* Shower Grid */
.shower.full.grid::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
content: '';
pointer-events: none;
background-image: url('grid.svg');
}
/* Shower List */
.shower.list {
padding: calc(
var(--slide-gap) * var(--slide-scale)
);
box-sizing: border-box;
width: 100%;
display: grid;
grid-gap: calc(
var(--slide-gap) * var(--slide-scale)
);
grid-auto-rows: calc(
var(--slide-height) * var(--slide-scale)
);
grid-template-rows: min-content;
grid-template-columns: repeat(
auto-fill,
calc(var(--slide-width) * var(--slide-scale))
);
background: var(--color-back);
}
/* IE & Edge Fix */
.shower.list {
position: absolute;
clip: rect(0, auto, auto, 0);
}
/* Responsive */
.shower.list {
--slide-scale: 0.25;
}
@media (min-width: 1168px) {
.shower.list {
--slide-scale: 0.5;
}
}
@media (min-width: 2336px) {
.shower.list {
--slide-scale: 1;
}
}
/* Print */
@page {
margin: 0;
size: 1024px 576px;
}
.shower {
-webkit-print-color-adjust: exact;
text-rendering: geometricPrecision;
}
/* Shower */
@import 'shower-list.css' screen;
@import 'shower-full.css' screen;
@import 'shower-grid.css' screen;
@import 'shower-print.css' print;
.shower {
--slide-gap: 96px;
--slide-ratio: calc(16 / 9);
--slide-width: 1024px;
--slide-height: calc(
var(--slide-width) / var(--slide-ratio)
);
--color-key: #4caf50;
--color-black: #212121;
--color-dark: #757575;
--color-medium: #9e9e9e;
--color-light: #bdbdbd;
--color-back: #eeeeee;
--color-yellow: #fff59d;
--color-yellow-light: #ffffcf;
--progress-size: 8px;
--diagonal: linear-gradient(
135deg, var(--color-key) 50%,
rgba(0, 0, 0, 0.1) 50%
);
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
margin: 0;
color: black;
counter-reset: slide;
font: 24px/2 'Roboto', sans-serif;
}
/* Basic */
.slide h2 {
margin-top: 0;
margin-bottom: 32px;
color: var(--color-black);
line-height: 1;
font-weight: 100;
font-size: 48px;
}
.slide p {
margin-top: 0;
margin-bottom: 1em;
}
.slide p.note {
color: var(--color-medium);
}
.slide figure {
margin: 0;
}
/* Code */
.slide pre {
margin-top: 0;
margin-bottom: 1em;
counter-reset: code;
white-space: normal;
}
/* Inner */
.slide pre code {
display: block;
margin-left: -96px;
padding: 0 0 0 96px;
width: calc(100% + 96px + 112px);
background: none;
line-height: 2;
white-space: pre;
tab-size: 4;
}
/* Line Numbers */
.slide pre code:not(:only-child)::before {
position: absolute;
margin-left: -2em;
color: var(--color-light);
counter-increment: code;
content: counter(code, decimal-leading-zero) '.';
}
/* Marked */
.slide pre mark {
position: relative;
z-index: -1;
margin: 0 -0.3em;
}
/* Important */
.slide pre mark.important {
background: var(--color-key);
color: white;
}
/* Comment */
.slide pre .comment {
color: var(--color-medium);
}
/* Marked Line */
.slide pre code.mark:not(:only-child) {
background: var(--color-back);
}
/* Next Line */
.slide pre code.mark.next:not(:only-child) {
visibility: visible;
background: none;
}
.slide pre code.mark.next.active:not(:only-child) {
background: var(--color-back);
}
/* Full */
.shower.full .slide pre code:not(:only-child).mark.next {
visibility: visible;
background: none;
}
.shower.full .slide pre code:not(:only-child).mark.next.active {
background: var(--color-back);
}
/* Footer */
.slide > footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
padding: 48px 112px 24px 96px;
background: var(--color-yellow-light);
transition: transform 0.3s;
}
/* List */
.shower.list .slide > footer {
transform: translateY(100%);
}
.shower.list .slide.active > footer,
.shower.list .slide:hover > footer {
transform: translateY(0);
}
/* Full */
.shower.full .slide > footer {
display: none;
}
/* Inline */
.slide a {
background-image:
linear-gradient(
to top,
currentColor 0.08em,
transparent 0.08em
);
background-repeat: repeat-x;
color: var(--color-key);
text-decoration: none;
}
.slide code,
.slide kbd,
.slide mark,
.slide samp {
padding: 0.1em 0.3em;
}
.slide code,
.slide kbd,
.slide samp {
background: var(--color-back);
line-height: 1;
font-family: 'Roboto Mono', monospace;
}
.slide mark {
background: var(--color-yellow);
}
.slide sub,
.slide sup {
position: relative;
vertical-align: baseline;
line-height: 0;
font-size: 75%;
}
.slide sub {
bottom: -0.25em;
}
.slide sup {
top: -0.5em;
}
/* Lists */
.slide ol,
.slide ul {
padding-left: 0;
margin-top: 0;
margin-bottom: 1em;
list-style: none;
counter-reset: list;
}
/* Marker */
.slide li::before {
position: absolute;
width: 3em;
color: var(--color-medium);
text-align: right;
transform:
translateX(
calc(-100% - 0.5em)
);
}
.slide li ol,
.slide li ul {
margin-bottom: 0;
margin-left: 2em;
}
/* Markers */
.slide ol > li::before {
counter-increment: list;
content: counter(list) '.';
}
.slide ul > li::before {
content: '•';
}
.slide ul > li:lang(ru)::before {
content: '—';
}
/* Custom */
.slide ol > li[value]::before {
content: attr(value) '.';
}
.slide ul > li[value]::before {
content: attr(value);
}
/* Quote */
.slide blockquote {
margin: 0;
font-style: italic;
}
.slide blockquote::before {
position: absolute;
margin: 0 0 0 -0.45em;
color: var(--color-light);
line-height: 1;
font-style: normal;
font-size: 7em;
content: '\201D';
}
/* Author */
.slide blockquote + figcaption {
margin: -1em 0 1em;
font-style: italic;
font-weight: bold;
}
/* Table */
.slide table {
margin-left: -96px;
margin-bottom: 1em;
width: calc(96px + 100% + 112px);
border-collapse: collapse;
border-spacing: 0;
}
/* Cells */
.slide th,
.slide td {
padding-top: 0;
padding-bottom: 0;
}
.slide th {
text-align: left;
font-weight: bold;
}
.slide th:first-child,
.slide td:first-child {
padding-left: 96px;
}
.slide th:last-child,
.slide td:last-child {
padding-right: 96px;
}
/* Lines */
.slide tr:not(:last-of-type) > * {
background:
linear-gradient(
to top,
var(--color-light) 0.06em,
transparent 0.06em
) repeat-x;
}
/* Stripes */
.slide table.striped tr:nth-child(even) {
background: var(--color-back);
}
.slide table.striped tr > * {
background-image: none;
}
/* Columns */
.columns {
display: grid;
width: 100%;
grid-column-gap: 75px;
}
.columns.two {
grid-template-columns: 1fr 1fr;
}
.columns.three {
grid-template-columns: 1fr 1fr 1fr;
}
.columns.four {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
/* Copyright */
.copyright {
position: absolute;
bottom: 20px;
right: 10px;
margin: 0;
font-size: 12px;
opacity: 0.7;
transform-origin: 0 100%;
transform: translateX(100%) rotate(-90deg);
}
/* Sides */
.copyright.top {
top: 10px;
right: auto;
bottom: auto;
left: 20px;
transform: none;
}
.copyright.bottom {
top: auto;
right: auto;
bottom: 20px;
left: 20px;
transform: none;
}
/* White */
.copyright.white {
color: white;
}
/* Links */
.copyright a {
color: currentColor;
}
/* Cover */
.cover {
position: absolute;
top: 50%;
left: 50%;
z-index: -1;
transform: translate(-50%, -50%);
max-width: 100%;
max-height: 100%;
}
/* Fitting */
.cover.w,
.cover.width {
width: 100%;
max-height: none;
}
.cover.h,
.cover.height {
height: 100%;
max-width: none;
}
/* Next */
.shower.full .next {
visibility: hidden;
}
.shower.full .next.active {
visibility: visible;
}
/* Place */
.place {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.place.t.l,
.place.top.left,
.place.t.r,
.place.top.right,
.place.b.r,
.place.bottom.right,
.place.b.l,
.place.bottom.left {
transform: none;
}
.place.t,
.place.top,
.place.b,
.place.bottom {
transform: translate(-50%, 0);
}
.place.l,
.place.left,
.place.r,
.place.right {
transform: translate(0, -50%);
}
.place.t,
.place.top,
.place.t.l,
.place.top.left,
.place.t.r,
.place.top.right {
top: 0;
}
.place.r,
.place.right {
right: 0;
left: auto;
}
.place.b,
.place.bottom,
.place.b.r,
.place.bottom.right,
.place.b.l,
.place.bottom.left {
top: auto;
bottom: 0;
}
.place.l,
.place.left {
left: 0;
}
/* Shout */
.slide .shout {
position: absolute;
top: 50%;
left: 0;
width: 100%;
padding-left: 96px;
color: white;
line-height: 1.1;
font-size: 112px;
transform: translateY(-50%);
}
/* Back */
.slide .shout::after {
position: absolute;
top: -300%;
right: 0;
bottom: -300%;
left: 0;
z-index: -1;
background-color: var(--color-key);
background-image: var(--diagonal);
background-repeat: no-repeat;
content: '';
}
/* Link */
.slide .shout a {
background-image:
linear-gradient(
to top,
currentColor 0.05em,
transparent 0.05em
);
background-position: bottom 0.05em left 0;
background-repeat: repeat-x;
color: inherit;
}
/* Full */
.shower.full .slide .shout::after {
background-position: var(--slide-width) 0;
transition: background-position 0.4s ease-out;
}
.shower.full .slide.active .shout::after {
background-position: 0 0;
}
/* Black */
.slide.black {
background-color: black;
}
/* Progress Off */
.slide.clear.active ~ .progress {
display: none;
}
/* Number Off */
.slide.clear::after {
visibility: hidden;
}
/* White */
.slide.white {
background-color: white;
}
/* Slide Full */
.shower.full .slide {
position: absolute;
top: 0;
left: 0;
clip: rect(0 0 0 0);
visibility: hidden;
}
/* Active */
.shower.full .slide.active {
clip: auto;
visibility: visible;
}
/* Slide List */
.shower.list .slide {
box-shadow:
calc(var(--slide-scale) * 4px)
calc(var(--slide-scale) * 4px) 0
calc(var(--slide-scale) * 4px)
var(--color-light);
transform-origin: 0 0;
transform: scale(
var(--slide-scale)
);
}
.shower.list .slide * {
pointer-events: none;
}
/* Hover */
.shower.list .slide:hover {
box-shadow: 0 0 0 20px var(--color-light);
}
/* Active */
.shower.list .slide.active {
box-shadow: 0 0 0 20px var(--color-key);
}
/* Types */
@import 'slide-list.css' screen;
@import 'slide-full.css' screen;
/* Content */
@import 'content/basic.css';
@import 'content/code.css';
@import 'content/footer.css';
@import 'content/inline.css';
@import 'content/lists.css';
@import 'content/quote.css';
@import 'content/table.css';
/* Elements */
@import 'elements/columns.css';
@import 'elements/copyright.css';
@import 'elements/cover.css';
@import 'elements/next.css';
@import 'elements/place.css';
@import 'elements/shout.css';
/* Modifiers */
@import 'modifiers/clear.css';
@import 'modifiers/white.css';
@import 'modifiers/black.css';
/* Slide */
.slide {
position: relative;
z-index: 0;
overflow: hidden;
box-sizing: border-box;
padding: 80px 112px 0 96px;
width: var(--slide-width);
height: var(--slide-height);
background: white;
}
/* Number */
.slide::after {
position: absolute;
right: 0;
bottom: 38px;
left: 0;
color: var(--color-light);
line-height: 18px;
text-align: center;
counter-increment: slide;
content: counter(slide);
}
/* Styles */
@import 'fonts.css';
@import 'shower/shower.css';
@import 'blocks/badge.css';
@import 'blocks/caption.css';
@import 'blocks/progress.css';
@import 'blocks/region.css';
@import 'slide/slide.css';
# The MIT License
Copyright © 2010–2018 Vadim Makeev, http://pepelsbey.net/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---
# Лицензия MIT
Copyright © 2010–2018 Вадим Макеев, http://pepelsbey.net/
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий:
Указанное выше уведомление об авторском праве и данные условия должны быть включены во все копии или значимые части данного Программного Обеспечения.
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ.
# Ribbon theme for Shower [![Build Status](https://travis-ci.org/shower/ribbon.svg?branch=master)](https://travis-ci.org/shower/ribbon)
![Ribbon screen shot](pictures/canvas.png)
Default theme for the [Shower](https://github.com/shower/shower/) presentation engine. Doesn’t include engine itself. [See it in action](http://shwr.me/shower/themes/ribbon/). Follow [@shower_me](https://twitter.com/shower_me) for support and updates, [file an issue](https://github.com/shower/shower/issues/new) if you have any.
## Usage
Get the Shower template where Ribbon is already included. Download the [template archive](http://shwr.me/shower.zip) or install the package:
npm install shower
If you want to install Ribbon separately you can install the package:
npm install shower-ribbon
## Features
All theme’s features are demonstrated in the [index.html](index.html) file, [see it live](https://shwr.me/shower/themes/ribbon/). Use it as a reference while building your presentation. See more detailed [features overview](https://github.com/shower/shower/blob/master/docs/features.md).
## Ratios
Ribbon theme supports any slide ratio you want. But it’s optimized for the most common ones: 16×9 and 4×3. It’s 16×9 by default, but you can change it by adjusting `--slide-ratio` property for `.shower`, [see example](https://github.com/shower/ribbon/blob/master/index.html#L10) in `index.html`.
## PDF
Ribbon could be exported to PDF by printing it from the list mode in Chrome or Opera browsers. See [printing documentation](https://github.com/shower/shower/blob/master/docs/pdf.md) for more options.
## Development
If you want to adjust theme for your needs:
1. Fork this repository and clone it to your local machine.
2. Install dependencies: `npm install`.
3. Start a local server with watcher: `npm start`.
4. Edit your files and see changes in the opened browser.
To take part in Ribbon development please read [contributing guidelines](CONTRIBUTING.md) first and [file an issue](https://github.com/shower/shower/issues/new) before sending any pull request.
---
Licensed under [MIT License](LICENSE.md).
Copyright (c) 2009, ParaType Ltd. All Rights Reserved.
LICENSING AGREEMENT
for the fonts with Original Name: PT Sans, PT Serif, PT Mono.
Version 1.3 - January 20, 2012
GRANT OF LICENSE
ParaType Ltd grants you the right to use, copy, modify the fonts and distribute
modified and unmodified copies of the fonts by any means, including placing
on Web servers for free downloading, embedding in documents and Web pages,
bundling with commercial and non commercial products, if it does not conflict
with the conditions listed below:
- You may bundle the font with commercial software, but you may not sell the
fonts by themselves. They are free.
- You may distribute the fonts in modified or unmodified version only together
with this Licensing Agreement and with above copyright notice. You have no
right to modify the text of Licensing Agreement. It can be placed in a separate
text file or inserted into the font file, but it must be easily viewed by users.
- You may not distribute modified version of the font under the Original name
or � combination of Original name with any other words without explicit written
permission from ParaType.
TERMINATION & TERRITORY
This license has no limits on time and territory, but it becomes null and void
if any of the above conditions are not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK,
OR OTHER RIGHT. IN NO EVENT SHALL PARATYPE BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
DEALINGS IN THE FONT SOFTWARE.
ParaType Ltd
http://www.paratype.ru
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ribbon theme for Shower</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles/styles.css">
<style>
.shower {
--slide-ratio: calc(16 / 9);
}
</style>
</head>
<body class="shower list">
<header class="caption">
<h1>Presentation Title</h1>
<p><a href="">Yours Truly</a>, Famous Inc.</p>
</header>
<section class="slide">
<h2>Slide Header</h2>
<p>Echo Park 8-bit sustainable umami deep v Kickstarter. DIY cliche typewriter brunch, Odd Future sriracha pickled aesthetic. Farm-to-table bespoke fingerstache, kale chips umami brunch letterpress.</p>
<p>Whatever authentic disrupt, you probably haven’t heard of them direct trade mlkshk Etsy. Gluten-free roof party plaid four loko quinoa.</p>
<p class="note">Echo Park 8-bit sustainable umami deep v Kickstarter.</p>
</section>
<section class="slide">
<h2><a href="">Linked Header</a></h2>
<p>Retro meh brunch aesthetic Cosby sweater Shoreditch. Banksy Tumblr sriracha, flexitarian pug chia master cleanse vinyl wayfarers fanny pack bespoke Helvetica roof party. Messenger bag retro cred Portland next level. Yr stumptown Schlitz Carles deep v small batch. Echo Park 8-bit sustainable umami deep v Kickstarter. Hella sustainable messenger bag, leggings skateboard literally bicycle rights H₂0 mumblecore banh mi DIY VHS. Semiotics four loko street art asymmetrical.</p>
</section>
<section class="slide">
<h2>
Multiline<br>
Header
</h2>
<p>Retro meh brunch aesthetic Cosby sweater Shoreditch. Banksy Tumblr sriracha, flexitarian pug chia master cleanse vinyl wayfarers fanny pack bespoke Helvetica roof party. Messenger bag retro cred Portland next level. Yr stumptown Schlitz Carles deep v small batch. Hella sustainable messenger bag, leggings skateboard literally1 bicycle rights H₂0 mumblecore banh mi DIY VHS. Semiotics four loko street art asymmetrical.</p>
</section>
<section class="slide">
<h2>Inline Elements</h2>
<p>Retro meh brunch <a href="">aesthetic</a> Cosby sweater Shoreditch. Banksy Tumblr <strong>sriracha</strong>, flexitarian pug chia master cleanse vinyl <em>wayfarers</em> fanny pack bespoke Helvetica <b>roof</b> party. Messenger bag retro cred <i>Portland</i> next level. Yr stumptown Schlitz Carles deep v small batch. Hella sustainable messenger bag, <mark>leggings</mark> skateboard literally<sup>1</sup> bicycle rights H<sub>2</sub>0 mumblecore banh mi DIY VHS. Semiotics four loko street art asymmetrical. Asymmetrical <code>&lt;paleo&gt;</code> you probably haven’t heard of.</p>
<footer class="footer">
<p>Flannel bicycle rights locavore selfies skateboard. Authentic fanny pack paleo four loko bespoke. Artisan tattooed chia XOXO ennui, lomo disrupt 8-bit art party Tumblr scenester. Post-ironic fashion axe flexitarian, Tonx narwhal messenger bag Tumblr. Portland gentrify deep v kale chips literally.</p>
</footer>
</section>
<section class="slide">
<h2>Quotes</h2>
<blockquote>
<p>Flannel bicycle rights locavore selfies skateboard. Authentic fanny pack paleo four loko bespoke. Artisan tattooed chia XOXO ennui, lomo disrupt 8-bit art party Tumblr scenester.</p>
</blockquote>
<figure>
<blockquote>
<p>Post-ironic fashion axe flexitarian, Tonx narwhal messenger bag Tumblr. Portland gentrify deep v kale chips literally.</p>
</blockquote>
<figcaption>Yours Truly</figcaption>
</figure>
</section>
<section class="slide">
<h2>Ordered Lists</h2>
<ol>
<li>Literally viral vegan, ugh drinking vinegar photo booth</li>
<li>Wes Anderson chillwave Marfa pour-over Etsy banh mi</li>
<li>Ethnic polaroid lo-fi iPhone ennui</li>
<li>Yr wayfarers before they sold out Kickstarter asymmetrical</li>
<li>Irony flexitarian readymade quinoa, kogi bespoke meggings narwhal</li>
<li>Skateboard Etsy twee artisan Echo Park</li>
<li>Tonx kitsch fingerstache readymade, retro single-origin coffee</li>
</ol>
</section>
<section class="slide">
<h2>Unordered Lists</h2>
<ul>
<li>Literally viral vegan, ugh drinking vinegar photo booth</li>
<li>Wes Anderson chillwave Marfa pour-over Etsy banh mi</li>
<li>Ethnic polaroid lo-fi iPhone ennui</li>
<li>Yr wayfarers before they sold out Kickstarter asymmetrical</li>
<li>Irony flexitarian readymade quinoa, kogi bespoke meggings narwhal</li>
<li>Skateboard Etsy twee artisan Echo Park</li>
<li>Tonx kitsch fingerstache readymade, retro single-origin coffee</li>
</ul>
</section>
<section class="slide">
<h2>Block Lists</h2>
<ul>
<li>Retro meh brunch aesthetic Cosby sweater Shoreditch. Banksy Tumblr sriracha, flexitarian pug chia master cleanse vinyl wayfarers fanny pack.</li>
<li>Messenger bag retro cred Portland next level. Yr stumptown Schlitz Carles deep v small batch. Hella sustainable messenger bag.</li>
<li>Leggings skateboard literally1 bicycle rights H₂0 mumblecore banh mi DIY VHS. Semiotics four loko street art asymmetrical. Asymmetrical paleo you probably haven’t heard of.</li>
</ul>
</section>
<section class="slide">
<h2>Nested Lists</h2>
<ol>
<li>Literally viral vegan, ugh drinking vinegar photo booth</li>
<li>Wes Anderson chillwave Marfa pour-over Etsy banh mi</li>
<li>Ethnic polaroid lo-fi iPhone ennui
<ul>
<li>Yr wayfarers before they sold out Kickstarter asymmetrical</li>
<li>Irony flexitarian readymade quinoa, kogi bespoke meggings narwhal</li>
<li>Skateboard Etsy twee artisan Echo Park</li>
</ul>
</li>
<li>Tonx kitsch fingerstache readymade, retro single-origin coffee</li>
</ol>
</section>
<section class="slide">
<h2>Latin and Cyrillic List Bullets</h2>
<ul lang="en">
<li>Occupy locavore blog, mustache you probably haven’t heard of them</li>
<li>Skateboard pork belly aesthetic hoodie selfies brunch</li>
<li>Food truck gluten-free disrupt Portland</li>
</ul>
<ul lang="ru">
<li>Helvetica narwhal drinking vinegar chillwave, post-ironic ennui</li>
<li>Cray pug paleo retro, Echo Park narwhal Wes Anderson</li>
<li>Disrupt Williamsburg fixie, shabby chic bicycle rights hashtag kogi</li>
</ul>
</section>
<section class="slide">
<h2>Custom List Bullets</h2>
<ul>
<li value="+">Helvetica narwhal drinking vinegar chillwave, post-ironic ennui</li>
<li value="−">Cray pug paleo retro, Echo Park narwhal Wes Anderson</li>
<li value="+">Disrupt Williamsburg fixie, shabby chic bicycle rights hashtag kogi</li>
</ul>
<ol>
<li value="100">Occupy locavore blog, mustache you probably haven’t heard of them</li>
<li value="10">Skateboard pork belly aesthetic hoodie selfies brunch</li>
<li value="1">Food truck gluten-free disrupt Portland</li>
</ol>
</section>
<section class="slide">
<h2>Two Columns</h2>
<div class="columns two">
<p>Echo Park 8-bit sustainable umami deep v Kickstarter. DIY cliche typewriter brunch, Odd Future sriracha pickled aesthetic. Farm-to-table bespoke fingerstache, kale chips umami brunch.</p>
<p>American Apparel letterpress. Whatever authentic disrupt, you probably haven’t heard of them direct trade mlkshk Etsy. Gluten-free roof party plaid American Apparel four loko quinoa.</p>
</div>
</section>
<section class="slide">
<h2>Two Lists</h2>
<div class="columns two">
<ul>
<li>Occupy locavore, mustache you probably haven’t heard of them</li>
<li>Skateboard pork belly aesthetic hoodie selfies brunch</li>
<li>Food truck gluten-free disrupt Portland</li>
</ul>
<ul>
<li>Helvetica narwhal drinking vinegar chillwave, post-ironic ennui</li>
<li>Cray pug paleo retro, Echo Park narwhal Wes Anderson</li>
<li>Disrupt Williamsburg fixie, shabby chic bicycle rights hashtag kogi</li>
</ul>
</div>
</section>
<section class="slide">
<h2>Three Lists</h2>
<div class="columns three">
<ul>
<li>Skateboard pork belly aesthetic hoodie selfies brunch.</li>
<li>You probably haven’t heard of them.</li>
</ul>
<ul>
<li>Food truck gluten-free Portland.</li>
<li>Helvetica narwhal drinking vinegar chillwave, post-ironic ennui</li>
</ul>
<ul>
<li>Cray pug paleo retro, Echo Park narwhal Wes Anderson</li>
<li>Disrupt fixie, shabby chic bicycle rights hashtag kogi</li>
</ul>
</div>
</section>
<section class="slide">
<h2>Four Lists</h2>
<div class="columns four">
<ul>
<li>Gentrify</li>
<li>Messenger</li>
<li>Meggings</li>
<li>Vegan</li>
<li>Next level</li>
<li>Umami</li>
</ul>
<ul>
<li>Twee</li>
<li>Mixtape</li>
<li>Freegan</li>
<li>Occupy</li>
<li>Selfies</li>
<li>Haven’t heard</li>
</ul>
<ul>
<li>Artisan</li>
<li>Small batch</li>
<li>Biodiesel</li>
<li>Normcore</li>
<li>Sustainable</li>
<li>Skateboard</li>
</ul>
<ul>
<li>Banksy</li>
<li>Bicycle rights</li>
<li>Slow-carb</li>
<li>Bird on it</li>
<li>Organic</li>
<li>Farm-to-table</li>
</ul>
</div>
</section>
<section class="slide">
<h2>Simple Table</h2>
<table>
<tr>
<th scope="col">Gentrify</th>
<th>Twee</th>
<th>Artisan</th>
<th>Banksy</th>
</tr>
<tr>
<th scope="row">Messenger</th>
<td>Mixtape</td>
<td>Small batch</td>
<td>Bicycle rights</td>
</tr>
<tr>
<th scope="row">Meggings</th>
<td>Freegan</td>
<td>Retro biodiesel</td>
<td>Slow-carb</td>
</tr>
<tr>
<th scope="row">Vegan</th>
<td>Occupy</td>
<td>Normcore</td>
<td>Put a bird on it</td>
</tr>
<tr>
<th scope="row">Next level</th>
<td>Selfies</td>
<td>Sustainable</td>
<td>Organic</td>
</tr>
<tr>
<th scope="row">Umami</th>
<td>Asymmetrical</td>
<td>Keytar</td>
<td>Craft beer</td>
</tr>
<tr>
<th scope="row">Biodiesel</th>
<td>Haven’t heard</td>
<td>Skateboard</td>
<td>Farm-to-table</td>
</tr>
</table>
</section>
<section class="slide">
<h2>Striped Table</h2>
<table class="striped">
<tr>
<th scope="col">Gentrify</th>
<th>Twee</th>
<th>Artisan</th>
<th>Banksy</th>
</tr>
<tr>
<th scope="row">Messenger</th>
<td>Mixtape</td>
<td>Small batch</td>
<td>Bicycle rights</td>
</tr>
<tr>
<th scope="row">Meggings</th>
<td>Freegan</td>
<td>Retro biodiesel</td>
<td>Slow-carb</td>
</tr>
<tr>
<th scope="row">Vegan</th>
<td>Occupy</td>
<td>Normcore</td>
<td>Put a bird on it</td>
</tr>
<tr>
<th scope="row">Next level</th>
<td>Selfies</td>
<td>Sustainable</td>
<td>Organic</td>
</tr>
<tr>
<th scope="row">Umami</th>
<td>Asymmetrical</td>
<td>Keytar</td>
<td>Craft beer</td>
</tr>
<tr>
<th scope="row">Biodiesel</th>
<td>Haven’t heard</td>
<td>Skateboard</td>
<td>Farm-to-table</td>
</tr>
</table>
</section>
<section class="slide">
<h2>Plain Code Listing</h2>
<pre><code>&lt;html lang="en"&gt;
<mark>&lt;head&gt;</mark> <span class="comment">&lt;!--Comment--&gt;</span>
&lt;title&gt;Shower&lt;/title&gt;
&lt;meta charset="<mark class="important">UTF-8</mark>"&gt;
&lt;link rel="stylesheet" href="screen.css"&gt;
&lt;script src="script.js"&gt;&lt;/script&gt;
<mark>&lt;/head&gt;</mark></code></pre>
</section>
<section class="slide">
<h2>Numbered Code Listing</h2>
<pre>
<code>&lt;html lang="en"&gt;</code>
<code><mark>&lt;head&gt;</mark> <span class="comment">&lt;!--Comment--&gt;</span></code>
<code> &lt;title&gt;Shower&lt;/title&gt;</code>
<code> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code> &lt;script src="script.js"&gt;&lt;/script&gt;</code>
<code><mark>&lt;/head&gt;</mark></code>
</pre>
</section>
<section class="slide">
<h2>Highlighted Code Lines</h2>
<pre>
<code>&lt;html lang="en"&gt;</code>
<code class="mark">&lt;head&gt; <span class="comment">&lt;!--Comment--&gt;</span></code>
<code> &lt;title&gt;Shower&lt;/title&gt;</code>
<code> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code> &lt;script src="script.js"&gt;&lt;/script&gt;</code>
<code class="mark">&lt;/head&gt;</code>
</pre>
</section>
<section class="slide">
<h2>Hidden Code Steps</h2>
<pre>
<code class="next">&lt;html lang="en"&gt;</code>
<code class="next"><mark>&lt;head&gt;</mark> <span class="comment">&lt;!--Comment--&gt;</span></code>
<code class="next"> &lt;title&gt;Shower&lt;/title&gt;</code>
<code class="next"> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code class="next"> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code class="next"> &lt;script src="script.js"&gt;&lt;/script&gt;</code>
<code class="next"><mark>&lt;/head&gt;</mark></code>
</pre>
</section>
<section class="slide">
<h2>Highlighted Code Steps</h2>
<pre>
<code class="mark next">&lt;html lang="en"&gt;</code>
<code>&lt;head&gt; <span class="comment">&lt;!--Comment--&gt;</span></code>
<code class="mark next"> &lt;title&gt;Shower&lt;/title&gt;</code>
<code> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code class="mark next"> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code> &lt;script src="script.js"&gt;&lt;/script&gt;</code>
<code class="mark next">&lt;/head&gt;</code>
</pre>
</section>
<section class="slide white">
<h2>White Slide</h2>
</section>
<section class="slide black">
<h2>Black Slide</h2>
</section>
<section class="slide clear">
<h2>Clear Slide</h2>
</section>
<section class="slide">
<h2 class="shout">Shout</h2>
</section>
<section class="slide">
<h2 class="shout">
Multiline<br>
Shout
</h2>
</section>
<section class="slide">
<h2 class="shout">
<a href="">Linked Shout</a>
</h2>
</section>
<section class="slide">
<h2 class="shout">
<a href="">
Multiline<br>
Linked
</a>
</h2>
</section>
<section class="slide">
<h2 class="shout grow">Growing Shout</h2>
</section>
<section class="slide">
<h2 class="shout shrink">Shrinking Shout</h2>
</section>
<section class="slide">
<h2>Cover</h2>
<figure>
<img class="cover" src="pictures/exact.svg" alt="Picture placeholder.">
<figcaption class="copyright top">Copyright © 2018 <a href="">Yours Truly</a>, Famous Inc.</figcaption>
<figcaption class="copyright">Copyright © 2018 <a href="">Yours Truly</a>, Famous Inc.</figcaption>
<figcaption class="copyright bottom">Copyright © 2018 <a href="">Yours Truly</a>, Famous Inc.</figcaption>
</figure>
</section>
<section class="slide">
<h2>Tall Cover</h2>
<img class="cover" src="pictures/tall.svg" alt="Tall picture placeholder.">
</section>
<section class="slide">
<h2>Wide Cover</h2>
<img class="cover" src="pictures/wide.svg" alt="Wide picture placeholder.">
</section>
<section class="slide clear">
<h2>Place</h2>
<img class="place top left" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place top" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place top right" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place left" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place right" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place bottom left" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place bottom" src="pictures/square.svg" alt="Square picture placeholder.">
<img class="place bottom right" src="pictures/square.svg" alt="Square picture placeholder.">
</section>
<section class="slide">
<h2>List Navigation</h2>
<ol>
<li>Ennui keffiyeh thundercats</li>
<li class="next">Jean shorts biodiesel</li>
<li class="next">Terry richardson, swag blog</li>
<li class="next">Locavore umami vegan helvetica</li>
<li class="next">Fingerstache kale chips</li>
</ol>
<p class="next">Before they sold out master</p>
</section>
<section class="slide clear">
<h2>Place + Next</h2>
<img class="place next left" height="100%" src="pictures/picture-1.svg" alt="Picture placeholder.">
<img class="place next" height="100%" src="pictures/picture-2.svg" alt="Picture placeholder.">
<img class="place next right" height="100%" src="pictures/picture-3.svg" alt="Picture placeholder.">
</section>
<section class="slide" data-timing="00:03">
<h2 class="shout">Timer</h2>
</section>
<section class="slide">
<h2 class="shout">The End</h2>
</section>
<div class="progress"></div>
<footer class="badge">
<a href="https://github.com/shower/shower">Fork me on GitHub</a>
</footer>
<script src="node_modules/shower-core/shower.min.js"></script>
<!-- Copyright © 2018 Yours Truly, Famous Inc. -->
</body>
</html>
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="576">
<rect width="1024" height="576" fill="#979a9e"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#979a9e" fill-opacity="0.2"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#979a9e" fill-opacity="0.6"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#979a9e" fill-opacity="1"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64">
<rect width="64" height="64" fill="#979a9e"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="1200">
<rect width="400" height="1200" fill="#979a9e"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="400">
<rect width="1200" height="400" fill="#979a9e"/>
</svg>
/* Badge */
.badge {
position: absolute;
top: 0;
right: 0;
z-index: 1;
overflow: hidden;
visibility: hidden;
width: 9em;
height: 9em;
font-size: calc(
40px * var(--slide-scale)
);
}
/* Link */
.badge a {
position: absolute;
right: -50%;
bottom: 50%;
left: -50%;
visibility: visible;
background: var(--color-blue);
color: white;
text-decoration: none;
text-align: center;
line-height: 2;
transform-origin: 50% 100%;
transform: rotate(45deg);
}
/* Badge List */
.shower.list .badge {
display: block;
}
/* Badge Full */
.shower.full .badge {
display: none;
}
/* Badge Print */
@media print {
.shower.list .badge,
.shower.full .badge {
display: none;
}
}
/* Caption */
.caption {
margin-top: -0.2em;
margin-bottom: -0.07em;
grid-column: 1 / -1;
width: 100%;
color: #bfbfbf;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
font-size: calc(
var(--slide-gap) * var(--slide-scale)
);
}
/* Elements */
.caption h1 {
margin: 0;
padding-bottom: 0.15em;
font: bold 1em/1 'PT Sans Narrow', sans-serif;
}
.caption p {
margin: 0;
line-height: 1;
font-size: 0.6em;
}
.caption a {
text-decoration: none;
color: var(--color-blue-lighter);
}
/* List */
.shower.list .caption {
display: block;
}
/* Full */
.shower.full .caption {
display: none;
}
/* Print */
@media print {
.shower.list .caption,
.shower.full .caption {
display: none;
}
}
/* Progress */
.progress {
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: var(--progress-size);
overflow: hidden;
transition: all 0.2s linear;
}
.progress::before {
display: block;
width: 100%;
height: var(--progress-size);
background: var(--color-blue);
content: '';
transform-origin: 0 100%;
transform: skewX(45deg);
}
.progress[style*='100%']::before {
transform: none;
}
/* List */
.shower.list .progress {
display: none;
}
/* Full */
.shower.full .progress {
display: block;
}
/* Print */
@media print {
.shower.list .progress,
.shower.full .progress {
display: none;
}
}
/* Region */
.region {
position: absolute;
top: 0;
left: 0;
clip: rect(0 0 0 0);
}
/* List */
.shower.list .region {
display: none;
}
/* Full */
.shower.full .region {
display: block;
}
/* Print */
@media print {
.shower.list .region,
.shower.full .region {
display: none;
}
}
/* PT Sans */
@font-face {
font-family: 'PT Sans';
font-display: swap;
src:
local('PT Sans'),
local('PTSans-Regular'),
url('../fonts/pt-sans-regular.woff2') format('woff2');
}
@font-face {
font-family: 'PT Sans';
font-weight: bold;
font-display: swap;
src:
local('PT Sans Bold'),
local('PTSans-Bold'),
url('../fonts/pt-sans-bold.woff2') format('woff2');
}
@font-face {
font-family: 'PT Sans';
font-style: italic;
font-display: swap;
src:
local('PT Sans Italic'),
local('PTSans-Italic'),
url('../fonts/pt-sans-italic.woff2') format('woff2');
}
@font-face {
font-family: 'PT Sans';
font-style: italic;
font-weight: bold;
font-display: swap;
src:
local('PT Sans Bold Italic'),
local('PTSans-BoldItalic'),
url('../fonts/pt-sans-bold-italic.woff2') format('woff2');
}
/* PT Narrow */
@font-face {
font-family: 'PT Sans Narrow';
font-weight: bold;
font-display: swap;
src:
local('PT Sans Narrow Bold'),
local('PTSans-NarrowBold'),
url('../fonts/pt-sans-narrow-bold.woff2') format('woff2');
}
/* PT Mono */
@font-face {
font-family: 'PT Mono';
font-display: swap;
src:
local('PT Mono'),
local('PTMono-Regular'),
url('../fonts/pt-mono-regular.woff2') format('woff2');
}
<svg width="1024" height="768" xmlns="http://www.w3.org/2000/svg">
<defs>
<style>
.square {
stroke: red;
stroke-opacity: 0.1;
stroke-width: 1;
fill: transparent;
}
.grid {
fill: url(#grid);
}
.line {
stroke: #8af8f9;
}
</style>
<pattern x="0" y="0" width="25" height="25" viewBox="0 0 25 25" patternUnits="userSpaceOnUse" id="grid">
<rect x="0" y="0" width="25" height="25" class="square"/>
</pattern>
</defs>
<rect x="0" y="0" width="1024" height="768" class="grid"/>
<line x1="100" x2="100" y1="0" y2="768" class="line"/>
<line x1="475" x2="475" y1="0" y2="768" class="line"/>
<line x1="550" x2="550" y1="0" y2="768" class="line"/>
<line x1="925" x2="925" y1="0" y2="768" class="line"/>
<line y1="125" y2="125" x1="0" x2="1024" class="line"/>
<line y1="200" y2="200" x1="0" x2="1024" class="line"/>
<line y1="275" y2="275" x1="0" x2="1024" class="line"/>
<line y1="350" y2="350" x1="0" x2="1024" class="line"/>
<line y1="425" y2="425" x1="0" x2="1024" class="line"/>
<line y1="500" y2="500" x1="0" x2="1024" class="line"/>
<line y1="575" y2="575" x1="0" x2="1024" class="line"/>
<line y1="650" y2="650" x1="0" x2="1024" class="line"/>
<line y1="725" y2="725" x1="0" x2="1024" class="line"/>
</svg>
/* Shower Full */
.shower.full {
position: absolute;
top: 50%;
left: 50%;
overflow: hidden;
margin-top: calc(
var(--slide-height) / 2 * -1
);
margin-left: calc(
var(--slide-width) / 2 * -1
);
width: var(--slide-width);
height: var(--slide-height);
background: black;
}
/* Shower Grid */
.shower.full.grid::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
content: '';
pointer-events: none;
background-image: url('grid.svg');
}
/* Shower List */
.shower.list {
padding: calc(
var(--slide-gap) * var(--slide-scale)
);
box-sizing: border-box;
width: 100%;
display: grid;
grid-gap: calc(
var(--slide-gap) * var(--slide-scale)
);
grid-auto-rows: calc(
var(--slide-height) * var(--slide-scale)
);
grid-template-rows: min-content;
grid-template-columns: repeat(
auto-fill,
calc(var(--slide-width) * var(--slide-scale))
);
background: var(--color-grey);
}
/* IE & Edge Fix */
.shower.list {
position: absolute;
clip: rect(0, auto, auto, 0);
}
/* Responsive */
.shower.list {
--slide-scale: 0.25;
}
@media (min-width: 1174px) {
.shower.list {
--slide-scale: 0.5;
}
}
@media (min-width: 2348px) {
.shower.list {
--slide-scale: 1;
}
}
/* Shower Print */
@page {
margin: 0;
size: 1024px 576px;
}
.shower {
-webkit-print-color-adjust: exact;
text-rendering: geometricPrecision;
}
/* Shower */
@import 'shower-list.css' screen;
@import 'shower-full.css' screen;
@import 'shower-grid.css' screen;
@import 'shower-print.css' print;
.shower {
--slide-gap: 100px;
--slide-ratio: calc(16 / 9);
--slide-width: 1024px;
--slide-height: calc(
var(--slide-width) / var(--slide-ratio)
);
--color-blue: #4b86c2;
--color-blue-lighter: #6799cb;
--color-red: #cc0000;
--color-yellow: #fafaa2;
--color-grey: #585a5e;
--color-fill: rgba(88, 90, 94, 0.1);
--color-line: rgba(88, 90, 94, 0.5);
--ribbon-size: 50px;
--progress-size: 10px;
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
margin: 0;
color: black;
counter-reset: slide;
font: 25px/2 'PT Sans', sans-serif;
}
/* Basic */
.slide h2 {
margin-top: 0;
margin-bottom: 34px;
color: var(--color-grey);
font: bold 50px/1 'PT Sans Narrow', sans-serif;
}
.slide p {
margin-top: 0;
margin-bottom: 1em;
}
.slide p.note {
color: var(--color-grey);
}
.slide figure {
margin: 0;
}
/* Code */
.slide pre {
margin-top: 0;
margin-bottom: 1em;
counter-reset: code;
white-space: normal;
}
/* Inner */
.slide pre code {
display: block;
margin-left: -100px;
padding: 0 0 0 100px;
width: calc(100% + 100px + 100px);
border-radius: 0;
background: none;
line-height: 2;
white-space: pre;
tab-size: 4;
}
/* Line Numbers */
.slide pre code:not(:only-child)::before {
position: absolute;
margin-left: -2em;
color: var(--color-grey);
opacity: 0.75;
counter-increment: code;
content: counter(code, decimal-leading-zero) '.';
}
/* Marked */
.slide pre mark {
position: relative;
z-index: -1;
margin: 0 -0.3em;
}
/* Important */
.slide pre mark.important {
background: var(--color-red);
color: #ffffff;
}
/* Comment */
.slide pre .comment {
color: #999999;
}
/* Marked Line */
.slide pre code.mark:not(:only-child) {
background: var(--color-fill);
}
/* Next Line */
.slide pre code.mark.next:not(:only-child) {
visibility: visible;
background: none;
}
.slide pre code.mark.next.active:not(:only-child) {
background: var(--color-fill);
}
/* Full */
.shower.full .slide pre code:not(:only-child).mark.next {
visibility: visible;
background: none;
}
.shower.full .slide pre code:not(:only-child).mark.next.active {
background: var(--color-fill);
}
/* Footer */
.slide > footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
padding: 50px 100px 25px;
background: var(--color-yellow);
transition: transform 0.3s linear;
}
/* List */
.shower.list .slide > footer {
transform: translateY(100%);
}
.shower.list .slide.active > footer,
.shower.list .slide:hover > footer {
transform: translateY(0);
}
/* Full */
.shower.full .slide > footer {
display: none;
}
/* Inline */
.slide a {
background-image: linear-gradient(
to top,
currentColor 0.09em,
transparent 0.09em
);
background-repeat: repeat-x;
color: var(--color-blue);
text-decoration: none;
}
.slide code,
.slide kbd,
.slide mark,
.slide samp {
padding: 0.1em 0.3em;
border-radius: 0.2em;
}
.slide code,
.slide kbd,
.slide samp {
background: var(--color-fill);
line-height: 1;
font-family: 'PT Mono', monospace;
}
.slide mark {
background: var(--color-yellow);
}
.slide sub,
.slide sup {
position: relative;
vertical-align: baseline;
line-height: 0;
font-size: 75%;
}
.slide sub {
bottom: -0.25em;
}
.slide sup {
top: -0.5em;
}
/* Lists */
.slide ol,
.slide ul {
padding-left: 0;
margin-top: 0;
margin-bottom: 1em;
list-style: none;
counter-reset: list;
}
/* Marker */
.slide li::before {
position: absolute;
width: 3em;
color: var(--color-grey);
text-align: right;
opacity: 0.75;
transform: translateX(
calc(-100% - 0.5em)
);
}
.slide li ol,
.slide li ul {
margin-bottom: 0;
margin-left: 2em;
}
/* Markers */
.slide ol > li::before {
counter-increment: list;
content: counter(list) '.';
}
.slide ul > li::before {
content: '•';
}
.slide ul > li:lang(ru)::before {
content: '—';
}
/* Custom */
.slide ol > li[value]::before {
content: attr(value) '.';
}
.slide ul > li[value]::before {
content: attr(value);
}
/* Quote */
.slide blockquote {
margin: 0;
font-style: italic;
}
.slide blockquote::before {
position: absolute;
margin: -0.15em 0 0 -0.43em;
color: #cccccc;
line-height: 1;
font-size: 8em;
content: '\201C';
}
/* Author */
.slide blockquote + figcaption {
margin: -1em 0 1em;
font-style: italic;
font-weight: bold;
}
/* Table */
.slide table {
margin-left: -100px;
margin-bottom: 1em;
width: calc(
100% + 100px + 100px
);
border-collapse: collapse;
border-spacing: 0;
}
/* Cells */
.slide th,
.slide td {
padding-top: 0;
padding-bottom: 0;
}
.slide th {
text-align: left;
font-weight: bold;
}
.slide th:first-child,
.slide td:first-child {
padding-left: 96px;
}
.slide th:last-child,
.slide td:last-child {
padding-right: 96px;
}
/* Lines */
.slide tr:not(:last-of-type) > * {
background: linear-gradient(
to top,
var(--color-line) 0.06em,
transparent 0.06em
) repeat-x;
}
/* Stripes */
.slide table.striped tr:nth-child(even) {
background: var(--color-fill);
}
.slide table.striped tr > * {
background-image: none;
}
/* Columns */
.columns {
display: grid;
width: 100%;
grid-column-gap: 75px;
}
.columns.two {
grid-template-columns: 1fr 1fr;
}
.columns.three {
grid-template-columns: 1fr 1fr 1fr;
}
.columns.four {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
/* Copyright */
.copyright {
position: absolute;
bottom: 20px;
right: 10px;
margin: 0;
font-size: 12px;
opacity: 0.7;
transform-origin: 0 100%;
transform: translateX(100%) rotate(-90deg);
}
/* Sides */
.copyright.top {
top: 10px;
right: auto;
bottom: auto;
left: 20px;
transform: none;
}
.copyright.bottom {
top: auto;
right: auto;
bottom: 20px;
left: 20px;
transform: none;
}
/* White */
.copyright.white {
color: white;
}
/* Links */
.copyright a {
color: currentColor;
}
/* Cover */
.cover {
position: absolute;
top: 50%;
left: 50%;
z-index: -1;
transform: translate(-50%, -50%);
max-width: 100%;
max-height: 100%;
}
/* Fitting */
.cover.w,
.cover.width {
width: 100%;
max-height: none;
}
.cover.h,
.cover.height {
height: 100%;
max-width: none;
}
/* Next */
.shower.full .next {
visibility: hidden;
}
.shower.full .next.active {
visibility: visible;
}
/* Place */
.place {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.place.t.l,
.place.top.left,
.place.t.r,
.place.top.right,
.place.b.r,
.place.bottom.right,
.place.b.l,
.place.bottom.left {
transform: none;
}
.place.t,
.place.top,
.place.b,
.place.bottom {
transform: translate(-50%, 0);
}
.place.l,
.place.left,
.place.r,
.place.right {
transform: translate(0, -50%);
}
.place.t,
.place.top,
.place.t.l,
.place.top.left,
.place.t.r,
.place.top.right {
top: 0;
}
.place.r,
.place.right {
right: 0;
left: auto;
}
.place.b,
.place.bottom,
.place.b.r,
.place.bottom.right,
.place.b.l,
.place.bottom.left {
top: auto;
bottom: 0;
}
.place.l,
.place.left {
left: 0;
}
/* Shout */
.slide .shout {
position: absolute;
top: 50%;
left: 0;
width: 100%;
text-align: center;
line-height: 1;
font-size: 150px;
transform: translateY(-50%);
}
/* Link */
.slide .shout a {
background-image: linear-gradient(
to top,
rgba(75, 134, 194, 0.4) 0.06em,
transparent 0.06em
);
background-position: bottom 0.13em left 0;
background-repeat: repeat-x;
}
/* Full */
.shower.full .slide .shout.grow {
opacity: 0;
transform: scale(0.1) translateY(-50%);
}
.shower.full .slide .shout.shrink {
opacity: 0;
transform: scale(10) translateY(-50%);
}
/* Active */
@keyframes shout {
to {
opacity: 1;
transform: scale(1) translateY(-50%);
}
}
.shower.full .slide.active .shout.grow,
.shower.full .slide.active .shout.shrink {
animation-name: shout;
animation-duration: 0.4s;
animation-timing-function: ease-out;
animation-fill-mode: forwards;
}
/* Black */
.slide.black {
background-color: black;
}
/* Progress Off */
.slide.clear.active ~ .progress {
display: none;
}
/* Number Off */
.slide.clear::after {
visibility: hidden;
}
/* White */
.slide.white {
background-color: white;
}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 100"><path fill="#c00" d="M0 0h50v100L25 80 0 100"/></svg>
\ No newline at end of file
/* Slide Full */
.shower.full .slide {
position: absolute;
top: 0;
left: 0;
clip: rect(0 0 0 0);
visibility: hidden;
}
/* Active */
.shower.full .slide.active {
clip: auto;
visibility: visible;
}
/* Slide List */
.shower.list .slide {
border-radius: 2px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
transform-origin: 0 0;
transform: scale(
var(--slide-scale)
);
}
.shower.list .slide * {
pointer-events: none;
}
/* Hover */
.shower.list .slide:hover {
box-shadow:
0 0 0 20px rgba(0, 0, 0, 0.1),
0 20px 50px rgba(0, 0, 0, 0.3);
}
/* Active */
.shower.list .slide.active {
box-shadow:
0 0 0 1px #376da3,
0 0 0 20px #4b86c2,
0 20px 50px rgba(0, 0, 0, 0.3);
}
/* Types */
@import 'slide-list.css' screen;
@import 'slide-full.css' screen;
/* Content */
@import 'content/basic.css';
@import 'content/code.css';
@import 'content/footer.css';
@import 'content/inline.css';
@import 'content/lists.css';
@import 'content/quote.css';
@import 'content/table.css';
/* Elements */
@import 'elements/columns.css';
@import 'elements/copyright.css';
@import 'elements/cover.css';
@import 'elements/next.css';
@import 'elements/place.css';
@import 'elements/shout.css';
/* Modifiers */
@import 'modifiers/clear.css';
@import 'modifiers/white.css';
@import 'modifiers/black.css';
/* Slide */
.slide {
position: relative;
z-index: 0;
overflow: hidden;
box-sizing: border-box;
padding: 81px 100px 0;
width: var(--slide-width);
height: var(--slide-height);
background: #ffffff;
}
/* Number */
.slide::after {
position: absolute;
top: 0;
left: 875px;
box-sizing: border-box;
padding-top: 15px;
width: var(--ribbon-size);
height: calc(var(--ribbon-size) * 2);
background-image: url('ribbon.svg');
background-size: cover;
color: #ffffff;
counter-increment: slide;
content: counter(slide);
text-align: center;
}
/* Styles */
@import 'fonts.css';
@import 'shower/shower.css';
@import 'blocks/badge.css';
@import 'blocks/caption.css';
@import 'blocks/progress.css';
@import 'blocks/region.css';
@import 'slide/slide.css';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment