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

Function stopZapDaemon

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

Source from the content-addressed store, hash-verified

20293 const description = escapeHtml(getConfigDescription(key));
20294 if (typeof value === 'boolean') {
20295 wdHtml += `<label class="flex items-center space-x-3 p-3 rounded-lg hover:bg-slate-700 hover:bg-opacity-50 transition-colors cursor-pointer"><input type="checkbox" name="${key}" ${value ? 'checked' : ''} class="w-5 h-5 rounded bg-slate-700 border-slate-600 text-Ragnar-500 focus:ring-Ragnar-500"><span class="flex items-center gap-2">${label}<span class="info-icon" tabindex="0" role="button" aria-label="${description}" data-tooltip="${description}">ⓘ</span></span></label>`;
20296 } else {
20297 wdHtml += `<div class="space-y-2"><label class="flex items-center gap-2 text-sm text-gray-400">${label}<span class="info-icon" tabindex="0" role="button" aria-label="${description}" data-tooltip="${description}">ⓘ</span></label><input type="text" name="${key}" value="${value ?? ''}" class="w-full px-4 py-2 rounded-lg bg-slate-700 border border-slate-600 focus:border-Ragnar-500 focus:ring-1 focus:ring-Ragnar-500"></div>`;
20298 }
20299 }
20300 });
20301 wdHtml += '</div><button type="submit" class="w-full mt-4 bg-Ragnar-600 hover:bg-Ragnar-700 text-white font-bold py-2 px-4 rounded-lg transition-colors">Save Wardriving Settings</button></form>';
20302 wdSlot.innerHTML = wdHtml;
20303 document.getElementById('wardriving-config-form').addEventListener('submit', async (e) => {
20304 e.preventDefault();
20305 await saveConfig(e.target);
20306 });
20307 }
20308}
20309
20310// Handle vulnerability scanning checkbox toggle to enable/disable dependent options
20311function handleVulnScanToggle(checkbox) {
20312 const scanVulnNoPortsCheckbox = document.querySelector('input[name="scan_vuln_no_ports"]');
20313 const scanVulnNoPortsLabel = scanVulnNoPortsCheckbox ? scanVulnNoPortsCheckbox.closest('label') : null;
20314
20315 if (scanVulnNoPortsCheckbox) {
20316 scanVulnNoPortsCheckbox.disabled = !checkbox.checked;
20317
20318 if (scanVulnNoPortsLabel) {
20319 if (checkbox.checked) {

Callers

nothing calls this directly

Calls 3

errorMethod · 0.80
showNotificationFunction · 0.70
refreshAdvVulnDataFunction · 0.70

Tested by

no test coverage detected