Skip to content

Instantly share code, notes, and snippets.

View kuu's full-sized avatar

Kuu Miyazaki kuu

  • Tokyo - Japan
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charcode="utf-8">
<title>How HTML Canvas treats the ideographic space (U+3000) in its measureText and fillText methods.</title>
<script>
document.addEventListener('DOMContentLoaded', function () {
var canvas = document.getElementsByTagName('canvas')[0];
var span = document.getElementsByTagName('span')[0];
var context = canvas.getContext('2d');
@kuu
kuu / test04
Last active August 29, 2015 13:56
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<button id="loadBtn">Load</button>
<button id="playBtn">Play</button>
<script>
@kuu
kuu / test05
Last active August 29, 2015 13:56
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<button id="loadBtn">Load</button>
<button id="playBtn">Play</button>
<script>
@kuu
kuu / test03
Last active August 29, 2015 13:56
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<button id="loadBtn">Load</button>
<button id="playBtn">Play</button>
<script>
@kuu
kuu / test01
Created February 18, 2014 09:42
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<button id="loadBtn">Load</button>
<button id="playBtn">Play</button>
<button id="Up">Up</button>
@kuu
kuu / test02
Created February 18, 2014 09:44
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<button id="loadBtn">Load</button>
<button id="playBtn">Play</button>
<script>
@kuu
kuu / test06
Created February 19, 2014 01:14
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<button id="loadBtn">Load in 2sec</button>
<button id="playBtn">Play in 2sec</button>
<script>
@kuu
kuu / test00
Created February 19, 2014 01:26
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<script>
document.addEventListener("DOMContentLoaded", function() {
var tBGM = new Audio();
@kuu
kuu / wa1
Created February 19, 2014 03:33
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<button id="loadBtn">Load</button>
<button id="playBtn">Play</button>
<button id="Up">Up</button>
@kuu
kuu / wa2
Created February 19, 2014 04:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes" />
</head>
<body>
<button id="loadBGMBtn">Load BGM</button>
<button id="loadSEBtn">Load SE</button>
<button id="playBGMBtn">Play BGM</button>