|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>remote control</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<link rel="icon" href="img/favicon.ico" type="image/x-icon" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link href="../style.css" rel="stylesheet">
|
|
|
|
<meta property="og:title" content="EIXOGEN" />
|
|
|
|
<meta property="og:description" content="EIXOGEN" />
|
|
|
|
<meta property="og:image" content="" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- <img id="logo" src="img/logo.png">-->
|
|
|
|
<div class="profile"> <p id="title"> ~* *..* welcome to remote control ~</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="flex-container">
|
|
|
|
<!-- 16 divs -->
|
|
|
|
<div>
|
|
|
|
<p class="data">
|
|
|
|
<br>
|
|
|
|
module name: wire::;;
|
|
|
|
<br>
|
|
|
|
<button id="sendOscButton" style="background-color: lightpink;">ON 🐹</button>
|
|
|
|
<button id="sendOffButton" style="background-color: lightpink;">OFF 🐱</button>
|
|
|
|
<div id="response"></div>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div>2</div>
|
|
|
|
<div>3</div>
|
|
|
|
<div>4</div>
|
|
|
|
<div>5</div>
|
|
|
|
<div>6</div>
|
|
|
|
<div>7</div>
|
|
|
|
<div>8</div>
|
|
|
|
<div>9</div>
|
|
|
|
<div>10</div>
|
|
|
|
<div>11</div>
|
|
|
|
<div>12</div>
|
|
|
|
<div>13</div>
|
|
|
|
<div>14</div>
|
|
|
|
<div>15</div>
|
|
|
|
<div>16</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
// Handle button click event
|
|
|
|
$('#sendOscButton').click(function() {
|
|
|
|
$.post('/hamp-on', function(data) {
|
|
|
|
// Handle the response if needed
|
|
|
|
console.log(data);
|
|
|
|
$('#response').text(data); // Display the response on the page
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#sendOffButton').click(function() {
|
|
|
|
$.post('/hamp-off', function(data) {
|
|
|
|
// Handle the response if needed
|
|
|
|
console.log(data);
|
|
|
|
$('#response').text(data); // Display the response on the page
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|