1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/strut_ynh.git synced 2024-09-03 20:26:33 +02:00
strut_ynh/sources/preview_export/reveal.html

129 lines
4.4 KiB
HTML

<html lang="en">
<head>
<meta charset="utf-8">
<title>Deck Title</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="reveal/css/reveal.css">
<link rel="stylesheet" href="reveal/css/theme/default.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="reveal/lib/css/zenburn.css">
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link href='css/web-fonts.css' rel='stylesheet' type='text/css' />
<link href='../styles/strut.themes/backgroundClasses.css' rel='stylesheet' type='text/css' />
<link href='../styles/strut.themes/surfaceClasses.css' rel='stylesheet' type='text/css' />
<style>
.componentContainer {
position: absolute;
line-height: normal;
/*-webkit-transform-origin: 135% 135%;
-moz-transform-origin: 135% 135%;
transform-origin: 135% 135%;*/
}
.transformContainer {
-webkit-transform-origin: 0 0;
-moz-transform-origin: 0 0;
transform-origin: 0 0;
}
.strut-surface, .innerBg {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.slideContainer {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.bg {
width: 100%;
height: 100%;
}
</style>
<script src="reveal/lib/js/head.min.js"></script>
<script src="reveal/js/reveal.js"></script>
<script src="scripts/onready.js"></script>
<script src="scripts/loadPresentation.js"></script>
<script>
ready(function() {
if (document.getElementById('launched-placeholder'))
loadPresentation();
if (!window.presStarted) {
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
width: 1024,
height: 768,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'reveal/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
// { src: 'preview_export/reveal/plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
// { src: 'preview_export/reveal/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
var innerBg = document.querySelector('.innerBg');
function updateSurface(step, operation) {
if (!step) return;
if (step.dataset)
var state = step.dataset.state;
else {
for (var i = 0; i < step.attributes.length; ++i) {
if (step.attributes[i].name == 'data-state') {
state = step.attributes[i].value;
break;
}
}
}
if (typeof state == 'string') {
state = state.trim().split(' ');
for (var i = 0; i < state.length; ++i) {
innerBg.classList[operation](state[i]);
}
}
}
function slideShown(e) {
updateSurface(e.previousSlide, 'remove');
updateSurface(e.currentSlide, 'add');
}
Reveal.addEventListener('slidechanged', slideShown);
Reveal.addEventListener('ready', slideShown);
}
});
</script>
</head>
<body>
<div id="launched-placeholder"></div>
</body>
</html>