Initial commit: Upload project WebGIS dengan tema Merah Putih
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import re
|
||||
|
||||
# Read file
|
||||
with open('assets/js/app.js', 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
|
||||
# Map of replacements
|
||||
replacements = {
|
||||
# Icons in toasts and popups
|
||||
'âœ"': '✓',
|
||||
'✕': '✕',
|
||||
'ℹ': 'ⓘ',
|
||||
'âš ': '⚠',
|
||||
'ðŸ"': '📍',
|
||||
'🛣ï¸': '🛣️',
|
||||
'⬠': '⬜',
|
||||
'ðŸ'¤': '👥',
|
||||
'ðŸ—'': '🗑️',
|
||||
'🕌': '🏢',
|
||||
'ðŸ\"¡': '📍',
|
||||
'â€"': '–',
|
||||
'’': "'",
|
||||
'©': '©',
|
||||
'²': '²',
|
||||
'â³': '⏳',
|
||||
}
|
||||
|
||||
# Apply replacements
|
||||
for old, new in replacements.items():
|
||||
content = content.replace(old, new)
|
||||
|
||||
# Write back
|
||||
with open('assets/js/app.js', 'w', encoding='utf-8') as f:
|
||||
f.write(content)
|
||||
|
||||
print("✓ File app.js berhasil diperbaiki!")
|
||||
Reference in New Issue
Block a user