<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"] } };
function showCodes() { const brand = document.getElementById('brandSelect').value; if (!brand) { alert('Please select a brand'); return; } currentBrand = brand; let codes = []; if (currentDevice === 'tv') codes = codeDB.tv[brand]; else if (currentDevice === 'audio') codes = codeDB.audio[brand]; else codes = codeDB.claro[brand]; currentCodes = codes; const resultDiv = document.getElementById('codeResult'); resultDiv.innerHTML = `<div class="brand">${brand} codes:</div>` + codes.map(code => `<button class="code-btn" onclick="selectCode('${code}')">${code}</button>`).join('') + `<p>Try each code until your device responds to the remote.</p>`; } codigo para configurar control claro
function prevStep() { document.getElementById('step2').classList.remove('active'); document.getElementById('step3').classList.remove('active'); document.getElementById('step1').classList.add('active'); } <script> // Database of codes (example for Claro/Latin