File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ const fs = require ( 'fs' ) ;
2+
3+ let html = fs . readFileSync ( 'index.html' , 'utf8' ) ;
4+
5+ const target1 = ` <div class="flex-col">
6+ <details>
7+ <summary><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="mr-2" style="margin-right: 8px;"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg> AGE-SPECIFIC LIFECYCLE GUIDANCE</summary>` ;
8+
9+ const replace1 = ` <details>
10+ <summary><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="mr-2" style="margin-right: 8px;"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg> AGE-SPECIFIC LIFECYCLE GUIDANCE</summary>` ;
11+
12+ const target2 = ` </div>
13+ </details>
14+ </div>
15+ <div class="flex-col">
16+ <details>
17+ <summary><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="mr-2" style="margin-right: 8px;"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg> HEALTHCARE LIABILITY INSULATION</summary>` ;
18+
19+ const replace2 = ` </div>
20+ </details>
21+ <details>
22+ <summary><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="mr-2" style="margin-right: 8px;"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg> HEALTHCARE LIABILITY INSULATION</summary>` ;
23+
24+ const target3 = ` </div>
25+ </details>
26+ </div>
27+ </div>
28+ </div>
29+ <div class="card p-6 mt-4 border border-red-100 bg-red-50 rounded-lg">` ;
30+
31+ const replace3 = ` </div>
32+ </details>
33+ </div>
34+ </div>
35+ <div class="card p-6 mt-4 border border-red-100 bg-red-50 rounded-lg">` ;
36+
37+ html = html . replace ( target1 , replace1 ) ;
38+ html = html . replace ( target2 , replace2 ) ;
39+ html = html . replace ( target3 , replace3 ) ;
40+
41+ fs . writeFileSync ( 'index.html' , html , 'utf8' ) ;
42+ console . log ( 'Fixed gaps successfully' ) ;
You can’t perform that action at this time.
0 commit comments