OneManager
E5
ali
share
Github: https://github.com/qkqpttgf/OneManager-php An index & manager of Onedrive based on serverless. Can be deployed to > Glitch, > Heroku, > Replit, > Vercel, > CFC (Baidu Cloud Function Compute), > FC (Aliyun Function Compute), > SCF (Tencent Serverless Cloud Function), > FG (Huawei cloud Function Graph), > PHP web hosting, > VPS.
Home
/
E5
/
test
/
can.html
can.html
download
<meta name=viewport content="width=device-width,initial-scale=1"> <div id="show1"></div> <canvas id="canvas1" width="0" height="0">the explorer is not support canvas.</canvas><br> <input id="input1" type="text" onload="" oninput="getUUID(this.value);"></input> <script> //var canvas = document.createElement('canvas'); //document.body.appendChild(canvas); var showdiv = document.getElementById("show1"); var canvas = document.getElementById("canvas1"); var text = document.getElementById("input1"); text.focus(); function bin2hex(s) { var i, l, o = '', n; s += ''; for (i = 0, l = s.length; i < l; i++) { n = s.charCodeAt(i) .toString(16); o += n.length < 2 ? '0' + n : n; } return o; } function getUUID(str) { if (str=='') { showdiv.innerHTML = ''; canvas.width = 0; canvas.height = 0; return; } var b = 1; var ctx = canvas.getContext("2d"); //ctx.font = "14px 'Arial'"; canvas.width = ctx.measureText(str).width + b*2; console.log(canvas.width); canvas.height = 20; //ctx.textBaseline = "top"; //ctx.textBaseline = "bottom"; ctx.fillStyle = "#f60"; ctx.fillRect(10,4,62,20); ctx.fillStyle = "#069"; ctx.fillText(str, b, 15); //ctx.fillStyle = "rgba(102, 204, 0, 0.7)"; //ctx.fillText(txt, 4, 17); var b64 = canvas.toDataURL().replace("data:image/png;base64,",""); showdiv.innerHTML = b64.slice(100, 132); var bin = atob(b64); //var crc = bin2hex(bin.slice(-16,-12)); var crc = bin2hex(bin.slice(100,120)); //var crc = md5(bin); //return crc; showdiv.innerHTML += "<br>" + crc; } //getUUID("f0929514060453598818b0486161a71682829536fffffffffffffffffffff"); </script>
This file is foot.omf, and valine in it.
2022-07-04 16:27:39 Monday 34.239.147.7 Runningtime:2.081s Mem:414.63 KB