init project
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
const fs = require('fs');
|
||||
let html = fs.readFileSync('UMass Amherst _ UMass Amherst.html', 'utf8');
|
||||
|
||||
// Replace Title
|
||||
html = html.replace(/<title>.*?<\/title>/gi, '<title>Bệnh Viện Đa Khoa Quốc Tế S.I.S Cần Thơ</title>');
|
||||
|
||||
// Replace Logo
|
||||
const logoRegex = /<div class="tophat-logo">([\s\S]*?)<\/div>/g;
|
||||
html = html.replace(logoRegex, `<div class="tophat-logo">
|
||||
<a href="https://sisvietnam.vn/">
|
||||
<img src="images/LogoSIS.png" alt="Bệnh Viện Đa Khoa Quốc Tế S.I.S Cần Thơ" style="height: 60px; padding: 10px 0;">
|
||||
</a>
|
||||
</div>`);
|
||||
|
||||
// Replace Hero 1
|
||||
html = html.replace(/\.\/UMass Amherst _ UMass Amherst_files\/UPC2025__HERO_2000x1125\.jpg/g, 'bài viết/Trang chủ - Bệnh Viện Đa Khoa Quốc Tế S.I.S Cần Thơ_files/BANNER-WEB-01-scaled.jpg');
|
||||
// Replace Hero 2
|
||||
html = html.replace(/\.\/UMass Amherst _ UMass Amherst_files\/FY26_BeTheFuture-HERO_professor-with-students\.jpg/g, 'bài viết/Trang chủ - Bệnh Viện Đa Khoa Quốc Tế S.I.S Cần Thơ_files/BANNER-WEB-02-scaled.jpg');
|
||||
// Replace Hero 3
|
||||
html = html.replace(/\.\/UMass Amherst _ UMass Amherst_files\/FY23-Study-abroad-LANDING-HERO-London-SA_0\.jpg/g, 'bài viết/Trang chủ - Bệnh Viện Đa Khoa Quốc Tế S.I.S Cần Thơ_files/BANNER-WEB-03-scaled.jpg');
|
||||
|
||||
fs.writeFileSync('UMass Amherst _ UMass Amherst.html', html, 'utf8');
|
||||
console.log('Update complete.');
|
||||
Reference in New Issue
Block a user