Skip to content

Commit

Permalink
Fixed toggle tap logic
Browse files Browse the repository at this point in the history
  • Loading branch information
connornishijima committed May 8, 2024
1 parent 69b8805 commit 7b92091
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/js/render_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ function render_toggles(){
let toggle_name = toggles[i].name;
let toggle_value = configuration[toggle_name];

out_html += `<span class="toggle" onclick="toggle_toggle('${toggle_name}')">`;
out_html += `<span class="toggle">`;
out_html += `<div class="toggle_label buzz" onclick="show_setting_information('${toggle_name}'); ">`;
out_html += `${toggle_name.toUpperCase().replace(/_/g," ")}`;
out_html += `</div>`;
out_html += `<div class="toggle_track" id="${toggle_name}"></div>`;
out_html += `<div class="toggle_handle" id="${toggle_name}_handle"></div>`;
out_html += `<div class="toggle_track" id="${toggle_name}" onclick="toggle_toggle('${toggle_name}')"></div>`;
out_html += `<div class="toggle_handle" id="${toggle_name}_handle" onclick="toggle_toggle('${toggle_name}')"></div>`;
out_html += `</span>`;
}
toggle_container.innerHTML += out_html;
Expand Down

0 comments on commit 7b92091

Please sign in to comment.