• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • API Docs
    • Environments
    • Tutorials
  • Community
    • Gallery
    • Blog
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • Shifter »
    • Yogi »
    • YUI 2
    • YUI Doc »
    • YUI Test
    • YUI Website
    • YUI Compressor »
    • YUI Builder »
    • YUI PHP Loader
    • Grid Builder »
    • Skin Builder »
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • Yogi Documentation
  • Shifter Documentation
  • Developer Guide
  • Module Setup

Tag Cloud

Context Navigation

    Build Tag: gallery-2012.10.03-20-02

    Return to NetMusician Resizer

    YUI({
    	//Last Gallery Build of this module
    	gallery:'gallery-2012.05.02-20-10'
    }).use('gallery-nmresizer', 'event-delegate', 'node', function(Y) {
    	Y.delegate('click', function(e) {
    		e.preventDefault();
    		var nextthing = this.get('id').replace(/^showthing/,'');
    		var thisthing;
    		Y.all('#thingwrapper .thing').some(function(node) {
    			if (!node.hasClass('displaynone') && node.getStyle('display') !== "none") {
    				thisthing = node.get('id').replace(/^thing/,'');
    				return;
    			}
    		});
    		var nmresizer = new Y.Nmresizer();
    		nmresizer.loadAndResize({
    			olddiv:'#thing' + thisthing,
    			newdiv:'#thing' + nextthing,
    			animDuration:0.5,
    			resizediv:'#thingwrapper',
    			maxWidth:Y.one('body').get('winWidth') - 40,
    			maxHeight:Y.one('body').get('winHeight') - 40,
    			offsetHeight:0,
    			offsetWidth:0,
    			onStart:Y.bind(beforeResize),
    			onEnd:Y.bind(afterResize)
    		});
    	}, '#navwrapper', 'a');
     
    	function beforeResize(config) {
    		Y.one('#navwrapper #progress').setContent('Loading...');
    		Y.one('#thingwrapper').setStyles({
    			opacity:'0.5',
    			backgroundColor:'gray'
    		});
    	}
     
    	function afterResize(config) {
    		Y.one('#thingwrapper').setStyle('opacity', '');
    		switch (config.newdiv) {
    			case '#thing1':
    			Y.one(document.body).setStyle('background-color', 'black');
    			break;
     
    			case '#thing2':
    			Y.one(document.body).setStyle('background-color', 'orange');
    			break;
     
    			case '#thing3':
    			Y.one(document.body).setStyle('background-color', 'yellow');
    			break;
    		}
     
    		Y.one('#navwrapper #progress').setContent('');
    	}
    });

    Build Output

    /home/y/libexec/ant/bin/ant all
    Buildfile: build.xml
         [echo] Starting Build For gallery-nmresizer
    
    clean:
    
    init:
        [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmresizer/build_tmp
         [echo] Starting Build For gallery-nmresizer
    
    -lint-server:
         [echo] Starting Build For gallery-nmresizer
    
    -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-nmresizer/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmresizer/build_tmp/ant
    
    -registerdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmresizer/build_tmp
    
    -prependdebug:
    
    -appenddebug:
    
    builddebug:
    
    -createcore:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmresizer/build_tmp
    
    -loggerregex:
    
    buildcore:
    
    -rollupjs:
    
    -concatskins:
    
    -buildskins:
    
    -rollupcss:
    
    buildskins:
    
    -buildlangs:
    
    -rolluplangs:
    
    buildlangs:
    
    build:
    
    build-coverage:
         [echo] Creating coverage file for: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmresizer/build_tmp/gallery-nmresizer.js
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmresizer/build_tmp
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmresizer/build_tmp
    
    minify:
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmresizer/build_tmp/gallery-nmresizer.js
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] newdiv+" img").size(); ---> var  <--- imagesloaded=0;var images=[];
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] size();var imagesloaded=0; ---> var  <--- images=[];var nmresizer=this;
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =0;var images=[]; ---> var  <--- nmresizer=this;Y.all(config.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] get("restrainWidth")+"px":"auto"; ---> var  <--- offviewportheight=this.get("restrainHeight")?this
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] onEnd(config);}}else{ ---> var  <--- transoptions={easing:"ease-out",duration:this
    [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmresizer/build_tmp/gallery-nmresizer-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-nmresizer/build_tmp/gallery-nmresizer.js
         [java]  
         [java] 
         [java] 	124, 34: Missing radix parameter.
         [java] 	config.newtabwidth = parseInt(Y.one(config.newdiv).get('offsetWidth')) + parseInt(this.get('offsetWidth')) + 'px';
         [java] 
         [java] 	124, 86: Missing radix parameter.
         [java] 	config.newtabwidth = parseInt(Y.one(config.newdiv).get('offsetWidth')) + parseInt(this.get('offsetWidth')) + 'px';
         [java] 
         [java] 	132, 35: Missing radix parameter.
         [java] 	config.newtabheight = parseInt(Y.one(config.newdiv).get('offsetHeight')) + parseInt(this.get('offsetHeight')) + 'px';
         [java] 
         [java] 	132, 88: Missing radix parameter.
         [java] 	config.newtabheight = parseInt(Y.one(config.newdiv).get('offsetHeight')) + parseInt(this.get('offsetHeight')) + 'px';
         [java] 
         [java]  
         [java] 
    
    local:
    
    deploybuild:
         [copy] Copying 4 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-nmresizer
    
    deployassets:
    
    deployskins:
    
    deploylang:
    
    deploydocs:
    
    deploy:
    
    all:
    
    BUILD SUCCESSFUL
    Total time: 3 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