Skip to content

Instantly share code, notes, and snippets.

@kongmunist
Last active November 16, 2020 04:41
Show Gist options
  • Save kongmunist/bb43a2da50acd7f427c56cf0382c3d1c to your computer and use it in GitHub Desktop.
Save kongmunist/bb43a2da50acd7f427c56cf0382c3d1c to your computer and use it in GitHub Desktop.
Basic HTML page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Accelerometer Demo</title>
<style>
.indicatorDot{
width: 30px;
height: 30px;
background-color: #ffab56;
border-radius: 50%;
position:fixed;
}
</style>
<script></script>
</head>
<body style="background-color:lightblue;">
<button id="accelPermsButton" style="height:50px;" onclick="getAccel()"><h1>Get Accelerometer Permissions</h1></button>
<div class="indicatorDot" style="left:30%; top:30%;"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment