This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var avatar = document.querySelector('#avatar_me'), | |
pos, | |
keys = []; | |
var SPEED = 5; | |
document.addEventListener('keydown', keydown, false); | |
document.addEventListener('keyup', keyup, false); | |
function keydown(e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// firefox: | |
// test1a -> 18.83772399999998 | |
// test1b -> 12.661566999999877 | |
// test1c -> 0.32783100000006016 | |
// chrome: | |
// test1a -> 53.948999993735924 | |
// test1b -> 28.740999987348914 | |
// test1c -> 0.7929999846965075 | |
// 準備 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = document.createElement('a'); | |
function getInfo(url) { | |
a.href = url; | |
return { | |
host: a.host, | |
pathname: a.pathname | |
}; | |
} | |
$(document).on('pagebeforeload', function(e, data){ | |
// ホワイトリスト |