view slides.html.erb @ 8:7295bc144c9f default tip

Import prettify from googlehtml5slides
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2015 21:33:28 +0900
parents d24173772691
children
line wrap: on
line source

<!DOCTYPE HTML>
<% lang = @headers['lang'] == "- lang not found -" ? "en-US" : @headers['lang'] %>
<html lang="<%= lang %>">
<head>
	<title><%= @headers['title'] %></title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=1274, user-scalable=no">
	<meta name="generator" content="Slide Show (S9)">
	<meta name="author" content="<%= @headers['author']%>">
	<link rel="stylesheet" href="scripts/prettify/prettify.css">
	<link rel="stylesheet" href="themes/ribbon/styles/style.css">
</head>
<body class="list">
	<header class="caption">
		<h1><%= @headers['title'] %></h1>
		<p><%= @headers['author']%></p>
	</header>
	<div class="slide cover" id="Cover"><div>
		<section>
			<header>
				<h2><%= @headers['title'] %></h2>
				<h3 id="author"><%= @headers['author'] %></h3>
				<h3 id="profile"><%= @headers['profile'] %></h3>
			</header>
		</section>
	</div></div>

<!-- todo: add slide.classes to div -->
<!-- todo: create slide id from header? like a slug in blogs? -->
<% @slides.each_with_index do |slide,i| %>
<div class="slide<%= ' ' + slide.classes unless slide.classes.empty? %>" id="<%= (i+2).to_s %>"><div>
		<section>
			<header>
				<%= slide.header %>
			</header>
			<%= slide.content_without_header %>
		</section>
</div></div>
<% end %>

	<script src="scripts/prettify/prettify.js"></script>
	<script src="scripts/script.js"></script>
	<!-- Copyright © 2010–2011 Vadim Makeev, http://pepelsbey.net/ -->
</body>
</html>