# PowerShell script to update all HTML files with new CSS and JavaScript references
# Get all HTML files in the workspace and subdirectories
$htmlFiles = Get-ChildItem -Path . -Filter *.html -Recurse
foreach ($file in $htmlFiles) {
Write-Host "Processing: $($file.FullName)"
# Read the content of the file
$content = Get-Content -Path $file.FullName -Raw
$modified = $false
# Add animations.css if not already included
if (-not $content.Contains('animations.css')) {
$content = $content -replace '()', '$1
'
# Fix paths for subdirectories
if ($file.DirectoryName -ne (Get-Location).Path) {
$content = $content -replace 'href="css/animations.css"', 'href="../css/animations.css"'
}
$modified = $true
}
# Add new script references if not already included
$newScripts = @(
"data-node-interactions.js",
"page-specific.js",
"dynamic-content.js",
"form-handler.js"
)
foreach ($script in $newScripts) {
if (-not $content.Contains($script)) {
$content = $content -replace '(