代码拉取完成,页面将自动刷新
同步操作将从 亚里士不可得/ArduinoOpenSource 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='user-scalable=no,initial-scale=2.0' />
<style>
body {
background: #000;
color: #fff;
text-align: center
}
div {
margin: 10px
}
</style>
</head>
<body>
<div>
<h3>Pick An Emoji</h3> <img id='emojis' onclick='clickEmoji(event);'
src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAAB6CAIAAAATYnfgAAASWElEQVR42u1dTWxbVRY+z0qzQKjRbGi7KKjSuCHNhFUUUTRpWHRTERcldlNmSARULcyoEgiUSehfLOenqFE1CKSOgGagyEGExk4EDmLTBYklwkTVLFqFTsiiA1nEZecKsWgl3izO8/HN/Tn32k6ZzvCOnqzn5+P7991zzr3n3nMfQEghhRTSfU8L+UW/WKBrIb9Ye5o+xHyIufCIl56tWPCLhaas35T1N6vKfrHAF0x7b6E3umC9x6VlhqJx+hoRYWh/bJfI2v7YLhUMbYGMbVd6zlcjGa13qd6eK9u8v/3Z2oL+4JQ/OOXUA4qF/LWbDIMHOeocHuRc8Xh+i7VH4n1q9Y4GifbHdnkN2zeUo2G7hI22Wa0wbAIYb3QBwI1vu+lzz5VtWjD8wSkAgHMf8f3GpUGRx4McXvgEb6xFhUt3VVCT0XpMk3IXa+2JHcRr2C5WD79K8KgF0pbPVFVTTSR+mQ2rBwAATbtn6P5G3FMTEauHnU5KDQvsQyyfPwkA87nljlgzAOxr31tFTWVa74FLd+HErPbHoWgci5SM1g+vZsWfIozSNGkAqTTawiWj9Xhpv5pgMDFg6zftnhFh0BYMU0hdvbD//X5MUFs8ypGBwZXWe8pWgYVBJAkGWSZQDpgnYr8g4eU7C/VTNW8TDKnVO1JqaKJvfNvdtHsGtRMCI8mEVhaZXixWwcSglSdZXp/fApfuBuZhx2Ve4wV9RaljRDs+wYs3YqLOt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a6ovq/nfZIrw/Uu+kRFeS6aswohA9u9qBBwDAyScDk1OC4dc5do2IPlt1j6LxFaHU+joY0L/2/VcX/GIBfTJ+sfD9VxfEPaYaMMwwaL1D6sP/A7aQQgoppPuN/gPGU98FNpiT5gAAAABJRU5ErkJggg=='>
</div>
<div>
<p id='out'></p> <canvas id='emoji' width='8' height='8'></canvas>
</div>
<script>
function nw() { return new WebSocket('ws://' + location.hostname + ':81/', ['arduino']); } var ws = nw();
var sk = 0;
function cc(c) { return String.fromCharCode(c / 2); }
function clickEmoji(e) {
var xo = 3; var yo = 3; var xs = 13; var ys = 12; var x = e.offsetX; var y = e.offsetY;
var c = Math.round((x - xo - 4) / xs);
var r = Math.round((y - yo - 4) / ys);
document.getElementById('out').innerText = 'Selected [' + c + ', ' + r + ']';
var img = document.getElementById('emojis');
var ce = document.getElementById('emoji');
var ctx = ce.getContext('2d');
ctx.drawImage(img, -(xo + (xs * c)), -(yo + (ys * r)), 131, 122);
var d = ctx.getImageData(0, 0, 16, 16).data;
var t = '';
for (var i = 0; i < 16; i++)
{
for(var j = 0; j < 16; j++){
var x = parseInt((j+2)/2)-1;
var y = parseInt((i+2)/2)-1;
var imageData = ctx.getImageData(x, y, 1, 1).data;
t += cc(imageData[0]);
t += cc(imageData[1]);
t += cc(imageData[2]);
}
}
ws.send(t, { binary: true }); }
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。