// Decode basic info (production year/week, factory, model family guess) function decodeSerialInfo(serial) 'Unknown week';
// Remove spaces and dashes let cleaned = rawSerial.replace(/[\s-]/g, ''); if (!isValidSerialFormat(cleaned)) resultDiv.style.display = 'block'; resultDiv.className = 'result error'; resultDiv.innerHTML = '❌ Invalid format. iPhone serial numbers are 12 alphanumeric characters (excluding I, O, U).<br><br>Example: <strong>F17LJ1D2XXXX</strong>'; return; iphone serial number checker
// Build nice output resultDiv.style.display = 'block'; resultDiv.className = 'result info'; resultDiv.innerHTML = ` <strong>✅ Valid iPhone Serial</strong><br><br> <strong>🔢 Serial:</strong> $decoded.fullSerial<br> <strong>🏭 Factory:</strong> $decoded.factory<br> <strong>📅 Approx. Production:</strong> Week $decoded.week, $decoded.year<br> <strong>🔍 Model segment:</strong> $decoded.modelHint<br> <hr> <small>📌 <strong>Note:</strong> This is format + basic decoding. For exact model, warranty, or replacement check, visit <a href="https://checkcoverage.apple.com" target="_blank">Apple Check Coverage</a>.</small> `; // Decode basic info (production year/week, factory, model
<div id="result" class="result info" style="display: none;"></div> <div class="note"> ⚠️ This checks format and decodes public patterns. For full warranty/coverage info, use Apple's official Check Coverage page. </div> </div> For exact model, warranty, or replacement check, visit
<script> (function() // Helper: validate iPhone serial number format (12 characters, alphanumeric, no I/O/U) function isValidSerialFormat(serial)