Skip to content

Commit

Permalink
Test bluefy
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-ard committed Aug 1, 2024
1 parent ac51bba commit 5235ccb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
13 changes: 13 additions & 0 deletions bluefy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<html>
<head>
<title>Test</title>
<script src="bluefy.js"></script>
</head>

<body onload="onload()">
<input type="checkbox" onclick="document.getElementById('myText').disabled = !this.checked" />
<input type="text" id="myText" disabled />
<div id="test"></div>

</body>
</html>
15 changes: 15 additions & 0 deletions bluefy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


function onload(){
//document.getElementById('test');
console.log("hey")

let test = document.getElementById('test');

let checkbox = document.createElement('input');
checkbox.type = 'checkbox';

test.appendChild(checkbox);


}
2 changes: 0 additions & 2 deletions calibrate/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ function ui_setup_accel_calibration_menu(){
let direction = sign + raw_direction;
// Checkbox
let checkbox = document.createElement('input');
checkbox.classList.add('ui_calibration_checkbox');
checkbox.classList.add('ui_accel_checkbox');
checkbox.classList.add('ui_accel_checkbox_' + direction)
checkbox.type = 'checkbox';
//checkbox.innerText = "set";
Expand Down
1 change: 0 additions & 1 deletion calibrate/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ body {
}

.ui_calibration_checkbox{
max-height: 50px;
}

.ui_submenu{
Expand Down

0 comments on commit 5235ccb

Please sign in to comment.