From e79201608aea44dda68fb1219ba93dfa21f2d190 Mon Sep 17 00:00:00 2001
From: Jerome Etienne
Date: Thu, 7 Apr 2011 09:22:32 +0200
Subject: [PATCH] more work
---
MIT-LICENSE.txt | 20 ++++++
Makefile | 6 +-
README.md | 33 +++++++--
examples/demo.html | 23 +++++++
examples/index.html | 5 +-
index.html | 156 +++++++++++++++++++++++++++++++++++++++++++
jquery.qrcode.min.js | 22 ++++++
7 files changed, 258 insertions(+), 7 deletions(-)
create mode 100644 MIT-LICENSE.txt
create mode 100644 examples/demo.html
create mode 100644 index.html
create mode 100644 jquery.qrcode.min.js
diff --git a/MIT-LICENSE.txt b/MIT-LICENSE.txt
new file mode 100644
index 0000000..6d32551
--- /dev/null
+++ b/MIT-LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Jerome Etienne, http://jetienne.com
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/Makefile b/Makefile
index bf5ea35..8d22f9d 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,11 @@ all:
build: minify homepage_build
minify:
- closurec --js src/jquery.qrcode.js --js_output_file jquery.qrcode.min.js
+ echo -n > /tmp/jquery.qrcode.tmp.js
+ head -2 src/jquery.qrcode.js >> /tmp/jquery.qrcode.tmp.js
+ cat src/qrcode.js >> /tmp/jquery.qrcode.tmp.js
+ tail -n +3 src/jquery.qrcode.js >> /tmp/jquery.qrcode.tmp.js
+ closurec --js /tmp/jquery.qrcode.tmp.js --js_output_file jquery.qrcode.min.js
homepage_build:
pandoc -A ~/.pandoc.header.html -s README.md -o index.html
diff --git a/README.md b/README.md
index 45f87c0..c5f97d4 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,31 @@
# jQuery.qrcode.js
-with jQuery.qrcode.js you can easily add qrcode to your webpages.
-
- jQuery("#container").qrcode("this plugin is great")
-
+With jQuery.qrcode.js you can easily add qrcode to your webpages.
It is standalone, no external services which go on and off, or add latency
-while loading.
\ No newline at end of file
+while loading.
+
+Show, dont tell, here is a demo
+
+## How to Use It
+
+First include it in your webpage with the usual script tag
+
+
+
+Then create a DOM element which gonna contains the generated qrcode image. Lets say
+a div
+
+
+
+Then you add the *qrcode* in this container by
+
+ jQuery('#qrcode').qrcode("this plugin is great");
+
+This is it.
+
+## Conclusion
+
+MicroEvent.js is available on github here
+under MIT license.
+If you hit bugs, fill issues on github.
+Feel free to fork, modify and have fun with it :)
\ No newline at end of file
diff --git a/examples/demo.html b/examples/demo.html
new file mode 100644
index 0000000..92945ad
--- /dev/null
+++ b/examples/demo.html
@@ -0,0 +1,23 @@
+
+
+Demo page
+
+
+
+
+ TODO make a nice looking pure client qrcode generator
+ even allow download of the image
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/index.html b/examples/index.html
index 3a488ca..8fb9b5e 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -9,8 +9,11 @@
even allow download of the image
-
+
+
+
+
+