MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / updateWardrivingToggleButton

Function updateWardrivingToggleButton

web/scripts/ragnar_modern.js:18798–18822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18796 }
18797 try {
18798 const data = await postAPI('/api/wifi/forget', { ssid });
18799 if (data.success) {
18800 addConsoleMessage(`Forgot Wi-Fi network: ${ssid}`, 'success');
18801 scanWifiNetworks();
18802 } else {
18803 addConsoleMessage(`Failed to forget network: ${data.message || 'Unknown error'}`, 'error');
18804 }
18805 } catch (error) {
18806 console.error('Error forgetting network:', error);
18807 addConsoleMessage(`Error forgetting network: ${error.message}`, 'error');
18808 }
18809}
18810
18811function togglePasswordVisibility() {
18812 const passwordInput = document.getElementById('wifi-connect-password');
18813 const eyeIcon = document.getElementById('password-eye-icon');
18814
18815 if (!passwordInput) return;
18816
18817 if (passwordInput.type === 'password') {
18818 passwordInput.type = 'text';
18819 if (eyeIcon) {
18820 eyeIcon.innerHTML = `
18821 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"></path>
18822 `;
18823 }
18824 } else {
18825 passwordInput.type = 'password';

Callers 1

updateWardrivingUIFunction · 0.70

Calls 1

addMethod · 0.80

Tested by

no test coverage detected