<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel rdf:about="https://let.hatelabo.jp/coppieee/rss">
    <link>https://let.hatelabo.jp/coppieee/rss</link>
    <description></description>
    <title>Bookmarklets from coppieee</title>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://let.hatelabo.jp/coppieee/let/gYC-yIn4j6rTOQ"/>
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://let.hatelabo.jp/coppieee/let/gYC-yIn4j6rTOQ">
    <link>https://let.hatelabo.jp/coppieee/let/gYC-yIn4j6rTOQ</link>
    <dc:date>2011-06-02T08:47:37Z</dc:date>
    <description>http://unionplatform.com/samples/orbitermicro/UnionDraw/uniondraw.html で実行してみて。</description>
    <dc:creator>coppieee</dc:creator>
    <title>[Let] UnionDrawのペンの色を変えるブックマークレット</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fcoppieee%2Flet%2FgYC-yIn4j6rTOQ.bookmarklet.js%20%28arg%29%22.replace%28%2F%28%5CS%2B%29%5Cs%2B%28%5CS%2A%29%2F%2Cfunction%28s%2Curl%2Carg%29%7Bs%3Ddocument.createElement%28%22script%22%29%3Bs.charset%3D%22utf-8%22%3Bs.src%3Durl%2B%22%3Fs%3D%22%2BencodeURIComponent%28arg%29%3Bdocument.body.appendChild%28s%29%7D%29%3Bvoid%280%29%3B"&gt;UnionDrawのペンの色を変えるブックマークレット&lt;/a&gt;&lt;pre&gt;/*
 * @title UnionDrawのペンの色を変えるブックマークレット
 * @description http://unionplatform.com/samples/orbitermicro/UnionDraw/uniondraw.html で実行してみて。
 * @include http://unionplatform.com/samples/orbitermicro/UnionDraw/uniondraw.html
 * @license MIT License
 * @require 
 */
(function(){
	var _colorChange = function  (rgb) {
		// Determine which option was selected
		var newColor = rgb;
		// Locally, set the line color to the selected value
		localLineColor = newColor;
		// Share selected color with other users
		msgManager.sendUPC(UPC.SET_CLIENT_ATTR, 
							orbiter.getClientID(),
							&amp;quot;&amp;quot;,
							Attributes.COLOR,
							newColor,
							roomID,
							&amp;quot;4&amp;quot;);
		
		// Scroll the iPhone back to the top-left. 
		iPhoneToTop();
	};
	(function() {
		var xs = ['00','11','22','33','44','55','66','77','88','99','aa','bb','cc','dd','ee','ff'];
		var r = xs[Math.random() * xs.length | 0];
		var g = xs[Math.random() * xs.length | 0];
		var b = xs[Math.random() * xs.length | 0];
		var rgb = '#' + r + g + b;
		document.getElementById('color')[1].innerText = rgb;
		_colorChange(rgb);
		setTimeout(arguments.callee, 100) ;
	})();
})();&lt;/pre&gt;</content:encoded>
  </item>
</rdf:RDF>
