topical media & game development

talk show tell print

mobile-query-three-tips-ala-jquery-02-add-an-id-index-dst.htm / htm



  <!doctype html><title>Minimal tQuery Page</title>
  <script src="../../../build/tquery-bundle-require.js"></script>
  <body><script>
  require([], function(){
          // create a 3d world, use the boilerplate and start it
          var world        = tQuery.createWorld().boilerplate().start();
          // add an object
          var object	= tQuery.createTorusKnot().addTo(world)
          // add a class
          object.id('foobar');
          // select with class ala css-selector
          tQuery('#foobar').scaleXBy(2)
  });
  </script></body>


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.