Skip to content

Commit

Permalink
update redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
ail3ngrimaldi committed Sep 5, 2024
1 parent abd27dd commit ae51c4e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions landings/a/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -158,22 +158,25 @@ window.document.onload = () => {
cta.forEach((c) => {
c.addEventListener('click', () => {
let searchParams = new URL(window.location.href).searchParams;
let w = window.open('_blank');
w.location = url;
window.amplitude.track(`landing:a:click-apply`);
let url = `https://waitlist.virto.network/?b=${searchParams.get('b')}`;
window.location.href = url;
});
});
let telegram = document.getElementById("telegram");
telegram.addEventListener('click', () => {
let w = window.open('_blank');
w.location = url;
window.amplitude.track('landing:a:click-telegram');
window.location.href = url;
});
let whatsapp = document.getElementById("whatsapp");
whatsapp.addEventListener('click', () => {
let w = window.open('_blank');
w.location = url;
window.amplitude.track('landing:a:click-whatsapp');
window.location.href = url;
});
const $ = document.querySelector.bind(document);
Expand Down
9 changes: 6 additions & 3 deletions landings/b/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -153,22 +153,25 @@ window.document.onload = () => {
cta.forEach((c) => {
c.addEventListener('click', () => {
let searchParams = new URL(window.location.href).searchParams;
let w = window.open('_blank');
w.location = url;
window.amplitude.track(`landing:b:click-apply`);
let url = `https://waitlist.virto.network/?b=${searchParams.get('b')}`;
window.location.href = url;
});
});
let telegram = document.getElementById("telegram");
telegram.addEventListener('click', () => {
let w = window.open('_blank');
w.location = url;
window.amplitude.track('landing:b:click-telegram');
window.location.href = url;
});
let whatsapp = document.getElementById("whatsapp");
whatsapp.addEventListener('click', () => {
let w = window.open('_blank');
w.location = url;
window.amplitude.track('landing:b:click-whatsapp');
window.location.href = url;
});
Expand Down
9 changes: 6 additions & 3 deletions landings/c/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -151,22 +151,25 @@ window.document.onload = () => {
cta.forEach((c) => {
c.addEventListener('click', () => {
let searchParams = new URL(window.location.href).searchParams;
let w = window.open('_blank');
w.location = url;
window.amplitude.track(`landing:c:click-apply`);
let url = `https://waitlist.virto.network/?b=${searchParams.get('b')}`;
window.location.href = url;
});
});
let telegram = document.getElementById("telegram");
telegram.addEventListener('click', () => {
let w = window.open('_blank');
w.location = url;
window.amplitude.track('landing:c:click-telegram');
window.location.href = url;
});
let whatsapp = document.getElementById("whatsapp");
whatsapp.addEventListener('click', () => {
let w = window.open('_blank');
w.location = url;
window.amplitude.track('landing:c:click-whatsapp');
window.location.href = url;
});
const $ = document.querySelector.bind(document);
Expand Down

0 comments on commit ae51c4e

Please sign in to comment.