Permalink
Browse files

using reval submodule instead of reveal.js

  • Loading branch information...
1 parent d2b53b7 commit 58bdb7138e3c64b516ed291a850305ea71af2720 @Evangenieur committed Dec 12, 2012
Showing with 26 additions and 16 deletions.
  1. +11 −0 examples/README.md
  2. +3 −3 examples/nano_api_with_format.coffee
  3. +12 −12 index.html
  4. +0 −1 reveal.js
View
@@ -0,0 +1,11 @@
+# Examples
+
+1. install node.js + npm
+2. `npm install`
+3. `coffee nano_api.coffee`
+4. open your web browser and go test those URLs:
+ http://localhost:3000/evangenieur/
+ http://localhost:3000/evangenieur/my_channel/
+ http://localhost:3000/evangenieur/my_channel/?message=new+message
+ http://localhost:3000/evangenieur/my_channel/?message=new+message2
+
@@ -24,12 +24,12 @@ require("zappajs") ->
chan = get_user(@params.user)?.get_channel(@params.channel)
if chan and @query.message?
chan.messages.push @query.message
- @send chan || 404
+ @render "index", data: chan
+ #@send chan || 404
@get "/:user": ->
@render "index", data: get_user(@params.user)
- return
- @send get_user(@params.user) || 404
+ #@send get_user(@params.user) || 404
@view "index": ->
inspect = (data) ->
View
@@ -12,19 +12,19 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
- <link rel="stylesheet" href="reveal.js/css/reveal.min.css">
- <link rel="stylesheet" href="reveal.js/css/theme/default.css" id="theme">
+ <link rel="stylesheet" href="reveal/css/reveal.min.css">
+ <link rel="stylesheet" href="reveal/css/theme/default.css" id="theme">
<!-- For syntax highlighting -->
- <link rel="stylesheet" href="reveal.js/lib/css/zenburn.css">
+ <link rel="stylesheet" href="reveal/lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
- document.write( '<link rel="stylesheet" href="reveal.js/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
+ document.write( '<link rel="stylesheet" href="reveal/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<!--[if lt IE 9]>
- <script src="reveal.js/lib/js/html5shiv.js"></script>
+ <script src="reveal/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
@@ -226,8 +226,8 @@
</div>
- <script src="reveal.js/lib/js/head.min.js"></script>
- <script src="reveal.js/js/reveal.min.js"></script>
+ <script src="reveal/lib/js/head.min.js"></script>
+ <script src="reveal/js/reveal.min.js"></script>
<script>
@@ -244,15 +244,15 @@
// Optional libraries used to extend on reveal.js
dependencies: [
- { src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
- { src: 'reveal.js/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
- { src: 'reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
+ { src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
+ { src: 'reveal/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
+ { src: 'reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'highlight.pack.js', async: true, callback: function() {
console.log(hljs);
hljs.initHighlightingOnLoad();
} },
- { src: 'reveal.js/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
- { src: 'reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
+ { 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: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
Submodule reveal.js deleted from 519ee2

0 comments on commit 58bdb71

Please sign in to comment.