Permalink
Browse files

Init project

  • Loading branch information...
neilime committed Nov 12, 2012
0 parents commit 6dc69c97a8e1ec06870dc903169a47c4007972e6
Showing with 1,631 additions and 0 deletions.
  1. +22 −0 .gitattributes
  2. +163 −0 .gitignore
  3. +54 −0 README.md
  4. +20 −0 examples/exemple.html
  5. +1 −0 mooqrcode.min.js
  6. +134 −0 src/class.qrcode.js
  7. +1,237 −0 src/qrcode.js
@@ -0,0 +1,22 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Custom for Visual Studio
+*.cs diff=csharp
+*.sln merge=union
+*.csproj merge=union
+*.vbproj merge=union
+*.fsproj merge=union
+*.dbproj merge=union
+
+# Standard to msysgit
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
@@ -0,0 +1,163 @@
+#################
+## Eclipse
+#################
+
+*.pydevproject
+.project
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+
+#################
+## Visual Studio
+#################
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+[Dd]ebug/
+[Rr]elease/
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.vspscc
+.builds
+*.dotCover
+
+## TODO: If you have NuGet Package Restore enabled, uncomment this
+#packages/
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+
+# Visual Studio profiler
+*.psess
+*.vsp
+
+# ReSharper is a .NET coding add-in
+_ReSharper*
+
+# Installshield output folder
+[Ee]xpress
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish
+
+# Others
+[Bb]in
+[Oo]bj
+sql
+TestResults
+*.Cache
+ClientBin
+stylecop.*
+~$*
+*.dbmdl
+Generated_Code #added for RIA/Silverlight projects
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+
+
+
+############
+## Windows
+############
+
+# Windows image file caches
+Thumbs.db
+
+# Folder config file
+Desktop.ini
+
+
+#############
+## Python
+#############
+
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg
+
+# Mac crap
+.DS_Store
@@ -0,0 +1,54 @@
+# MooQrCode
+
+MooQrCode is a mootools plugin that allow you to create qrcode.
+It is based on QR Code Generator for JavaScript by http://www.d-project.com/
+
+Now look at an <a href='https://github.com/jeromeetienne/jquery-qrcode/blob/master/examples/exemple.html'>example</a>
+
+How to use (Fast & Easy)
+----------
+
+//First, include required js files (Mootools & MooQrCode)
+
+ <script type="text/javascript" src="mootools.core.js"></script>
+ <script type="text/javascript" src="mooqrcode.min.js"></script>
+
+//Then create a container for the QRCode
+
+ <div id="QR_black"></div>
+
+//Let the script do the job
+
+document.id(window).addEvent('domready',function(){
+ document.id('QR_black').qrCode({'width':50,'height':50,'value':'This is an encrypted value'});
+});
+
+//That's all !
+
+Class: MooQrCode
+-----------------
+
+### Syntax
+
+ #JS
+ var oQrCode = new MooQRCode([options]);
+
+### Arguments
+
+1. options: (*object*, optional) The options object
+
+### Options:
+
+- value : (*string*, defaults to `null`) The value to be encrypted into QRCode.
+- typeNumber: (*int*, defaults to `-1`) 1 to 10, if typeNumber < 1, it will be calculate automatically, else higher the type number, more data can be stored.
+- correctLevel: (*string*, defaults to `H`) error Correct Level L, M, Q, H.
+- width: (*int*, defaults to `256`) QR Code width.
+- height: (*int*, defaults to `256`) QR Code height.
+- render: (*string*, defaults to `canvas`) rendering mode, canvas or table.
+- color: (*string*, defaults to `#000000`) QR Code color.
+- backgroundColor: (*string*, defaults to `#FFFFFF`) QR Code background color.
+- container: (*HTMLElement*, *string*, defaults to `null`) Qr Code container element.
+
+### Events:
+
+- onQrCodeReady: Will fire when the QR Code is ready (after rendrering)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <script type="text/javascript" src="mootools.core.js"></script>
+ <script type="text/javascript" src="mooqrcode.min.js"></script>
+ <script type="text/javascript">
+ document.id(window).addEvent('domready',function(){
+ document.id('QR_black').qrCode({'width':50,'height':50,'value':'This is an encrypted value'});
+ document.id('QR_red').qrCode({'width':50,'height':50,'value':'This is an encrypted value','color':'red','backgroundColor':'black'});
+ });
+ </script>
+ <title></title>
+ </head>
+ <body>
+ <h3>Simple QR COde</h3>
+ <div id="QR_black"></div>
+ <h3>QR Code with custom colors</h3>
+ <div id="QR_red"></div>
+ </body>
+</html>

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 6dc69c9

Please sign in to comment.