click to use'),null!=q.x&&t.push(q.x+", "+q.y),i.html(t.join("
")).css({left:"",top:"",right:0,bottom:0}).show()})}}();var If=null,Jf="see",Kf="0.2",Lf=Sd(Jf),Mf="position:relative;display:block;font-family:monospace;font-size:16px;word-break:break-all;margin-bottom:3px;padding-left:1em;",Nf=5,Of=!1,Pf="body",Qf="auto";try{Ie.self!==Ie.top&&screen.width>=800&&screen.height>=600&&parent&&parent.ide&&(Qf=parent.ide.getOptions().panel)}catch(Rf){}var Sf,Tf=Qf,Uf="",Vf=null,Wf="_loghistory",Xf=50,Yf="",Zf={"":{e:Ie.eval,t:Ie},top:{e:Ie.eval,t:Ie}},$f=Ie.CoffeeScript,_f="(function(){return eval(arguments[0]);})",ag="[_$a-zA-ZÂ -ï¿¿][_$a-zA-Z0-9Â -ï¿¿]*",bg=new RegExp("^\\s*var\\s+(?:"+ag+"\\s*,\\s*)*"+ag+"\\s*;\\s*"),cg="input._log:focus{outline:none;}samp._logcaret{position:absolute;left:0;font-size:120%;}samp._logcaret:before{content: '>'}label._log > span:first-of-type:hover{text-decoration:underline;}samp._log > label._log,samp_.log > span > label._log{display:inline-block;vertical-align:top;}label._log > span:first-of-type{margin-left:2em;text-indent:-1em;}label._log > ul{display:none;padding-left:14px;margin:0;}label._log > span:before{content:'';font-size:70%;font-style:normal;display:inline-block;width:0;text-align:center;}label._log > span:first-of-type:before{content:'\\0025B6';}label._log > ul > li{display:block;white-space:pre-line;margin-left:2em;text-indent:-1em}label._log > ul > li > samp{margin-left:-1em;text-indent:0;white-space:pre;}label._log > input[type=checkbox]:checked ~ span{margin-left:2em;text-indent:-1em;}label._log > input[type=checkbox]:checked ~ span:first-of-type:before{content:'\\0025BC';}label._log > input[type=checkbox]:checked ~ span:before{content:'';}label._log,label._log > input[type=checkbox]:checked ~ ul{display:block;}label._log > span:first-of-type,label._log > input[type=checkbox]:checked ~ span{display:inline-block;}label._log > input[type=checkbox],label._log > input[type=checkbox]:checked ~ span > span{display:none;}",dg=!1,eg={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\x0B":"\\v","'":"\\'",'"':'\\"',"\\":"\\\\"},fg=null,gg=[];Sf=function(){Vf&&"function"==typeof Vf.log&&Vf.log.apply(Ie.console,arguments);var a=Array.prototype.slice.call(arguments);for(gg.push('');a.length;){var b=a.shift();"String"==Xd(b)?gg.push(he(b)):gg.push(le(b,Nf,gg)),a.length&&gg.push(" ")}gg.push(""),oe()};var hg=!1,ig=!1,jg=null,kg=[{}.undefined],lg=null,mg=null}}).call(this,this.jQuery);
\ No newline at end of file
From 762c74b32db8e189b9d57a46cc4b269b0cb3a546 Mon Sep 17 00:00:00 2001
From: Markus Bordihn
Date: Fri, 15 Jan 2016 00:20:14 +0100
Subject: [PATCH 14/16] Increased version number to 2.0.9 and adjusted example.
---
BUILD.txt | 2 --
README.md | 6 +++---
bower.json | 2 +-
jquery-turtle.js | 4 ++--
package.json | 2 +-
turtle.jquery.json | 2 +-
6 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/BUILD.txt b/BUILD.txt
index 6208a91..c22f4af 100644
--- a/BUILD.txt
+++ b/BUILD.txt
@@ -29,5 +29,3 @@ Testing
Unit tests use a headless webkit. When setting it up on a system without
GUI, you may find that you need to install font support. On debian.
"apt-get libfontconfig1" provides enough font support.
-
-
diff --git a/README.md b/README.md
index 8af96ab..fe5db8e 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
jQuery-turtle
=============
-version 2.0.8
+version 2.0.9
jQuery-turtle is a jQuery plugin for turtle graphics.
@@ -254,7 +254,7 @@ the functions:
eval $.turtle() # Create the default turtle and global functions.
-defaultspeed Infinity
+speed Infinity
write "Catch blue before red gets you."
bk 100
r = hatch red
@@ -264,7 +264,7 @@ tick 10, ->
fd 6
r.turnto turtle
r.fd 4
- b.turnto bearing b
+ b.turnto direction b
b.fd 3
if b.touches(turtle)
write "You win!"
diff --git a/bower.json b/bower.json
index f2e71d7..4eca85a 100644
--- a/bower.json
+++ b/bower.json
@@ -2,7 +2,7 @@
"name": "jquery-turtle",
"main": "jquery-turtle.js",
"ignore": [],
- "version": "2.0.8",
+ "version": "2.0.9",
"description": "Turtle graphics plugin for jQuery.",
"devDependencies": {
"jquery": "latest",
diff --git a/jquery-turtle.js b/jquery-turtle.js
index b09f1ad..d2b6823 100644
--- a/jquery-turtle.js
+++ b/jquery-turtle.js
@@ -4,7 +4,7 @@
jQuery-turtle
=============
-version 2.0.8
+version 2.0.9
jQuery-turtle is a jQuery plugin for turtle graphics.
@@ -261,7 +261,7 @@ the functions:
eval $.turtle() # Create the default turtle and global functions.
-defaultspeed Infinity
+speed Infinity
write "Catch blue before red gets you."
bk 100
r = new Turtle red
diff --git a/package.json b/package.json
index 208270b..339f358 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "jquery-turtle",
- "version": "2.0.8",
+ "version": "2.0.9",
"description": "Turtle graphics plugin for jQuery.",
"main": "jquery-turtle.js",
"scripts": {
diff --git a/turtle.jquery.json b/turtle.jquery.json
index be5c732..cd8b8a3 100644
--- a/turtle.jquery.json
+++ b/turtle.jquery.json
@@ -14,7 +14,7 @@
"audio",
"collision"
],
- "version": "2.0.8",
+ "version": "2.0.9",
"author": {
"name": "David Bau",
"url": "http://davidbau.com/"
From 4d0e33b2eae8db92bb8d3e74fadfda6d0d5d938e Mon Sep 17 00:00:00 2001
From: David Bau
Date: Tue, 9 Feb 2016 16:54:06 -0500
Subject: [PATCH 15/16] Repair ability to use arbitrary elements as turtles.
---
jquery-turtle.js | 6 +++---
jquery-turtle.min.js | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/jquery-turtle.js b/jquery-turtle.js
index d2b6823..05e4676 100644
--- a/jquery-turtle.js
+++ b/jquery-turtle.js
@@ -9121,11 +9121,11 @@ function hatchone(name, container, defaultshape) {
// Create an image element with the requested name.
var result;
- if (img) {
+ if (isTag) {
+ result = $(name);
+ } else if (img) {
result = $('