Mercurial > hg > Members > anatofuz > slideshow-s6cr
changeset 11:b8d87f2bb55c
Support pdf generation
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 04 Aug 2016 14:01:07 +0900 |
parents | e5301b055cea |
children | b71918a78849 |
files | s6cr.txt slides.pdf.html.erb |
diffstat | 2 files changed, 75 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s6cr.txt Thu Aug 04 13:27:27 2016 +0900 +++ b/s6cr.txt Thu Aug 04 14:01:07 2016 +0900 @@ -1,6 +1,7 @@ # S6 blank template package manifest -__file__.html slides.html.erb +__file__.html slides.html.erb +__file__.pdf.html slides.pdf.html.erb # styles
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slides.pdf.html.erb Thu Aug 04 14:01:07 2016 +0900 @@ -0,0 +1,73 @@ +<!DOCTYPE html> +<html> +<head> + <meta http-equiv="content-type" content="text/html;charset=utf-8"> + <title><%= @headers['title'] %></title> + +<meta name="generator" content="<%= @headers['generator'] %>"> +<meta name="author" content="<%= @headers['author']%>" > + +<!-- style sheet links --> +<link rel="stylesheet" href="s6/themes/screen.css" media="screen"> +<link rel="stylesheet" href="s6/themes/print.css" media="print"> +<link rel="stylesheet" href="s6/themes/blank.css" media="screen,projection"> + +<!-- JS --> +<script src="s6/js/jquery-1.11.3.min.js"></script> +<script src="s6/js/jquery.slideshow.js"></script> +<script src="s6/js/jquery.slideshow.counter.js"></script> +<script src="s6/js/jquery.slideshow.controls.js"></script> +<script src="s6/js/jquery.slideshow.footer.js"></script> +<script src="s6/js/jquery.slideshow.autoplay.js"></script> + +<!-- prettify --> +<link rel="stylesheet" href="scripts/prettify.css"> +<script src="scripts/prettify.js"></script> + +<style> + .slide {page-break-after: always;} +</style> + + +<%= content_for :head %> + +</head> +<body> + +<div class="layout"> + <div id="header"></div> + <div id="footer"> + <div align="right"> + <img src="s6/images/logo.svg" width="200px"> + </div> + </div> +</div> + +<div class="presentation"> + + <div class='slide cover'> + <table width="90%" height="90%" border="0" align="center"> + <tr> + <td> + <div align="center"> + <h1><font color="#808db5"><%= @headers['title'] %></font></h1> + </div> + </td> + </tr> + <tr> + <td> + <div align="left"> + <%= @headers['author'] %> + <%= @headers['profile'] %> + <hr style="color:#ffcc00;background-color:#ffcc00;text-align:left;border:none;width:100%;height:0.2em;"> + </div> + </td> + </tr> + </table> + </div> + +<%= @content %> + +</div><!-- presentation --> +</body> +</html>