<?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/ethertank/rss">
    <link>https://let.hatelabo.jp/ethertank/rss</link>
    <description></description>
    <title>Bookmarklets from ethertank</title>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://let.hatelabo.jp/ethertank/let/gYC-xcbE_r35XA"/>
        <rdf:li rdf:resource="https://let.hatelabo.jp/ethertank/let/gYC-x_L32seLTw"/>
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://let.hatelabo.jp/ethertank/let/gYC-xcbE_r35XA">
    <link>https://let.hatelabo.jp/ethertank/let/gYC-xcbE_r35XA</link>
    <dc:date>2012-03-21T08:34:37Z</dc:date>
    <description>2点をクリックしてちゃんと計算する。角度とか。（右方向水平が0度）</description>
    <dc:creator>ethertank</dc:creator>
    <title>[Let] 角度計測</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fethertank%2Flet%2FgYC-xcbE_r35XA.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;角度計測&lt;/a&gt;&lt;pre&gt;/*
 * @title 角度計測
 * @description 2点をクリックしてちゃんと計算する。角度とか。（右方向水平が0度）
 * @include http://*
 * @license MIT License
 * @require jQuery
 */

var x1,y1,x2,y2,dx,dy,$body=$('body');

$body.append(
  $('&amp;lt;div&amp;gt;').css({
    'position': 'absolute',
    'z-index': '999999',
    'top':'0',
    'left':'0',
    'width': '100%',
    'height': $body.height(),
  }).toggle(
    function(e){ x1 = e.pageX; y1 = e.pageY; },
    function(e){ x2 = e.pageX; y2 = e.pageY; prompt('角度', calculate()); $(this).remove(); }
  )
);


function calculate() {
  return Math.atan2(y2-y1, x2-x1)*180/Math.PI;
}&lt;/pre&gt;</content:encoded>
  </item>
  <item rdf:about="https://let.hatelabo.jp/ethertank/let/gYC-x_L32seLTw">
    <link>https://let.hatelabo.jp/ethertank/let/gYC-x_L32seLTw</link>
    <dc:date>2011-04-27T15:50:13Z</dc:date>
    <description>my first Hatenalet</description>
    <dc:creator>ethertank</dc:creator>
    <title>[Let] test</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fethertank%2Flet%2FgYC-x_L32seLTw.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;test&lt;/a&gt;&lt;pre&gt;/*
 * @title test
 * @description my first Hatenalet
 * @include http://*
 * @license Public Domain
 * @require jQuery
 */

$(&amp;quot;*&amp;quot;).css({&amp;quot;color&amp;quot;:&amp;quot;#000&amp;quot;,&amp;quot;background&amp;quot;:&amp;quot;#fff&amp;quot;,&amp;quot;text-shadow&amp;quot;:&amp;quot;none&amp;quot;,&amp;quot;font&amp;quot;:&amp;quot;300 24px/1.75 KozGoPro-Regular,'小塚ゴシック Pro R',Meiryo,メイリオ,sans-serif&amp;quot;});$(&amp;quot;a&amp;quot;).css({&amp;quot;border-bottom&amp;quot;:&amp;quot;2px solid #06f&amp;quot;,&amp;quot;text-decoration&amp;quot;:&amp;quot;none&amp;quot;});&lt;/pre&gt;</content:encoded>
  </item>
</rdf:RDF>
