// Replaces +306932756989 with +30 697 321 34 99
(function() {
'use strict';
function replacePhoneNumber() {
const oldPhone = '+306932756989';
const newPhone = '+30 697 321 34 99';
const phoneLink = document.querySelector('a[href="tel:+306932756989"]');
if (phoneLink) {
phoneLink.href = `tel:${newPhone.replace(/\s/g, '')}`;
const phoneText = phoneLink.querySelector('.elementor-icon-list-text');
if (phoneText) {
phoneText.textContent = newPhone;
}
console.log('Phone number updated successfully');
}
const walker = document.createTreeWalker(
document.body,
NodeFilter.SHOW_TEXT,
null,
false
);
let node;
while (node = walker.nextNode()) {
if (node.textContent.includes(oldPhone)) {
node.textContent = node.textContent.replace(oldPhone, newPhone);
}
}
}
// Run when DOM is ready
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', replacePhoneNumber);
} else {
replacePhoneNumber();
}
setTimeout(replacePhoneNumber, 1000);
})();