diff --git a/index.html b/index.html index 1e31b52..a69d909 100644 --- a/index.html +++ b/index.html @@ -624,6 +624,24 @@ font-weight: bold; display: none; } + + /* Bluetooth Pairing Button */ + .bluetooth-pair-button { + display: inline-block; + margin-top: 8px; + padding: 5px 10px; + background-color: #9b59b6; + color: white; + border: none; + border-radius: 3px; + font-size: 12px; + cursor: pointer; + transition: background-color 0.2s; + } + + .bluetooth-pair-button:hover { + background-color: #8e44ad; + } @@ -5129,6 +5147,19 @@ deviceContent += ``; deviceContent += `
MAC: ${device.mac}\n${device.details}
`; + + // Add pairing button only if device is nearby and player has a Bluetooth spoofer + if (device.nearby) { + // Check if player has a Bluetooth spoofer in inventory + const hasSpoofer = inventory.items.some(item => + item.scenarioData?.type === "bluetooth_spoofer" + ); + + if (hasSpoofer) { + deviceContent += ``; + } + } + deviceContent += `
Last seen: ${formattedDate} ${formattedTime}
`; deviceElement.innerHTML = deviceContent;