Upload
taisuke-fukuno
View
1.318
Download
4
Embed Size (px)
Citation preview
Offline Applicationローカルにキャッシュするものを設定
test.manifest (mime-type = text/cache-manifest)CACHE MANIFESThello.jsFALLBACK # ヒットしないときに表示./ fallback.htmlNETWORK # キャッシュしないもの./api/
<html manifest=“test.manifest">使われる時に、test.manifestの更新をチェック
Geo LocationNavigator.geolocationNavigator.getCurrentPositionNavigator.watchPositionNavigator.clearWatch
位置ゲーできますGPSをリアルタイムに制御可能!
自由に描画できるCanvasvar canvas = document.getElementById('canvas').getContext('2d');
canvas.strokeStyle = "rgb(255, 0, 0)";
canvas.beginPath();
canvas.moveTo(10, 10);
canvas.lineTo(100, 100);
canvas.closePath();
canvas.stroke();
http://fukuno.jig.jp/canvas-test.html
canvas.fillStyle = "rgb(0, 0, 255)";
canvas.fillRect(50, 10, 50, 50);
canvas.strokeStyle = "rgb(0, 255, 0)";
canvas.beginPath();
canvas.arc(40, 80, 20, 0, 2 * Math.PI, true);
canvas.stroke();
Canvas 落書きサンプルfield.onmousedown = function() {
// マウスボタン押された
};
field.onmousemove = function() {
// マウス動いた
};
field.onmouseup = function() {
// マウスボタン離された
}
http://fukuno.jig.jp/canvas-draw.html