Posted 1 year ago

HTML5 For lt IE9

<!–[if lt IE 9]>
<script src=”http://html5shiv.googlecode.com/svn/trunk/html5.js”></script>
<![endif]–>

Posted 1 year ago

Geolocation APIのメモ

navigator.geolocation.getCurrentPosition(function(position){
  var lat = position.coords.latitude;
  var lng = position.coords.longitude;
  var acc = position.coords.accuracy;
  alert("緯度:" + lat + ", 経度:" + lng + ", 精度:" + acc);

Posted 1 year ago
複雑かつ美しい飾りや、楽しさを誘う工夫が、時としてデザインが本来持つべき実用性や機能性に悪影響をもたらし、使い手に混乱を与えてしまうことがある。

(Source: http)

Posted 1 year ago
デザインやモノの作り手には、常に製品を使い手と同じ視点で見つめる眼が求められている。
Posted 1 year ago
ひとつの製品がすべての人に使いやすいということは、理想的だが実現は難しい。
Posted 1 year ago

gContextMenu

  • target    コンテキストクリックされた要素。キーボードでコンテキストメニューを開いた場合は、フォーカスのある要素。
  • onTextInput    ターゲットがプレーンまたはパスワードタイプの input、textarea、または編集可能な領域ならば true。テキストの編集に関するコマンドを有効または無効にするのに使用できる。
  • onImage    ターゲットが画像なら true。
  • hasBGImage    祖先要素が背景画像を持っていれば true。
  • onMathML    ターゲットが MathML 要素なら true。
  • onLink    ターゲットがリンクなら true。
  • onMailtoLink    ターゲットが E メールアドレスのリンク (mailto:) なら true。
  • linkURL    コンテキストクリックされたリンクの URL。
  • inFrame    フレーム内でコンテキストクリックされたなら true。
  • isTextSelected    テキストが選択されていれば true。
  • isContentSelected    テキストを含む何らかのものが選択されていれば true。

(Source: developer.mozilla.org)

Posted 1 year ago

メール書き出し(英語)

  • I would like to convey my heartfelt greetings to you and your family.(あなたとあなたのご家族に、ご挨拶申し上げます。)
  • How are you and your family doing?(あなたとご家族は元気にしていらっしゃいますか?)
  • Thanks to your assistance, I could 〜.(あなたのお力添えのおかげで、〜できました。)
  • I have a big favor.(お願いがあるんだけど。)
  • I must apologize for my long silence.(ご無沙汰しております。)
  • Congratulations on your wedding.(ご結婚おめでとうございます。)
  • Just wanted to say hi.(どうしてますか?)
  • Hope you are doing good (well,fine).(元気にしていることと思います。)
  • I am writing to you for the first time.(初めまして。)
  • Glad to hear from you.(メールもらえてうれしいです。)
  • Thanks for your quick response!(早速返事くれてどうもありがとう!)
  • How are you doing these days?(最近どうしてますか?)

Posted 1 year ago
var element = document.getElementById(“elemId”);
var style= document.defaultView.getComputedStyle(element , ”).getPropertyValue(“CSSプロパティ”);
CSSのプロパティ値を取得する方法

(Source: developer.mozilla.org)

Posted 1 year ago

ARIA Live Regions Screen Reader Demo

Posted 1 year ago
a11y=accessibility(a で始まり y で終わる間に11文字あるから)

(Source: d.hatena.ne.jp)