Skip to content

Commit

Permalink
Fix/chat links (#182)
Browse files Browse the repository at this point in the history
* Add missing class

* added missing redirectUrl variable
  • Loading branch information
ail3ngrimaldi authored Sep 11, 2024
1 parent 6250dcc commit 13d3c2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions landings/a/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ document.addEventListener('DOMContentLoaded', function() {
telegram.addEventListener('click', (event) => {
event.preventDefault();
let redirectUrl = new URL('https://t.me/+573107887042');
const newWindow = window.open('_blank');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:a:click-telegram')
.then(() => {
newWindow.location = redirectUrl.toString();
Expand All @@ -184,7 +184,7 @@ document.addEventListener('DOMContentLoaded', function() {
whatsapp.addEventListener('click', (event) => {
event.preventDefault();
let redirectUrl = new URL('https://api.whatsapp.com/send?phone=573107887042');
const newWindow = window.open('_blank');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:a:click-whatsapp')
.then(() => {
newWindow.location = redirectUrl.toString();
Expand Down
4 changes: 2 additions & 2 deletions landings/b/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ document.addEventListener('DOMContentLoaded', function() {
telegram.addEventListener('click', (event) => {
event.preventDefault();
let redirectUrl = new URL('https://t.me/+573107887042');
const newWindow = window.open('_blank');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:b:click-telegram')
.then(() => {
newWindow.location = redirectUrl.toString();
Expand All @@ -180,7 +180,7 @@ document.addEventListener('DOMContentLoaded', function() {
whatsapp.addEventListener('click', (event) => {
event.preventDefault();
let redirectUrl = new URL('https://api.whatsapp.com/send?phone=573107887042');
const newWindow = window.open('_blank');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:b:click-whatsapp')
.then(() => {
newWindow.location = redirectUrl.toString();
Expand Down
8 changes: 4 additions & 4 deletions landings/c/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ul li, .auto-grid li { display: flex; align-items: center; gap: 1.75em; }
<p class="bolder">{{ landing_c.eyebrow }}</p>
<h1>{{ landing_c.title }}</h1>
<p>{{ landing_c.paragraph_one }}</p>
<a class="track-cta button" href="https://waitlist.virto.network/">{{ landing_c.call_to_action }}</a>
<a class="track-superior-cta button" href="https://waitlist.virto.network/">{{ landing_c.call_to_action }}</a>
</div>
<figure class="logo image main__logo">
{% include "w.svg" %}
Expand Down Expand Up @@ -124,7 +124,7 @@ ul li, .auto-grid li { display: flex; align-items: center; gap: 1.75em; }
<h2 class="bolder">
<span>{{ landing_c.title }}</span>
</h2>
<a class="track-cta button" href={{ landing_c.link }}>
<a class="track-inferior-cta button" href={{ landing_c.link }}>
{{ landing_c.call_to_action }}
</a>
<ul class="social-media__links">
Expand Down Expand Up @@ -166,7 +166,7 @@ document.addEventListener('DOMContentLoaded', function() {
telegram.addEventListener('click', (event) => {
event.preventDefault();
let redirectUrl = new URL('https://t.me/+573107887042');
const newWindow = window.open('_blank');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:c:click-telegram')
.then(() => {
newWindow.location = redirectUrl.toString();
Expand All @@ -177,7 +177,7 @@ document.addEventListener('DOMContentLoaded', function() {
whatsapp.addEventListener('click', (event) => {
event.preventDefault();
let redirectUrl = new URL('https://api.whatsapp.com/send?phone=573107887042');
const newWindow = window.open('_blank');
const newWindow = window.open(redirectUrl, '_blank');
amplitude.track('landing:c:click-whatsapp')
.then(() => {
newWindow.location = redirectUrl.toString();
Expand Down

0 comments on commit 13d3c2f

Please sign in to comment.