const fs = require('fs');
const content = fs.readFileSync('index.html', 'utf8');
const lines = content.split('\n');
const start = lines.findIndex(l => l.includes('client-abstract-modal'));
if (start !== -1) {
    let end = start;
    for(let i=start+1; i<lines.length; i++) {
        if(lines[i].includes('class="modal"') || lines[i].includes('class="view"')) { end = i; break; }
    }
    console.log(lines.slice(start, end).join('\n'));
} else console.log('Not found');
