MCPcopy Create free account
hub / github.com/Yantesoft/LinuxdoAssistant / updateFloatingSliderVisibility

Function updateFloatingSliderVisibility

linuxdo-helper.user.js:693–699  ·  view source on GitHub ↗

* 更新悬浮滑块的显示状态

()

Source from the content-addressed store, hash-verified

691 * 更新悬浮滑块的显示状态
692 */
693 function updateFloatingSliderVisibility() {
694 const slider = document.getElementById('linuxdo-speed-slider');
695
696 if (slider) {
697 slider.style.display = getSwitchState() ? 'block' : 'none';
698 }
699 }
700
701 // ==================== DOM 工具函数 ====================
702

Callers 1

createSwitchButtonFunction · 0.85

Calls 1

getSwitchStateFunction · 0.85

Tested by

no test coverage detected