<div id="step3" class="step"> <h3>How to program your Claro remote</h3> <ol> <li>Turn on your <span id="targetDevice"></span> manually.</li> <li>Press and hold the corresponding mode button on your Claro remote (TV, AUDIO, etc.) until the LED blinks twice.</li> <li>Enter the <strong>4-digit code</strong> shown below.</li> <li>Test volume/power. If it works, press OK/ENTER to save.</li> </ol> <div id="finalCode" style="font-size: 1.5rem; background: #000; color: #0f0; padding: 0.5rem; text-align: center;"></div> <button onclick="prevStep()">Back</button> <button onclick="restart()">Restart</button> </div>
<script> // Database of codes (example for Claro/Latin American brands) const codeDB = { tv: { "Samsung": ["0101", "0120", "0178"], "LG": ["0019", "0035", "0056"], "Sony": ["0000", "0033", "0081"], "Panasonic": ["0051", "0060", "0108"], "TCL": ["1009", "1078"], "Philips": ["0065", "0089"] }, audio: { "Samsung": ["2101", "2120"], "Sony": ["3010", "3033"], "LG": ["2056", "2090"], "Yamaha": ["3124", "3180"], "Bose": ["3200", "3211"] }, claro: { "Claro Decoder (SD)": ["0001", "0010"], "Claro HD/HC": ["1020", "1045"], "Claro 4K": ["2050", "2077"] } }; codigo para configurar control claro
function selectDevice(device) { currentDevice = device; document.getElementById('step1').classList.remove('active'); document.getElementById('step2').classList.add('active'); let title = ''; let brandOptions = ''; if (device === 'tv') { title = 'Configure TV Control'; brandOptions = Object.keys(codeDB.tv); } else if (device === 'audio') { title = 'Configure Audio/Receiver Control'; brandOptions = Object.keys(codeDB.audio); } else { title = 'Configure Claro Decoder Control'; brandOptions = Object.keys(codeDB.claro); } document.getElementById('deviceTitle').innerText = title; const select = document.getElementById('brandSelect'); select.innerHTML = '<option value="">-- Select brand --</option>' + brandOptions.map(b => `<option value="${b}">${b}</option>`).join(''); } div id="step3" class="step">