Return to QR Code Generator Base
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.06.20-20-07'
}).use('gallery-qr-code-generator-base', function(Y) {
var generator = new Y.QrCode.GeneratorBase({
data: new Y.QrCode.NumericData({
value: '01234567'
}),
errorCorrection: 'Q',
version: '2'
});
generator.generate(function (error, matrix, size) {
if (error) {
// If defined, error is a string containing an error message.
alert(error);
return;
}
var pixelValue,
x,
y;
for (y = 0; y < size; y += 1) {
for (x = 0; x < size; x += 1) {
pixelValue = matrix[x + y * size];
// pixelValue will be true or false.
// true represents a dark pixel; false represents a light pixel.
// TODO: Do something to render pixelValue somewhere.
}
}
});
});/home/y/libexec/ant/bin/ant all
Buildfile: build.xml
[echo] Starting Build For gallery-qr-code-generator-base
clean:
init:
[mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-qr-code-generator-base/build_tmp
[echo] Starting Build For gallery-qr-code-generator-base
-lint-server:
[echo] Starting Build For gallery-qr-code-generator-base
-node:
[echo] For faster builds, install Node.js.
-concatdebug:
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-qr-code-generator-base/build_tmp/ant
[delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-qr-code-generator-base/build_tmp/ant
-registerdebug:
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-qr-code-generator-base/build_tmp
-prependdebug:
-appenddebug:
builddebug:
-createcore:
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-qr-code-generator-base/build_tmp
-loggerregex:
buildcore:
-rollupjs:
-concatskins:
-buildskins:
-rollupcss:
buildskins:
-buildlangs:
-rolluplangs:
buildlangs:
build:
minify:
[yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-qr-code-generator-base/build_tmp/gallery-qr-code-generator-base.js
[yuicompressor]
[yuicompressor] [WARNING] Invalid hint syntax: use strict
[yuicompressor] Y){(function(Y){ ---> "use strict" <--- ;var _string__empty="",_string_0="0",
[yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-qr-code-generator-base/build_tmp/gallery-qr-code-generator-base-min.js
lint:
[echo] Using Rhino. Install nodejs to improve jslint speed, or skip with -Dlint.skip=true
[java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-qr-code-generator-base/build_tmp/gallery-qr-code-generator-base.js
[java]
[java]
[java] 3365, 41: Confusing use of '!'.
[java] matrix[index] = !(i % 2);
[java]
[java] 3371, 41: Confusing use of '!'.
[java] matrix[index] = !(i % 2);
[java]
[java]
[java]
local:
deploybuild:
[copy] Copying 3 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-qr-code-generator-base
deployassets:
deployskins:
deploylang:
deploydocs:
deploy:
all:
BUILD SUCCESSFUL
Total time: 6 seconds
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info