Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[doc] Add simple example

  • Loading branch information...
commit 0d564afb49e060ee95273e6f80c4d1a9c2335fd1 1 parent 885dae1
@mmalecki authored
Showing with 46 additions and 0 deletions.
  1. +12 −0 examples/simple/css/presents.css
  2. +34 −0 examples/simple/index.html
View
12 examples/simple/css/presents.css
@@ -0,0 +1,12 @@
+html, body {
+ height: 100%;
+}
+
+#slides {
+ height: 100%;
+}
+
+#slides > div {
+ height: 100%;
+}
+
View
34 examples/simple/index.html
@@ -0,0 +1,34 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Presents</title>
+ <link rel="stylesheet" href="/css/presents.css" />
+ </head>
+ <body>
+ <div id="presents-status" style="position:fixed; top:0px; bottom:0px"></div>
+ <div id="slides">
+ <div id="slide-0">
+ <h1>Hello world</h1>
+ </div>
+ <div id="slide-1">
+ <h1>Hello presents</h1>
+ </div>
+ <div id="slide-2">
+ <h1>Hello flatiron</h1>
+ </div>
+ </div>
+
+ <script src="/../../js/broadway-0.1.5.js"></script>
+ <script src="/../../js/inherits.js"></script>
+ <script src="/../../js/presents.js"></script>
+ <script src="/../../js/presents/plugins/controls.js"></script>
+ <script type="text/javascript">
+ var presents = new Presents();
+
+ presents.use(Controls);
+ presents.init();
+ presents.goTo(0);
+ </script>
+ </body>
+</html>
+
Please sign in to comment.
Something went wrong with that request. Please try again.