; else the first block-level container that holds the links

let meta = txtTd.querySelector('h5') || txtTd.querySelector('p, div, center, font, span'); if(meta){ // MOVE (not clone) the text block under the image const wrap = document.createElement('div'); wrap.className='book-meta'; normalizeLinks(meta, href); wrap.appendChild(meta); // moving the node keeps your original HTML imgTd.appendChild(wrap); // clear original cell txtTd.innerHTML=''; } iIdx++; tIdx++; paired++; } // If the consumed text row is now empty, hide it if(isEmptyRow(rowTxt)) rowTxt.style.display='none'; // Skip past the text row we just consumed (if adjacent) if(kUsed===1) r++; } } function run(){ // Touch only tables that actually contain book links/images const tables = Array.from(document.querySelectorAll('table')) .filter(t => t.querySelector('a[href*="/books/"] img') && t.querySelector('h5 a[href*="/books/"]')); if(tables.length===0){ // Fallback: try all tables under #content document.querySelectorAll('#content table').forEach(handleTable); } else { tables.forEach(handleTable); } } // Run after layout is ready (works inside editable regions) if(document.readyState==='loading') document.addEventListener('DOMContentLoaded', run); else setTimeout(run, 0); })(); 257-Nusrat Fateh Ali Khant Aqeel Rubi

Add Your Email to APNA Mailing List
We will use your email only to send you notifications about new books uploaded on APNA web
Back to APNA Page English Books Shahmukhi Books Gurmukhi Books Urdu Books
Go to page: