changed selection of main container from #reveal to .reveal (closes #46)
This commit is contained in:
parent
6bcdd8e240
commit
6db42971ea
234
css/main.css
234
css/main.css
|
@ -54,10 +54,10 @@ body {
|
||||||
/*********************************************
|
/*********************************************
|
||||||
* HEADERS
|
* HEADERS
|
||||||
*********************************************/
|
*********************************************/
|
||||||
#reveal h1,
|
.reveal h1,
|
||||||
#reveal h2,
|
.reveal h2,
|
||||||
#reveal h3,
|
.reveal h3,
|
||||||
#reveal h4 {
|
.reveal h4 {
|
||||||
margin: 0 0 20px 0;
|
margin: 0 0 20px 0;
|
||||||
|
|
||||||
color: #eee;
|
color: #eee;
|
||||||
|
@ -70,20 +70,20 @@ body {
|
||||||
text-shadow: 0px 0px 6px rgba(0,0,0,0.2);
|
text-shadow: 0px 0px 6px rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal h1 { font-size: 136px; }
|
.reveal h1 { font-size: 136px; }
|
||||||
#reveal h2 { font-size: 76px; }
|
.reveal h2 { font-size: 76px; }
|
||||||
#reveal h3 { font-size: 56px; }
|
.reveal h3 { font-size: 56px; }
|
||||||
#reveal h4 { font-size: 36px; }
|
.reveal h4 { font-size: 36px; }
|
||||||
|
|
||||||
#reveal h1.inverted,
|
.reveal h1.inverted,
|
||||||
#reveal h2.inverted,
|
.reveal h2.inverted,
|
||||||
#reveal h3.inverted,
|
.reveal h3.inverted,
|
||||||
#reveal h4.inverted {
|
.reveal h4.inverted {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-shadow: 0px 0px 2px rgba(0,0,0,0.2);
|
text-shadow: 0px 0px 2px rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal h1 {
|
.reveal h1 {
|
||||||
text-shadow: 0 1px 0 #ccc,
|
text-shadow: 0 1px 0 #ccc,
|
||||||
0 2px 0 #c9c9c9,
|
0 2px 0 #c9c9c9,
|
||||||
0 3px 0 #bbb,
|
0 3px 0 #bbb,
|
||||||
|
@ -102,7 +102,7 @@ body {
|
||||||
* VIEW FRAGMENTS
|
* VIEW FRAGMENTS
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal .slides section .fragment {
|
.reveal .slides section .fragment {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
||||||
-webkit-transition: all .2s ease;
|
-webkit-transition: all .2s ease;
|
||||||
|
@ -111,7 +111,7 @@ body {
|
||||||
-o-transition: all .2s ease;
|
-o-transition: all .2s ease;
|
||||||
transition: all .2s ease;
|
transition: all .2s ease;
|
||||||
}
|
}
|
||||||
#reveal .slides section .fragment.visible {
|
.reveal .slides section .fragment.visible {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,68 +120,68 @@ body {
|
||||||
* DEFAULT ELEMENT STYLES
|
* DEFAULT ELEMENT STYLES
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal .slides section {
|
.reveal .slides section {
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal strong,
|
.reveal strong,
|
||||||
#reveal b {
|
.reveal b {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal em,
|
.reveal em,
|
||||||
#reveal i {
|
.reveal i {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal ol,
|
.reveal ol,
|
||||||
#reveal ul {
|
.reveal ul {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal ol {
|
.reveal ol {
|
||||||
list-style: decimal inside;
|
list-style: decimal inside;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal ul {
|
.reveal ul {
|
||||||
list-style: disc;
|
list-style: disc;
|
||||||
}
|
}
|
||||||
#reveal ul>li>ul {
|
.reveal ul>li>ul {
|
||||||
list-style: square;
|
list-style: square;
|
||||||
}
|
}
|
||||||
#reveal ul>li>ul>li>ul {
|
.reveal ul>li>ul>li>ul {
|
||||||
list-style: circle;
|
list-style: circle;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Brain freeze – there has to be a better way of doing this? */
|
/* Brain freeze – there has to be a better way of doing this? */
|
||||||
#reveal ul ul,
|
.reveal ul ul,
|
||||||
#reveal ul ol,
|
.reveal ul ol,
|
||||||
|
|
||||||
#reveal ol ol,
|
.reveal ol ol,
|
||||||
#reveal ol ul,
|
.reveal ol ul,
|
||||||
|
|
||||||
#reveal ul ul ul,
|
.reveal ul ul ul,
|
||||||
#reveal ul ul ol,
|
.reveal ul ul ol,
|
||||||
#reveal ul ol ol,
|
.reveal ul ol ol,
|
||||||
#reveal ul ol ul,
|
.reveal ul ol ul,
|
||||||
|
|
||||||
#reveal ol ol ol,
|
.reveal ol ol ol,
|
||||||
#reveal ol ol ul,
|
.reveal ol ol ul,
|
||||||
#reveal ol ul ul,
|
.reveal ol ul ul,
|
||||||
#reveal ol ul ol {
|
.reveal ol ul ol {
|
||||||
display: block;
|
display: block;
|
||||||
margin-left: 40px;
|
margin-left: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal p {
|
.reveal p {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal blockquote {
|
.reveal blockquote {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
|
@ -192,14 +192,14 @@ body {
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(255, 255, 255, 0.05);
|
||||||
box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
|
box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
#reveal blockquote:before {
|
.reveal blockquote:before {
|
||||||
content: '“';
|
content: '“';
|
||||||
}
|
}
|
||||||
#reveal blockquote:after {
|
.reveal blockquote:after {
|
||||||
content: '”';
|
content: '”';
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal pre {
|
.reveal pre {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
@ -215,27 +215,27 @@ body {
|
||||||
box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
|
box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal code {
|
.reveal code {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal small {
|
.reveal small {
|
||||||
font-size: 60%;
|
font-size: 60%;
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal q {
|
.reveal q {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
#reveal q:before {
|
.reveal q:before {
|
||||||
content: '“';
|
content: '“';
|
||||||
}
|
}
|
||||||
#reveal q:after {
|
.reveal q:after {
|
||||||
content: '”';
|
content: '”';
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal a:not(.image) {
|
.reveal a:not(.image) {
|
||||||
color: hsl(185, 85%, 50%);
|
color: hsl(185, 85%, 50%);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ body {
|
||||||
transition: all .2s ease;
|
transition: all .2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal a:not(.image):hover {
|
.reveal a:not(.image):hover {
|
||||||
color: hsl(185, 85%, 70%);
|
color: hsl(185, 85%, 70%);
|
||||||
background: hsla(185, 25%, 20%, 0.4);
|
background: hsla(185, 25%, 20%, 0.4);
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
|
@ -254,7 +254,7 @@ body {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal section img {
|
.reveal section img {
|
||||||
margin: 30px 0 0 0;
|
margin: 30px 0 0 0;
|
||||||
background: rgba(255,255,255,0.12);
|
background: rgba(255,255,255,0.12);
|
||||||
border: 4px solid #eee;
|
border: 4px solid #eee;
|
||||||
|
@ -270,7 +270,7 @@ body {
|
||||||
transition: all .2s linear;
|
transition: all .2s linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal a:hover img {
|
.reveal a:hover img {
|
||||||
background: rgba(255,255,255,0.2);
|
background: rgba(255,255,255,0.2);
|
||||||
border-color: #13DAEC;
|
border-color: #13DAEC;
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ body {
|
||||||
* CONTROLS
|
* CONTROLS
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal .controls {
|
.reveal .controls {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
@ -295,36 +295,36 @@ body {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal .controls a {
|
.reveal .controls a {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
opacity: 0.1;
|
opacity: 0.1;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
#reveal .controls a.enabled {
|
.reveal .controls a.enabled {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
color: hsl(185, 85%, 70%);
|
color: hsl(185, 85%, 70%);
|
||||||
|
|
||||||
text-shadow: 0px 0px 2px hsla(185, 45%, 70%, 0.3);
|
text-shadow: 0px 0px 2px hsla(185, 45%, 70%, 0.3);
|
||||||
}
|
}
|
||||||
#reveal .controls a.enabled:active {
|
.reveal .controls a.enabled:active {
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal .controls .left {
|
.reveal .controls .left {
|
||||||
top: 30px;
|
top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal .controls .right {
|
.reveal .controls .right {
|
||||||
left: 60px;
|
left: 60px;
|
||||||
top: 30px;
|
top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal .controls .up {
|
.reveal .controls .up {
|
||||||
left: 30px;
|
left: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal .controls .down {
|
.reveal .controls .down {
|
||||||
left: 30px;
|
left: 30px;
|
||||||
top: 60px;
|
top: 60px;
|
||||||
|
|
||||||
|
@ -335,7 +335,7 @@ body {
|
||||||
* PROGRESS BAR
|
* PROGRESS BAR
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal .progress {
|
.reveal .progress {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: none;
|
display: none;
|
||||||
height: 3px;
|
height: 3px;
|
||||||
|
@ -346,7 +346,7 @@ body {
|
||||||
background: rgba(0,0,0,0.2);
|
background: rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal .progress span {
|
.reveal .progress span {
|
||||||
display: block;
|
display: block;
|
||||||
background: hsl(185, 85%, 50%);
|
background: hsl(185, 85%, 50%);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -363,7 +363,7 @@ body {
|
||||||
* ROLLING LINKS
|
* ROLLING LINKS
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal .roll {
|
.reveal .roll {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
@ -379,11 +379,11 @@ body {
|
||||||
-ms-perspective-origin: 50% 50%;
|
-ms-perspective-origin: 50% 50%;
|
||||||
perspective-origin: 50% 50%;
|
perspective-origin: 50% 50%;
|
||||||
}
|
}
|
||||||
#reveal .roll:hover {
|
.reveal .roll:hover {
|
||||||
background: none;
|
background: none;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
#reveal .roll span {
|
.reveal .roll span {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
|
@ -405,7 +405,7 @@ body {
|
||||||
-ms-transform-style: preserve-3d;
|
-ms-transform-style: preserve-3d;
|
||||||
transform-style: preserve-3d;
|
transform-style: preserve-3d;
|
||||||
}
|
}
|
||||||
#reveal .roll:hover span {
|
.reveal .roll:hover span {
|
||||||
background: rgba(0,0,0,0.5);
|
background: rgba(0,0,0,0.5);
|
||||||
|
|
||||||
-webkit-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
|
-webkit-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
|
||||||
|
@ -413,7 +413,7 @@ body {
|
||||||
-ms-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
|
-ms-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
|
||||||
transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
|
transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
|
||||||
}
|
}
|
||||||
#reveal .roll span:after {
|
.reveal .roll span:after {
|
||||||
content: attr(data-title);
|
content: attr(data-title);
|
||||||
|
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -441,7 +441,7 @@ body {
|
||||||
* SLIDES
|
* SLIDES
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal .slides {
|
.reveal .slides {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 900px;
|
width: 900px;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
|
@ -471,8 +471,8 @@ body {
|
||||||
perspective-origin: 50% 25%;
|
perspective-origin: 50% 25%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal .slides>section,
|
.reveal .slides>section,
|
||||||
#reveal .slides>section>section {
|
.reveal .slides>section>section {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -492,7 +492,7 @@ body {
|
||||||
transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
|
transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal .slides>section.present {
|
.reveal .slides>section.present {
|
||||||
display: block;
|
display: block;
|
||||||
z-index: 11;
|
z-index: 11;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -503,7 +503,7 @@ body {
|
||||||
* DEFAULT TRANSITION
|
* DEFAULT TRANSITION
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal .slides>section.past {
|
.reveal .slides>section.past {
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
||||||
|
@ -512,7 +512,7 @@ body {
|
||||||
-ms-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
|
-ms-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
|
||||||
transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
|
transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
|
||||||
}
|
}
|
||||||
#reveal .slides>section.future {
|
.reveal .slides>section.future {
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@ body {
|
||||||
transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
|
transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal .slides>section>section.past {
|
.reveal .slides>section>section.past {
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
||||||
|
@ -531,7 +531,7 @@ body {
|
||||||
-ms-transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
|
-ms-transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
|
||||||
transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
|
transform: translate3d(0, -50%, 0) rotateX(70deg) translate3d(0, -50%, 0);
|
||||||
}
|
}
|
||||||
#reveal .slides>section>section.future {
|
.reveal .slides>section>section.future {
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
||||||
|
@ -546,26 +546,26 @@ body {
|
||||||
* CONCAVE TRANSITION
|
* CONCAVE TRANSITION
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal.concave .slides>section.past {
|
.reveal.concave .slides>section.past {
|
||||||
-webkit-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
|
-webkit-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
|
||||||
-moz-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
|
-moz-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
|
||||||
-ms-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
|
-ms-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
|
||||||
transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
|
transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
|
||||||
}
|
}
|
||||||
#reveal.concave .slides>section.future {
|
.reveal.concave .slides>section.future {
|
||||||
-webkit-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
|
-webkit-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
|
||||||
-moz-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
|
-moz-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
|
||||||
-ms-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
|
-ms-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
|
||||||
transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
|
transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.concave .slides>section>section.past {
|
.reveal.concave .slides>section>section.past {
|
||||||
-webkit-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
|
-webkit-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
|
||||||
-moz-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
|
-moz-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
|
||||||
-ms-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
|
-ms-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
|
||||||
transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
|
transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
|
||||||
}
|
}
|
||||||
#reveal.concave .slides>section>section.future {
|
.reveal.concave .slides>section>section.future {
|
||||||
-webkit-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
|
-webkit-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
|
||||||
-moz-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
|
-moz-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
|
||||||
-ms-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
|
-ms-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
|
||||||
|
@ -577,14 +577,14 @@ body {
|
||||||
* LINEAR TRANSITION
|
* LINEAR TRANSITION
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal.linear .slides>section.past {
|
.reveal.linear .slides>section.past {
|
||||||
-webkit-transform: translate(-150%, 0);
|
-webkit-transform: translate(-150%, 0);
|
||||||
-moz-transform: translate(-150%, 0);
|
-moz-transform: translate(-150%, 0);
|
||||||
-ms-transform: translate(-150%, 0);
|
-ms-transform: translate(-150%, 0);
|
||||||
-o-transform: translate(-150%, 0);
|
-o-transform: translate(-150%, 0);
|
||||||
transform: translate(-150%, 0);
|
transform: translate(-150%, 0);
|
||||||
}
|
}
|
||||||
#reveal.linear .slides>section.future {
|
.reveal.linear .slides>section.future {
|
||||||
-webkit-transform: translate(150%, 0);
|
-webkit-transform: translate(150%, 0);
|
||||||
-moz-transform: translate(150%, 0);
|
-moz-transform: translate(150%, 0);
|
||||||
-ms-transform: translate(150%, 0);
|
-ms-transform: translate(150%, 0);
|
||||||
|
@ -592,14 +592,14 @@ body {
|
||||||
transform: translate(150%, 0);
|
transform: translate(150%, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.linear .slides>section>section.past {
|
.reveal.linear .slides>section>section.past {
|
||||||
-webkit-transform: translate(0, -150%);
|
-webkit-transform: translate(0, -150%);
|
||||||
-moz-transform: translate(0, -150%);
|
-moz-transform: translate(0, -150%);
|
||||||
-ms-transform: translate(0, -150%);
|
-ms-transform: translate(0, -150%);
|
||||||
-o-transform: translate(0, -150%);
|
-o-transform: translate(0, -150%);
|
||||||
transform: translate(0, -150%);
|
transform: translate(0, -150%);
|
||||||
}
|
}
|
||||||
#reveal.linear .slides>section>section.future {
|
.reveal.linear .slides>section>section.future {
|
||||||
-webkit-transform: translate(0, 150%);
|
-webkit-transform: translate(0, 150%);
|
||||||
-moz-transform: translate(0, 150%);
|
-moz-transform: translate(0, 150%);
|
||||||
-ms-transform: translate(0, 150%);
|
-ms-transform: translate(0, 150%);
|
||||||
|
@ -611,7 +611,7 @@ body {
|
||||||
* BOX TRANSITION
|
* BOX TRANSITION
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal.cube .slides {
|
.reveal.cube .slides {
|
||||||
margin-top: -350px;
|
margin-top: -350px;
|
||||||
|
|
||||||
-webkit-perspective-origin: 50% 25%;
|
-webkit-perspective-origin: 50% 25%;
|
||||||
|
@ -625,7 +625,7 @@ body {
|
||||||
perspective: 1300px;
|
perspective: 1300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.cube .slides section {
|
.reveal.cube .slides section {
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
|
||||||
-webkit-backface-visibility: hidden;
|
-webkit-backface-visibility: hidden;
|
||||||
|
@ -637,7 +637,7 @@ body {
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
#reveal.cube .slides section:not(.stack):before {
|
.reveal.cube .slides section:not(.stack):before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -654,7 +654,7 @@ body {
|
||||||
-o-transform: translateZ( -20px );
|
-o-transform: translateZ( -20px );
|
||||||
transform: translateZ( -20px );
|
transform: translateZ( -20px );
|
||||||
}
|
}
|
||||||
#reveal.cube .slides section:not(.stack):after {
|
.reveal.cube .slides section:not(.stack):after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -675,12 +675,12 @@ body {
|
||||||
transform: translateZ(-90px) rotateX( 65deg );
|
transform: translateZ(-90px) rotateX( 65deg );
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.cube .slides>section.stack {
|
.reveal.cube .slides>section.stack {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.cube .slides>section.past {
|
.reveal.cube .slides>section.past {
|
||||||
-webkit-transform-origin: 100% 0%;
|
-webkit-transform-origin: 100% 0%;
|
||||||
-moz-transform-origin: 100% 0%;
|
-moz-transform-origin: 100% 0%;
|
||||||
-ms-transform-origin: 100% 0%;
|
-ms-transform-origin: 100% 0%;
|
||||||
|
@ -692,7 +692,7 @@ body {
|
||||||
transform: translate3d(-100%, 0, 0) rotateY(-90deg);
|
transform: translate3d(-100%, 0, 0) rotateY(-90deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.cube .slides>section.future {
|
.reveal.cube .slides>section.future {
|
||||||
-webkit-transform-origin: 0% 0%;
|
-webkit-transform-origin: 0% 0%;
|
||||||
-moz-transform-origin: 0% 0%;
|
-moz-transform-origin: 0% 0%;
|
||||||
-ms-transform-origin: 0% 0%;
|
-ms-transform-origin: 0% 0%;
|
||||||
|
@ -704,7 +704,7 @@ body {
|
||||||
transform: translate3d(100%, 0, 0) rotateY(90deg);
|
transform: translate3d(100%, 0, 0) rotateY(90deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.cube .slides>section>section.past {
|
.reveal.cube .slides>section>section.past {
|
||||||
-webkit-transform-origin: 0% 100%;
|
-webkit-transform-origin: 0% 100%;
|
||||||
-moz-transform-origin: 0% 100%;
|
-moz-transform-origin: 0% 100%;
|
||||||
-ms-transform-origin: 0% 100%;
|
-ms-transform-origin: 0% 100%;
|
||||||
|
@ -716,7 +716,7 @@ body {
|
||||||
transform: translate3d(0, -100%, 0) rotateX(90deg);
|
transform: translate3d(0, -100%, 0) rotateX(90deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.cube .slides>section>section.future {
|
.reveal.cube .slides>section>section.future {
|
||||||
-webkit-transform-origin: 0% 0%;
|
-webkit-transform-origin: 0% 0%;
|
||||||
-moz-transform-origin: 0% 0%;
|
-moz-transform-origin: 0% 0%;
|
||||||
-ms-transform-origin: 0% 0%;
|
-ms-transform-origin: 0% 0%;
|
||||||
|
@ -733,7 +733,7 @@ body {
|
||||||
* PAGE TRANSITION
|
* PAGE TRANSITION
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal.page .slides {
|
.reveal.page .slides {
|
||||||
margin-top: -350px;
|
margin-top: -350px;
|
||||||
|
|
||||||
-webkit-perspective-origin: 50% 50%;
|
-webkit-perspective-origin: 50% 50%;
|
||||||
|
@ -747,17 +747,17 @@ body {
|
||||||
perspective: 3000px;
|
perspective: 3000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.page .slides section {
|
.reveal.page .slides section {
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
#reveal.page .slides section.past {
|
.reveal.page .slides section.past {
|
||||||
z-index: 12;
|
z-index: 12;
|
||||||
}
|
}
|
||||||
#reveal.page .slides section:not(.stack):before {
|
.reveal.page .slides section:not(.stack):before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -773,7 +773,7 @@ body {
|
||||||
-o-transform: translateZ( -20px );
|
-o-transform: translateZ( -20px );
|
||||||
transform: translateZ( -20px );
|
transform: translateZ( -20px );
|
||||||
}
|
}
|
||||||
#reveal.page .slides section:not(.stack):after {
|
.reveal.page .slides section:not(.stack):after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -790,12 +790,12 @@ body {
|
||||||
-webkit-transform: translateZ(-90px) rotateX( 65deg );
|
-webkit-transform: translateZ(-90px) rotateX( 65deg );
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.page .slides>section.stack {
|
.reveal.page .slides>section.stack {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.page .slides>section.past {
|
.reveal.page .slides>section.past {
|
||||||
-webkit-transform-origin: 0% 0%;
|
-webkit-transform-origin: 0% 0%;
|
||||||
-moz-transform-origin: 0% 0%;
|
-moz-transform-origin: 0% 0%;
|
||||||
-ms-transform-origin: 0% 0%;
|
-ms-transform-origin: 0% 0%;
|
||||||
|
@ -807,7 +807,7 @@ body {
|
||||||
transform: translate3d(-40%, 0, 0) rotateY(-80deg);
|
transform: translate3d(-40%, 0, 0) rotateY(-80deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.page .slides>section.future {
|
.reveal.page .slides>section.future {
|
||||||
-webkit-transform-origin: 100% 0%;
|
-webkit-transform-origin: 100% 0%;
|
||||||
-moz-transform-origin: 100% 0%;
|
-moz-transform-origin: 100% 0%;
|
||||||
-ms-transform-origin: 100% 0%;
|
-ms-transform-origin: 100% 0%;
|
||||||
|
@ -819,7 +819,7 @@ body {
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.page .slides>section>section.past {
|
.reveal.page .slides>section>section.past {
|
||||||
-webkit-transform-origin: 0% 0%;
|
-webkit-transform-origin: 0% 0%;
|
||||||
-moz-transform-origin: 0% 0%;
|
-moz-transform-origin: 0% 0%;
|
||||||
-ms-transform-origin: 0% 0%;
|
-ms-transform-origin: 0% 0%;
|
||||||
|
@ -831,7 +831,7 @@ body {
|
||||||
transform: translate3d(0, -40%, 0) rotateX(80deg);
|
transform: translate3d(0, -40%, 0) rotateX(80deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.page .slides>section>section.future {
|
.reveal.page .slides>section>section.future {
|
||||||
-webkit-transform-origin: 0% 100%;
|
-webkit-transform-origin: 0% 100%;
|
||||||
-moz-transform-origin: 0% 100%;
|
-moz-transform-origin: 0% 100%;
|
||||||
-ms-transform-origin: 0% 100%;
|
-ms-transform-origin: 0% 100%;
|
||||||
|
@ -848,18 +848,18 @@ body {
|
||||||
* NEON THEME
|
* NEON THEME
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal.neon a,
|
.reveal.neon a,
|
||||||
#reveal.neon a:hover,
|
.reveal.neon a:hover,
|
||||||
#reveal.neon .controls a.enabled {
|
.reveal.neon .controls a.enabled {
|
||||||
color: #5de048;
|
color: #5de048;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.neon .progress span,
|
.reveal.neon .progress span,
|
||||||
#reveal.neon .roll span:after {
|
.reveal.neon .roll span:after {
|
||||||
background: #5de048;
|
background: #5de048;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.neon a.image:hover img {
|
.reveal.neon a.image:hover img {
|
||||||
border-color: #5de048;
|
border-color: #5de048;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -868,38 +868,38 @@ body {
|
||||||
* OVERVIEW
|
* OVERVIEW
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
#reveal.overview .slides {
|
.reveal.overview .slides {
|
||||||
-webkit-perspective: 700px;
|
-webkit-perspective: 700px;
|
||||||
-moz-perspective: 700px;
|
-moz-perspective: 700px;
|
||||||
-ms-perspective: 700px;
|
-ms-perspective: 700px;
|
||||||
perspective: 700px;
|
perspective: 700px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.overview .slides section {
|
.reveal.overview .slides section {
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: rgba(0,0,0,0.1);
|
background: rgba(0,0,0,0.1);
|
||||||
}
|
}
|
||||||
#reveal.overview .slides section .fragment {
|
.reveal.overview .slides section .fragment {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
#reveal.overview .slides section:after,
|
.reveal.overview .slides section:after,
|
||||||
#reveal.overview .slides section:before {
|
.reveal.overview .slides section:before {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
#reveal.overview .slides section>section {
|
.reveal.overview .slides section>section {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
#reveal.overview .slides section:hover {
|
.reveal.overview .slides section:hover {
|
||||||
background: rgba(0,0,0,0.3);
|
background: rgba(0,0,0,0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reveal.overview .slides section.present {
|
.reveal.overview .slides section.present {
|
||||||
background: rgba(0,0,0,0.3);
|
background: rgba(0,0,0,0.3);
|
||||||
}
|
}
|
||||||
#reveal.overview .slides>section.stack {
|
.reveal.overview .slides>section.stack {
|
||||||
background: none;
|
background: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
32
js/reveal.js
32
js/reveal.js
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
var Reveal = (function(){
|
var Reveal = (function(){
|
||||||
|
|
||||||
var HORIZONTAL_SLIDES_SELECTOR = '#reveal .slides>section',
|
var HORIZONTAL_SLIDES_SELECTOR = '.reveal .slides>section',
|
||||||
VERTICAL_SLIDES_SELECTOR = '#reveal .slides>section.present>section',
|
VERTICAL_SLIDES_SELECTOR = '.reveal .slides>section.present>section',
|
||||||
|
|
||||||
IS_TOUCH_DEVICE = !!( 'ontouchstart' in window ),
|
IS_TOUCH_DEVICE = !!( 'ontouchstart' in window ),
|
||||||
|
|
||||||
|
@ -84,14 +84,14 @@ var Reveal = (function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cache references to DOM elements
|
// Cache references to DOM elements
|
||||||
dom.wrapper = document.querySelector( '#reveal' );
|
dom.wrapper = document.querySelector( '.reveal' );
|
||||||
dom.progress = document.querySelector( '#reveal .progress' );
|
dom.progress = document.querySelector( '.reveal .progress' );
|
||||||
dom.progressbar = document.querySelector( '#reveal .progress span' );
|
dom.progressbar = document.querySelector( '.reveal .progress span' );
|
||||||
dom.controls = document.querySelector( '#reveal .controls' );
|
dom.controls = document.querySelector( '.reveal .controls' );
|
||||||
dom.controlsLeft = document.querySelector( '#reveal .controls .left' );
|
dom.controlsLeft = document.querySelector( '.reveal .controls .left' );
|
||||||
dom.controlsRight = document.querySelector( '#reveal .controls .right' );
|
dom.controlsRight = document.querySelector( '.reveal .controls .right' );
|
||||||
dom.controlsUp = document.querySelector( '#reveal .controls .up' );
|
dom.controlsUp = document.querySelector( '.reveal .controls .up' );
|
||||||
dom.controlsDown = document.querySelector( '#reveal .controls .down' );
|
dom.controlsDown = document.querySelector( '.reveal .controls .down' );
|
||||||
|
|
||||||
addEventListeners();
|
addEventListeners();
|
||||||
|
|
||||||
|
@ -402,7 +402,7 @@ var Reveal = (function(){
|
||||||
*/
|
*/
|
||||||
function linkify() {
|
function linkify() {
|
||||||
if( supports3DTransforms ) {
|
if( supports3DTransforms ) {
|
||||||
var nodes = document.querySelectorAll( '#reveal .slides section a:not(.image)' );
|
var nodes = document.querySelectorAll( '.reveal .slides section a:not(.image)' );
|
||||||
|
|
||||||
for( var i = 0, len = nodes.length; i < len; i++ ) {
|
for( var i = 0, len = nodes.length; i < len; i++ ) {
|
||||||
var node = nodes[i];
|
var node = nodes[i];
|
||||||
|
@ -474,7 +474,7 @@ var Reveal = (function(){
|
||||||
function deactivateOverview() {
|
function deactivateOverview() {
|
||||||
dom.wrapper.classList.remove( 'overview' );
|
dom.wrapper.classList.remove( 'overview' );
|
||||||
|
|
||||||
var slides = Array.prototype.slice.call( document.querySelectorAll( '#reveal .slides section' ) );
|
var slides = Array.prototype.slice.call( document.querySelectorAll( '.reveal .slides section' ) );
|
||||||
|
|
||||||
for( var i = 0, len = slides.length; i < len; i++ ) {
|
for( var i = 0, len = slides.length; i < len; i++ ) {
|
||||||
var element = slides[i];
|
var element = slides[i];
|
||||||
|
@ -732,7 +732,7 @@ var Reveal = (function(){
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dispatches an event of the specified type from the
|
* Dispatches an event of the specified type from the
|
||||||
* #reveal DOM element.
|
* reveal DOM element.
|
||||||
*/
|
*/
|
||||||
function dispatchEvent( type, properties ) {
|
function dispatchEvent( type, properties ) {
|
||||||
var event = document.createEvent( "HTMLEvents", 1, 2 );
|
var event = document.createEvent( "HTMLEvents", 1, 2 );
|
||||||
|
@ -865,7 +865,7 @@ var Reveal = (function(){
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Fetch the previous horizontal slide, if there is one
|
// Fetch the previous horizontal slide, if there is one
|
||||||
var previousSlide = document.querySelector( '#reveal .slides>section.past:nth-child(' + indexh + ')' );
|
var previousSlide = document.querySelector( '.reveal .slides>section.past:nth-child(' + indexh + ')' );
|
||||||
|
|
||||||
if( previousSlide ) {
|
if( previousSlide ) {
|
||||||
indexv = ( previousSlide.querySelectorAll('section').length + 1 ) || 0;
|
indexv = ( previousSlide.querySelectorAll('section').length + 1 ) || 0;
|
||||||
|
@ -910,10 +910,10 @@ var Reveal = (function(){
|
||||||
|
|
||||||
// Forward event binding to the reveal DOM element
|
// Forward event binding to the reveal DOM element
|
||||||
addEventListener: function( type, listener, useCapture ) {
|
addEventListener: function( type, listener, useCapture ) {
|
||||||
( dom.wrapper || document.querySelector( '#reveal' ) ).addEventListener( type, listener, useCapture );
|
( dom.wrapper || document.querySelector( '.reveal' ) ).addEventListener( type, listener, useCapture );
|
||||||
},
|
},
|
||||||
removeEventListener: function( type, listener, useCapture ) {
|
removeEventListener: function( type, listener, useCapture ) {
|
||||||
( dom.wrapper || document.querySelector( '#reveal' ) ).removeEventListener( type, listener, useCapture );
|
( dom.wrapper || document.querySelector( '.reveal' ) ).removeEventListener( type, listener, useCapture );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Hakim El Hattab, http://hakim.se
|
* Copyright (C) 2012 Hakim El Hattab, http://hakim.se
|
||||||
*/
|
*/
|
||||||
var Reveal=(function(){var j="#reveal .slides>section",a="#reveal .slides>section.present>section",e=!!("ontouchstart" in window),k=0,c=0,H={controls:false,progress:false,history:false,loop:false,mouseWheel:true,rollingLinks:true,transition:"default",theme:"default"},T=[],d={},J=document.body.style.WebkitPerspective!==undefined||document.body.style.MozPerspective!==undefined||document.body.style.msPerspective!==undefined||document.body.style.OPerspective!==undefined||document.body.style.perspective!==undefined,l=document.body.style.WebkitTransform!==undefined||document.body.style.MozTransform!==undefined||document.body.style.msTransform!==undefined||document.body.style.OTransform!==undefined||document.body.style.transform!==undefined,x=!!document.body.classList;
|
var Reveal=(function(){var j=".reveal .slides>section",a=".reveal .slides>section.present>section",e=!!("ontouchstart" in window),k=0,c=0,H={controls:false,progress:false,history:false,loop:false,mouseWheel:true,rollingLinks:true,transition:"default",theme:"default"},T=[],d={},J=document.body.style.WebkitPerspective!==undefined||document.body.style.MozPerspective!==undefined||document.body.style.msPerspective!==undefined||document.body.style.OPerspective!==undefined||document.body.style.perspective!==undefined,l=document.body.style.WebkitTransform!==undefined||document.body.style.MozTransform!==undefined||document.body.style.msTransform!==undefined||document.body.style.OTransform!==undefined||document.body.style.transform!==undefined,x=!!document.body.classList;
|
||||||
mouseWheelTimeout=0,writeURLTimeout=0,touch={startX:0,startY:0,startSpan:0,startCount:0,handled:false,threshold:40};function h(V){if((!l&&!J)||!x){document.body.setAttribute("class","no-transforms");
|
mouseWheelTimeout=0,writeURLTimeout=0,touch={startX:0,startY:0,startSpan:0,startCount:0,handled:false,threshold:40};function h(V){if((!l&&!J)||!x){document.body.setAttribute("class","no-transforms");
|
||||||
return;}d.wrapper=document.querySelector("#reveal");d.progress=document.querySelector("#reveal .progress");d.progressbar=document.querySelector("#reveal .progress span");
|
return;}d.wrapper=document.querySelector(".reveal");d.progress=document.querySelector(".reveal .progress");d.progressbar=document.querySelector(".reveal .progress span");
|
||||||
d.controls=document.querySelector("#reveal .controls");d.controlsLeft=document.querySelector("#reveal .controls .left");d.controlsRight=document.querySelector("#reveal .controls .right");
|
d.controls=document.querySelector(".reveal .controls");d.controlsLeft=document.querySelector(".reveal .controls .left");d.controlsRight=document.querySelector(".reveal .controls .right");
|
||||||
d.controlsUp=document.querySelector("#reveal .controls .up");d.controlsDown=document.querySelector("#reveal .controls .down");z();q(H,V);C();D();if(navigator.userAgent.match(/(iphone|ipod|android)/i)){document.documentElement.style.overflow="scroll";
|
d.controlsUp=document.querySelector(".reveal .controls .up");d.controlsDown=document.querySelector(".reveal .controls .down");z();q(H,V);C();D();if(navigator.userAgent.match(/(iphone|ipod|android)/i)){document.documentElement.style.overflow="scroll";
|
||||||
document.body.style.height="120%";window.addEventListener("load",P,false);window.addEventListener("orientationchange",P,false);}}function C(){if(J===false){H.transition="linear";
|
document.body.style.height="120%";window.addEventListener("load",P,false);window.addEventListener("orientationchange",P,false);}}function C(){if(J===false){H.transition="linear";
|
||||||
}if(H.controls){d.controls.style.display="block";}if(H.progress){d.progress.style.display="block";}if(H.transition!=="default"){d.wrapper.classList.add(H.transition);
|
}if(H.controls){d.controls.style.display="block";}if(H.progress){d.progress.style.display="block";}if(H.transition!=="default"){d.wrapper.classList.add(H.transition);
|
||||||
}if(H.theme!=="default"){d.wrapper.classList.add(H.theme);}if(H.mouseWheel){document.addEventListener("DOMMouseScroll",m,false);document.addEventListener("mousewheel",m,false);
|
}if(H.theme!=="default"){d.wrapper.classList.add(H.theme);}if(H.mouseWheel){document.addEventListener("DOMMouseScroll",m,false);document.addEventListener("mousewheel",m,false);
|
||||||
|
@ -28,14 +28,14 @@ touch.startY=V.touches[0].clientY;touch.startCount=V.touches.length;if(V.touches
|
||||||
if(Math.abs(touch.startSpan-Z)>touch.threshold){touch.handled=true;if(Z<touch.startSpan){B();}else{Q();}}}else{if(aa.touches.length===1){var W=Y-touch.startX,V=X-touch.startY;
|
if(Math.abs(touch.startSpan-Z)>touch.threshold){touch.handled=true;if(Z<touch.startSpan){B();}else{Q();}}}else{if(aa.touches.length===1){var W=Y-touch.startX,V=X-touch.startY;
|
||||||
if(W>touch.threshold&&Math.abs(W)>Math.abs(V)){touch.handled=true;w();}else{if(W<-touch.threshold&&Math.abs(W)>Math.abs(V)){touch.handled=true;i();}else{if(V>touch.threshold){touch.handled=true;
|
if(W>touch.threshold&&Math.abs(W)>Math.abs(V)){touch.handled=true;w();}else{if(W<-touch.threshold&&Math.abs(W)>Math.abs(V)){touch.handled=true;i();}else{if(V>touch.threshold){touch.handled=true;
|
||||||
r();}else{if(V<-touch.threshold){touch.handled=true;A();}}}}}}aa.preventDefault();}}function L(V){touch.handled=false;}function m(V){clearTimeout(mouseWheelTimeout);
|
r();}else{if(V<-touch.threshold){touch.handled=true;A();}}}}}}aa.preventDefault();}}function L(V){touch.handled=false;}function m(V){clearTimeout(mouseWheelTimeout);
|
||||||
mouseWheelTimeout=setTimeout(function(){var W=V.detail||-V.wheelDelta;if(W>0){u();}else{N();}},100);}function t(V){D();}function E(){if(J){var W=document.querySelectorAll("#reveal .slides section a:not(.image)");
|
mouseWheelTimeout=setTimeout(function(){var W=V.detail||-V.wheelDelta;if(W>0){u();}else{N();}},100);}function t(V){D();}function E(){if(J){var W=document.querySelectorAll(".reveal .slides section a:not(.image)");
|
||||||
for(var X=0,V=W.length;X<V;X++){var Y=W[X];if(Y.textContent&&!Y.querySelector("img")&&(!Y.className||!Y.classList.contains(Y,"roll"))){Y.classList.add("roll");
|
for(var X=0,V=W.length;X<V;X++){var Y=W[X];if(Y.textContent&&!Y.querySelector("img")&&(!Y.className||!Y.classList.contains(Y,"roll"))){Y.classList.add("roll");
|
||||||
Y.innerHTML='<span data-title="'+Y.text+'">'+Y.innerHTML+"</span>";}}}}function B(){d.wrapper.classList.add("overview");var V=Array.prototype.slice.call(document.querySelectorAll(j));
|
Y.innerHTML='<span data-title="'+Y.text+'">'+Y.innerHTML+"</span>";}}}}function B(){d.wrapper.classList.add("overview");var V=Array.prototype.slice.call(document.querySelectorAll(j));
|
||||||
for(var aa=0,Y=V.length;aa<Y;aa++){var X=V[aa],ae="translateZ(-2500px) translate("+((aa-k)*105)+"%, 0%)";X.setAttribute("data-index-h",aa);X.style.display="block";
|
for(var aa=0,Y=V.length;aa<Y;aa++){var X=V[aa],ae="translateZ(-2500px) translate("+((aa-k)*105)+"%, 0%)";X.setAttribute("data-index-h",aa);X.style.display="block";
|
||||||
X.style.WebkitTransform=ae;X.style.MozTransform=ae;X.style.msTransform=ae;X.style.OTransform=ae;X.style.transform=ae;if(!X.classList.contains("stack")){X.addEventListener("click",y,true);
|
X.style.WebkitTransform=ae;X.style.MozTransform=ae;X.style.msTransform=ae;X.style.OTransform=ae;X.style.transform=ae;if(!X.classList.contains("stack")){X.addEventListener("click",y,true);
|
||||||
}var ad=Array.prototype.slice.call(X.querySelectorAll("section"));for(var Z=0,W=ad.length;Z<W;Z++){var ac=ad[Z],ab="translate(0%, "+((Z-c)*105)+"%)";ac.setAttribute("data-index-h",aa);
|
}var ad=Array.prototype.slice.call(X.querySelectorAll("section"));for(var Z=0,W=ad.length;Z<W;Z++){var ac=ad[Z],ab="translate(0%, "+((Z-c)*105)+"%)";ac.setAttribute("data-index-h",aa);
|
||||||
ac.setAttribute("data-index-v",Z);ac.style.display="block";ac.style.WebkitTransform=ab;ac.style.MozTransform=ab;ac.style.msTransform=ab;ac.style.OTransform=ab;
|
ac.setAttribute("data-index-v",Z);ac.style.display="block";ac.style.WebkitTransform=ab;ac.style.MozTransform=ab;ac.style.msTransform=ab;ac.style.OTransform=ab;
|
||||||
ac.style.transform=ab;ac.addEventListener("click",y,true);}}}function Q(){d.wrapper.classList.remove("overview");var Y=Array.prototype.slice.call(document.querySelectorAll("#reveal .slides section"));
|
ac.style.transform=ab;ac.addEventListener("click",y,true);}}}function Q(){d.wrapper.classList.remove("overview");var Y=Array.prototype.slice.call(document.querySelectorAll(".reveal .slides section"));
|
||||||
for(var X=0,V=Y.length;X<V;X++){var W=Y[X];W.style.WebkitTransform="";W.style.MozTransform="";W.style.msTransform="";W.style.OTransform="";W.style.transform="";
|
for(var X=0,V=Y.length;X<V;X++){var W=Y[X];W.style.WebkitTransform="";W.style.MozTransform="";W.style.msTransform="";W.style.OTransform="";W.style.transform="";
|
||||||
W.removeEventListener("click",y);}b();}function O(){return d.wrapper.classList.contains("overview");}function y(V){if(O()){V.preventDefault();Q();k=this.getAttribute("data-index-h");
|
W.removeEventListener("click",y);}b();}function O(){return d.wrapper.classList.contains("overview");}function y(V){if(O()){V.preventDefault();Q();k=this.getAttribute("data-index-h");
|
||||||
c=this.getAttribute("data-index-v");b();}}function U(W,Y){var aa=Array.prototype.slice.call(document.querySelectorAll(W)),ab=aa.length;if(ab){if(H.loop){Y%=ab;
|
c=this.getAttribute("data-index-v");b();}}function U(W,Y){var aa=Array.prototype.slice.call(document.querySelectorAll(W)),ab=aa.length;if(ab){if(H.loop){Y%=ab;
|
||||||
|
@ -55,6 +55,6 @@ o("fragmentshown",{fragment:V[0]});return true;}}return false;}function G(){if(d
|
||||||
if(W.length){W[W.length-1].classList.remove("visible");o("fragmenthidden",{fragment:W[0]});return true;}}else{var V=document.querySelectorAll(j+".present .fragment.visible");
|
if(W.length){W[W.length-1].classList.remove("visible");o("fragmenthidden",{fragment:W[0]});return true;}}else{var V=document.querySelectorAll(j+".present .fragment.visible");
|
||||||
if(V.length){V[V.length-1].classList.remove("visible");o("fragmenthidden",{fragment:V[0]});return true;}}return false;}function F(W,V){k=W===undefined?k:W;
|
if(V.length){V[V.length-1].classList.remove("visible");o("fragmenthidden",{fragment:V[0]});return true;}}return false;}function F(W,V){k=W===undefined?k:W;
|
||||||
c=V===undefined?c:V;b();}function w(){if(O()||G()===false){k--;c=0;b();}}function i(){if(O()||s()===false){k++;c=0;b();}}function r(){if(O()||G()===false){c--;
|
c=V===undefined?c:V;b();}function w(){if(O()||G()===false){k--;c=0;b();}}function i(){if(O()||s()===false){k++;c=0;b();}}function r(){if(O()||G()===false){c--;
|
||||||
b();}}function A(){if(O()||s()===false){c++;b();}}function N(){if(G()===false){if(f().up){r();}else{var V=document.querySelector("#reveal .slides>section.past:nth-child("+k+")");
|
b();}}function A(){if(O()||s()===false){c++;b();}}function N(){if(G()===false){if(f().up){r();}else{var V=document.querySelector(".reveal .slides>section.past:nth-child("+k+")");
|
||||||
if(V){c=(V.querySelectorAll("section").length+1)||0;k--;b();}}}}function u(){if(s()===false){f().down?A():i();}}function M(){if(O()){Q();}else{B();}}return{initialize:h,navigateTo:F,navigateLeft:w,navigateRight:i,navigateUp:r,navigateDown:A,toggleOverview:M,addEventListener:function(W,X,V){(d.wrapper||document.querySelector("#reveal")).addEventListener(W,X,V);
|
if(V){c=(V.querySelectorAll("section").length+1)||0;k--;b();}}}}function u(){if(s()===false){f().down?A():i();}}function M(){if(O()){Q();}else{B();}}return{initialize:h,navigateTo:F,navigateLeft:w,navigateRight:i,navigateUp:r,navigateDown:A,toggleOverview:M,addEventListener:function(W,X,V){(d.wrapper||document.querySelector(".reveal")).addEventListener(W,X,V);
|
||||||
},removeEventListener:function(W,X,V){(d.wrapper||document.querySelector("#reveal")).removeEventListener(W,X,V);}};})();
|
},removeEventListener:function(W,X,V){(d.wrapper||document.querySelector(".reveal")).removeEventListener(W,X,V);}};})();
|
Loading…
Reference in New Issue