Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

comic sans example in the readme

  • Loading branch information...
commit 1561fbb6fcb606d88629871afd912c09646cf7c5 1 parent 08c3ca7
@substack authored
Showing with 34 additions and 0 deletions.
  1. +34 −0 readme.markdown
View
34 readme.markdown
@@ -12,6 +12,40 @@ command:
![exterminate](http://substack.net/images/screenshots/exterminate.png)
+You can render any html you want on the terminal! Here's some javascript and
+html that parses the query string and renders it... in comic sans!
+
+``` js
+var qs = require('querystring');
+
+var params = qs.parse(window.location.search.replace(/^\?/, ''));
+var text = document.createTextNode(JSON.stringify(params));
+document.body.appendChild(text);
+```
+
+``` html
+<html>
+<head>
+<style>
+ body {
+ font-family: "Comic Sans MS";
+ color: rgb(100,255,255);
+ font-size: 1.5em;
+ }
+</style>
+</head>
+<body>
+<script src="bundle.js"></script>
+</body>
+</html>
+```
+
+```
+$ browserify main.js > bundle.js
+```
+
+![comic sans in the terminal](http://substack.net/images/screenshots/exterminate_comic_sans.png)
+
# usage
```
Please sign in to comment.
Something went wrong with that request. Please try again.