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 20daa19
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 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
7 changes: 0 additions & 7 deletions 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 Expand Up @@ -117,12 +116,6 @@ body {
text-align: center;
}

.ui_calibration_menu_row > input {
height: 100%;
padding: 0;
margin: 0;
}

.ui_bottom_bar {
max-width: 1000px;
flex:1;
Expand Down

0 comments on commit 20daa19

Please sign in to comment.