YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.03.23-17-54'
}).use('gallery-shoveler', function(Y) {
shoveler1 = new Y.Shoveler( {
contentBox: "#shoveler1",
numberOfVisibleCells: 3,
cyclical: true,
renderFunctionName: "renderCellsWithPop"
});
shoveler1.render();
shoveler2 = new Y.Shoveler( {
contentBox: "#shoveler2",
numberOfVisibleCells: 4,
cyclical: true,
numberOfCells: 20,
dynamic: true,
renderFunctionName: "renderCellsWithPop",
prefetch: true,
contructDataSrc: function(start, numberOfVisibleCells) {
var url = "http://query.yahooapis.com/v1/public/yql?"+
"q=select%20*%20from%20flickr.photos.search("+
start+"%2C"+numberOfVisibleCells+
")%20where%20user_id%20%3D%20%2217004938%40N00%22&format=json&callback=shoveler2.handleDataRetrieval";
return url;
},
handleData: function(data) {
var photos = data.query.results.photo, imageUrl, photo, i, len;
for(i = 0, len = photos.length; i < len; i++) {
photo = photos[i];
imageUrl = "http://farm"+photo.farm+
".static.flickr.com/"+photo.server+
"/"+photo.id+"_"+photo.secret+"_t.jpg";
this.replaceCell("<img src='"+imageUrl+"'/>"+photo.title, this.get("fetchStart")+i);
}
}
});
shoveler2.render();
shoveler3 = new Y.Shoveler( {
contentBox: "#shoveler3",
numberOfVisibleCells: 3,
cyclical: true
});
shoveler3.render();
Y.get("#shoveler3AddCell").on("click", function() {
shoveler3.addCell(shoveler3.get("numberOfCells"));
});
Y.get("#shoveler3RemoveCell").on("click", function() {
shoveler3.removeCell(shoveler3.get("numberOfCells")-1);
});
Y.get("#shoveler3AddCell5").on("click", function() {
shoveler3.addCell(shoveler3.get("numberOfCells"), 5);
});
shoveler4 = new Y.Shoveler( {
contentBox: "#shoveler4",
numberOfVisibleCells: 3
});
shoveler4.render();
shoveler5 = new Y.Shoveler( {
contentBox: "#shoveler5",
numberOfVisibleCells: 5,
infinite: true,
dynamic: true,
contructDataSrc: function(start, numberOfVisibleCells) {
var url = "http://query.yahooapis.com/v1/public/yql?"+
"q=select%20*%20from%20flickr.photos.search("+
start+"%2C"+numberOfVisibleCells+
")%20where%20tags%20%3D%20%22monkey%22&format=json&callback=shoveler5.handleDataRetrieval";
return url;
},
handleData: function(data) {
var photos = data.query.results.photo, imageUrl, photo, i, len;
for(i = 0, len = photos.length; i < len; i++) {
photo = photos[i];
imageUrl = "http://farm"+photo.farm+
".static.flickr.com/"+photo.server+
"/"+photo.id+"_"+photo.secret+"_t.jpg";
this.replaceCell("<img src='"+imageUrl+"'/>"+photo.title, this.get("fetchStart")+i);
}
}
});
shoveler5.render();
});/home/y/libexec/ant/bin/ant all
Buildfile: build.xml
[echo] Starting Build For gallery-shoveler
[echo] Ant Properties
[echo] Home : /home/y/libexec/ant
[echo] Ant Version : Apache Ant version 1.7.1 compiled on June 27 2008
[echo] Build File : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build.xml
[echo] Local Build Properties
[echo] version : 3
[echo] srcdir : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery
[echo] builddir : ../../../builder/componentbuild
[echo] component : gallery-shoveler
[echo] component.basefilename : gallery-shoveler
[echo] component.basedir : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler
[echo] component.builddir : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp
[echo] Global Build Properties
[echo] global.build.base : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build
[echo] global.build.component : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-shoveler
[echo] global.build.component.assets : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-shoveler/assets
clean:
init:
[mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp
-concatdebug:
[echo] Concatenating
[echo] Source Files : shoveler.js
[echo] In Source Dir : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/js
[echo] To : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp/gallery-shoveler-debug.js
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp/ant
[delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp/ant
-registerdebug:
[echo] Wrapping /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp/gallery-shoveler-debug.js in YUI.add module
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp
-prependdebug:
-appenddebug:
builddebug:
-createcore:
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp
-loggerregex:
[echo] Replacing Logger Statements in /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp/gallery-shoveler.js
buildcore:
-rollupjs:
-concatskins:
-buildskins:
-rollupcss:
buildskins:
-buildlangs:
-rolluplangs:
buildlangs:
build:
minify:
[echo] Running yuicompressor on /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp/gallery-shoveler.js
[java]
[java] [WARNING] Found an undeclared symbol: YUI
[java] ---> YUI <--- .add("gallery-shoveler",function(Y){
lint:
[java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp/gallery-shoveler-debug.js
[java] - OK
[java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp/gallery-shoveler-min.js
[java] - OK
[java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-shoveler/build_tmp/gallery-shoveler.js
[java] - OK
local:
deploybuild:
[copy] Copying 3 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-shoveler
deployassets:
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-shoveler/assets
deployskins:
deploylang:
deploydocs:
deploy:
all:
BUILD SUCCESSFUL
Total time: 4 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