A Pen by NaKaz
How do I make an a pen by nakaz?
What is a a pen by nakaz? How do you make a a pen by nakaz? This script and codes were developed by NaKaz on 31 August 2022, Wednesday.
A Pen by NaKaz - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by NaKaz</title>
</head>
<body> <p id="acc">傾き加速度</p>
<p id="gra">重力加速度</p>
<p id="rat">ジャイロセンサ</p> <script src="js/index.js"></script>
</body>
</html>
A Pen by NaKaz - Script Codes JS Codes
(function() { var acc, gra, rat; acc = { x: 0, y: 0, z: 0 }; gra = { x: 0, y: 0, z: 0 }; rat = { a: 0, b: 0, g: 0 }; window.addEventListener("devicemotion", function(e) { var ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, ref8; acc.x = e.acceleration.x; acc.y = e.acceleration.y; acc.z = e.acceleration.z; document.getElementById("acc").innerHTML = "<dl><dt>傾加速度</b>:" + "<dd>x=" + ((ref = acc.x) != null ? ref.toFixed(2) : void 0) + "<dd>y=" + ((ref1 = acc.y) != null ? ref1.toFixed(2) : void 0) + "<dd>z=" + ((ref2 = acc.z) != null ? ref2.toFixed(2) : void 0); gra.x = e.accelerationIncludingGravity.x; gra.y = e.accelerationIncludingGravity.y; gra.z = e.accelerationIncludingGravity.z; document.getElementById("gra").innerHTML = "<dt>重力加速度:</dt>" + "<dd>x=" + ((ref3 = gra.x) != null ? ref3.toFixed(2) : void 0) + "<dd>y=" + ((ref4 = gra.y) != null ? ref4.toFixed(2) : void 0) + "<dd>z=" + ((ref5 = gra.z) != null ? ref5.toFixed(2) : void 0); rat.a = e.rotationRate.alpha; rat.b = e.rotationRate.beta; rat.g = e.rotationRate.gamma; return document.getElementById("rat").innerHTML = "<dt>傾き加速度:" + "<dd>α(z軸基準)=" + ((ref6 = rat.a) != null ? ref6.toFixed(2) : void 0) + "<dd>β(x軸基準)=" + ((ref7 = rat.b) != null ? ref7.toFixed(2) : void 0) + "<dd>γ(y軸基準)=" + ((ref8 = rat.g) != null ? ref8.toFixed(2) : void 0); });
}).call(this);
Developer | NaKaz |
Username | nakakaz11 |
Uploaded | August 31, 2022 |
Rating | 3 |
Size | 2,669 Kb |
Views | 34,408 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CountUP Class sandbox | 3,229 Kb |
Test OMG Particles II | 2,879 Kb |
D3.js su_ji_Force | 4,348 Kb |
D3.js d3.geo.projection TEST | 7,169 Kb |
MVC tab TEST | 4,804 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Mini Profile | Frytyler | 3,828 Kb |
Shopping List | Markmurray | 6,015 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
Under construction | GhostRider | 1,642 Kb |
Flexbox Test | Icutpeople | 2,486 Kb |
Blog Concept - Single Post | Marionebl | 9,603 Kb |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
Menu | Vivi_Lai | 1,210 Kb |
Search field | Jamesbarnett | 2,100 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!