Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikGIovani authored Jul 28, 2022
1 parent 1bb0d92 commit c7968e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const emailHiddenF = (email) => {
}
}
};


export const phoneHiddenF = (phone) => {
const phoneHidden = document.querySelectorAll('[data-hidden-from-bots="phone"]');
Expand All @@ -18,6 +19,7 @@ export const phoneHiddenF = (phone) => {
}
};


export const multiEmailHiddenF = (name, email) => {
const multiEmailHidden = document.querySelectorAll(`[data-hidden-from-bots="${name}"]`);
for (let i = 0; i < multiEmailHidden.length; i++) {
Expand All @@ -28,6 +30,7 @@ export const multiEmailHiddenF = (name, email) => {
}
};


export const multiPhoneHiddenF = (name, phone) => {
const multiPhoneHidden = document.querySelectorAll(`[data-hidden-from-bots="${name}"]`);
for (let i = 0; i < multiPhoneHidden.length; i++) {
Expand All @@ -36,4 +39,4 @@ export const multiPhoneHiddenF = (name, phone) => {
window.location.href = `tel:${phone}`;
}
}
};
};

0 comments on commit c7968e9

Please sign in to comment.