A Pen by NaKaz

Developer
Size
2,669 Kb
Views
34,408

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 Previews

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);
A Pen by NaKaz - Script Codes
A Pen by NaKaz - Script Codes
Home Page Home
Developer NaKaz
Username nakakaz11
Uploaded August 31, 2022
Rating 3
Size 2,669 Kb
Views 34,408
Do you need developer help for A Pen by NaKaz?

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!

NaKaz (nakakaz11) Script Codes
Create amazing art & images with AI!

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!