You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<style>
|
|
|
|
button {
|
|
|
|
width: 190px;
|
|
|
|
height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#navs {
|
|
|
|
height: 40px;
|
|
|
|
width: 400px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
|
|
|
height: 5%;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
margin-top: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clear {
|
|
|
|
clear: left;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="main_block" align="center">
|
|
|
|
<h2>Лабораторная работа *НАЗВАНИЕ*</h2>
|
|
|
|
<h3>Акселерометр ADW22035Z - Cемейство ADXL103</h3>
|
|
|
|
<p>Акселерометр подает на выход данные по одной оси.
|
|
|
|
<br />Частота обновления графика - 1 раз в двадцать секунд.
|
|
|
|
<br />Данные с сенсора снимаются с частотой в 20Hz. </p>
|
|
|
|
|
|
|
|
<canvas id="myCanvas" width="400" height="200" style="border:1px solid #000000;">
|
|
|
|
Браузер устарел!
|
|
|
|
</canvas>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var c = document.getElementById("myCanvas");
|
|
|
|
var context = c.getContext("2d");
|
|
|
|
var randomNumbers, randNumsLength;
|
|
|
|
context.moveTo(0, 0);
|
|
|
|
for (i = 0; i != 400; i+=4) {
|
|
|
|
context.lineTo(i, Math.random() * 100 + 50);
|
|
|
|
}
|
|
|
|
context.stroke();
|
|
|
|
context.font = "50px Arial";
|
|
|
|
context.fillText("24",320,170);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="navs">
|
|
|
|
<button onclick="window.location.href='/hbs.html'"class="button">Оптодатчик</button>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
Тамбовский Государственный Технический Университет 2017 г.
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|