Permalink
Browse files

[#12] Example for treesaver.fonts (copied from simple).

  • Loading branch information...
1 parent be12827 commit 7458521c2b88ab3290109df4af21e01a3d2313ac @giorgian giorgian committed Sep 13, 2012
View
@@ -0,0 +1,46 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Simple Test: Table of Contents</title>
+
+ <link rel="resources" href="resources.html" />
+ <link rel="stylesheet" href="style.css" />
+ <link rel="index" href="toc.json" type="application/json"/>
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1" />
+
+ <script src="../../lib/mustache/mustache.js"></script>
+ <script src="../../lib/closure/goog/base.js"></script>
+
+ <script>
+ window.treesaverFonts = { google: { families: [ 'Tangerine', 'Jim+Nightshade', 'Scada' ] } };
+ </script>
+ <script src="../../test/deps.js"></script>
+ <script>
+ goog.require('treesaver');
+ </script>
+ </head>
+
+ <body>
+ <article>
+ <figure>
+ <div data-sizes="title fallback">
+ <h1><a href="index.html">Table of contents</a></h1>
+ </div>
+ </figure>
+
+ <div>
+ <h2><a href="one.html">Article One</a></h2>
+ <p class="keeptogether thumb"><img src="openroad-thumb.jpg"/></p>
+ <p>John Doe</p>
+ <p>Lorem ipsum dolor sit amet, consequeter adipiscing elit.</p>
+ </div>
+
+ <div>
+ <h2><a href="two.html">Article Two</a></h2>
+ <p class="keeptogether thumb"><img src="river-thumb.jpg"/></p>
+ <p>Jane Doe</p>
+ <p>Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.</p>
+ </div>
+ </article>
+ </body>
+</html>
View
@@ -0,0 +1,74 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Article One</title>
+
+ <link rel="resources" href="resources.html" />
+ <link rel="stylesheet" href="style.css" />
+ <link rel="index" href="toc.json" type="application/json"/>
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1" />
+
+ <script src="../../lib/mustache/mustache.js"></script>
+ <script src="../../lib/closure/goog/base.js"></script>
+ <script src="../../test/deps.js"></script>
+ <script>
+ window.treesaverFonts = { google: { families: [ 'Tangerine', 'Jim+Nightshade', 'Scada' ] } };
+ </script>
+ <script>
+ goog.require('treesaver');
+ </script>
+ </head>
+
+ <body>
+ <article>
+ <figure>
+ <h1 data-sizes="title fallback">Article One</h1>
+ </figure>
+
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. <a href="http://www.example.org">Quisque sit amet</a> est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
+
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
+
+ <h2>Subheading</h2>
+
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. <a href="http://www.example.org/">Vestibulum erat wisi</a>, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
+
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
+
+ <ul>
+ <li>Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.</li>
+ <li>Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.</li>
+ <li>Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.</li>
+ <li>Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.</li>
+ </ul>
+
+ <h2>Another Subheading</h2>
+
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
+
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
+
+ <figure class="zoomable">
+ <div hidden class="hidden" data-sizes="one" data-minHeight="180" data-minWidth="300">
+ <a href="http://www.example.org/" target="lightbox"><img src="openroad-small.jpg" height="180" width="300"/></a>
+ <p class="caption">Antelope Island, Utah</p>
+ </div>
+ <div class="hidden" data-sizes="two" data-minHeight="372" data-minWidth="620">
+ <a href="http://www.example.org/" target="lightbox"><img src="openroad-medium.jpg" height="372" width="620"/></a>
+ <p class="caption">Antelope Island, Utah</p>
+ </div>
+ <div class="hidden" data-sizes="three" data-minHeight="564" data-minWidth="940">
+ <a href="http://www.example.org/" target="lightbox"><img src="openroad-large.jpg" width="940" height="564"/></a>
+ <p class="caption">Antelope Island, Utah</p>
+ </div>
+ <div class="image-preview keeptogether">
+ <a href="openroad-large.jpg" target="lightbox">
+ <img src="openroad-thumb.jpg" width="40" height="40"/>
+ </a>
+ <p class="caption">Antelope Island, Utah</p>
+ </div>
+ </figure>
+
+ </article>
+ </body>
+</html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,93 @@
+<!doctype html>
+<html>
+ <body>
+ <div class="chrome">
+ <div class="viewer">
+ <div class="next overlay">
+ </div>
+ <div class="prev overlay">
+ </div>
+ </div>
+
+ <div class="controls">
+ <span data-ts-template="position">Page {{pagenumber}} of {{pagecount}}</span>
+ <button class="prev">Previous</button>
+ <button class="next">Next</button>
+
+ <div class="menu">
+ <button>Menu</button>
+ <ul>
+ <li><a href="http://www.treesaver.net/">About treesaver</a></li>
+ <li data-ts-template="position"><a href="http://twitter.com/?status={{$url$}}" target="external">Tweet this!</a></li>
+ <li><a href="index.html">Table of contents</a></li>
+ <li><a href="#" class="nextArticle">Next article</a></li>
+ <li><a href="#" class="prevArticle">Previous article</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div class="sidebar">
+ <div class="toc" data-ts-template="index">
+ {{#contents}}
+ {{^hidden}}
+ <div class="article">
+ <img class="thumb" data-src="{{thumb}}"/>
+ <h3><a data-href="{{url}}">{{title}}</a></h3>
+ <p class="byline">{{byline}}</p>
+ </div>
+ {{/hidden}}
+ {{/contents}}
+ </div>
+ <div class="sidebar-controls">
+ <button class="open-sidebar">Open</button>
+ <button class="toggle-sidebar">Toggle</button>
+ <button class="close-sidebar">Close</button>
+ </div>
+ </div>
+ </div>
+
+ <div class="grid">
+ <div class="container title" data-sizes="title"></div>
+ <div class="container cols-1 bottom" data-sizes="one"></div>
+ <div class="column"></div>
+ </div>
+
+ <div class="grid cols-2">
+ <div data-ts-template="document">
+ {{#title}}
+ {{title}}
+ {{/title}}
+ </div>
+ <div class="container title cols-2" data-sizes="title"></div>
+ <div class="container cols-3 bottom" data-sizes="two"></div>
+ <div class="column"></div>
+ <div class="column col-2"></div>
+ </div>
+
+ <div class="grid cols-3">
+ <div data-ts-template="document">
+ {{#title}}
+ {{title}}
+ {{/title}}
+ </div>
+ <div class="container title cols-3" data-sizes="title"></div>
+ <div class="container cols-3 bottom" data-sizes="three"></div>
+ <div class="column"></div>
+ <div class="column col-2"></div>
+ <div class="container pullquote bottom col-3" data-sizes="pullquote"></div>
+ <div class="column col-3"></div>
+ </div>
+
+ <div class="loading">
+ Loading
+ </div>
+
+ <div class="error">
+ Error
+ </div>
+
+ <div class="lightbox">
+ <div class="container"></div>
+ </div>
+ </body>
+</html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit 7458521

Please sign in to comment.