Commit 7a90c2f3 authored by TokaKaram's avatar TokaKaram

edit endpoint

parent 9529d439
...@@ -8,11 +8,12 @@ ...@@ -8,11 +8,12 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css" />
<title>THE BASE</title> <title>THE BASE</title>
<link rel="stylesheet" href="style.css">
<link <link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
rel="stylesheet" rel="stylesheet"
/> />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css" media="print" onload="this.media='all'"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css" media="print" onload="this.media='all'">
<script> <script>
!function(f,b,e,v,n,t,s) !function(f,b,e,v,n,t,s)
...@@ -522,9 +523,10 @@ comfort — where gaming is pure joy!</p> ...@@ -522,9 +523,10 @@ comfort — where gaming is pure joy!</p>
</div> </div>
<button class="btn2_type btn-tracking" onclick=" <button class="btn2_type btn-tracking" onclick="
window.open('https://portal.myfatoorah.com/En/KWT/PayInvoice/LinkInvoiceDetails/060615219482625862');
tracking(15); tracking(15);
window.open('https://portal.myfatoorah.com/En/KWT/PayInvoice/LinkInvoiceDetails/060615219482625862');
"> ">
Book your pass Book your pass
</button> </button>
...@@ -610,9 +612,10 @@ comfort — where gaming is pure joy!</p> ...@@ -610,9 +612,10 @@ comfort — where gaming is pure joy!</p>
</div> </div>
<button class="btn2_type btn-tracking" onclick=" <button class="btn2_type btn-tracking" onclick="
tracking(15);
openNewWindow( 'https://portal.myfatoorah.com/En/KWT/PayInvoice/LinkInvoiceDetails/060615219482625862' openNewWindow( 'https://portal.myfatoorah.com/En/KWT/PayInvoice/LinkInvoiceDetails/060615219482625862'
)">احجز الان</button> )
tracking(15);
">احجز الان</button>
</div> </div>
...@@ -631,8 +634,9 @@ comfort — where gaming is pure joy!</p> ...@@ -631,8 +634,9 @@ comfort — where gaming is pure joy!</p>
<button class="btn2_type_s btn-tracking" <button class="btn2_type_s btn-tracking"
onclick=" onclick="
openNewWindow('https://portal.myfatoorah.com/En/KWT/PayInvoice/LinkInvoiceDetails/060615219482625963')
tracking(10); tracking(10);
openNewWindow('https://portal.myfatoorah.com/En/KWT/PayInvoice/LinkInvoiceDetails/060615219482625963')">احجز ">احجز
الان</button> الان</button>
...@@ -656,8 +660,9 @@ comfort — where gaming is pure joy!</p> ...@@ -656,8 +660,9 @@ comfort — where gaming is pure joy!</p>
<button class="btnn2 btn-tracking" <button class="btnn2 btn-tracking"
onclick=" onclick="
openNewWindow('https://portal.myfatoorah.com/En/KWT/PayInvoice/LinkInvoiceDetails/060615219482626062')
tracking(50); tracking(50);
openNewWindow('https://portal.myfatoorah.com/En/KWT/PayInvoice/LinkInvoiceDetails/060615219482626062')">احجز الان ">احجز الان
</button> </button>
</div> </div>
...@@ -748,14 +753,17 @@ comfort — where gaming is pure joy!</p> ...@@ -748,14 +753,17 @@ comfort — where gaming is pure joy!</p>
<div class="icons"> <div class="icons">
<a onclick=" <a onclick="
openNewWindow('https://x.com/thebasekuwait')
trackingContact(); trackingContact();
openNewWindow('https://x.com/thebasekuwait')"><img loading="lazy" src="./images/twitter.webp" alt=""></a> "><img loading="lazy" src="./images/twitter.webp" alt=""></a>
<a onclick=" <a onclick="
openNewWindow('https://www.instagram.com/kuwaitthebase/')
trackingContact(); trackingContact();
openNewWindow('https://www.instagram.com/kuwaitthebase/')"><img loading="lazy" src="./images/instagram.webp" alt=""></a> "><img loading="lazy" src="./images/instagram.webp" alt=""></a>
<a onclick=" <a onclick="
openNewWindow('https://www.facebook.com/profile.php?id=61581965409215')
trackingContact(); trackingContact();
openNewWindow('https://www.facebook.com/profile.php?id=61581965409215')"><img loading="lazy" src="./images/facebook-app-symbol.webp" alt=""></a> "><img loading="lazy" src="./images/facebook-app-symbol.webp" alt=""></a>
...@@ -763,8 +771,9 @@ comfort — where gaming is pure joy!</p> ...@@ -763,8 +771,9 @@ comfort — where gaming is pure joy!</p>
</div> </div>
<div class="buttonc_parent"> <div class="buttonc_parent">
<button onclick=" <button onclick="
openWhatsApp()
trackingContact(); trackingContact();
openWhatsApp()">Contact us </button> ">Contact us </button>
</div> </div>
</div> </div>
<script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script>
......
...@@ -390,7 +390,7 @@ function tracking(price) { ...@@ -390,7 +390,7 @@ function tracking(price) {
snaptr("track", "START_CHECKOUT", { event_id: uniqueEventID }); snaptr("track", "START_CHECKOUT", { event_id: uniqueEventID });
} }
fetch("http://localhost:3000/api/track", { fetch("https://the-base-tracking-api.caprover.al-arcade.com/api/track", {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
...@@ -436,7 +436,7 @@ function trackingContact() { ...@@ -436,7 +436,7 @@ function trackingContact() {
} }
// --- B. Server-Side API (CAPI) --- // --- B. Server-Side API (CAPI) ---
fetch("http://localhost:3000/api/track", { fetch("https://the-base-tracking-api.caprover.al-arcade.com/api/track", {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
...@@ -477,7 +477,7 @@ function trackPageView() { ...@@ -477,7 +477,7 @@ function trackPageView() {
snaptr("track", "PAGE_VIEW", { event_id: uniqueEventID }); snaptr("track", "PAGE_VIEW", { event_id: uniqueEventID });
} }
fetch("http://localhost:3000/api/track", { fetch("https://the-base-tracking-api.caprover.al-arcade.com/api/track ", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ body: JSON.stringify({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment