fork download
  1. move(селектор).set("left", 200).duration("1s").end();//1
  2. Circle.prototype.move = function (x, y, duration) {//2
  3. move("#" + this.id).delay("0s").end();
  4. move('#' + this.id).set('left', x).set('top', y).duration(duration + "s").end();
  5. };
  6. circle.move(800, 800, 2);//3
  7. circle.move(0, 800, 2);
  8. alert();//4
  9. circle.move(800, 800, 2);
  10. alert();
  11. circle.move(0, 800, 2);
Runtime error #stdin #stdout #stderr 0.41s 321920KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
js: uncaught JavaScript runtime exception: ReferenceError: "селектор" is not defined.