Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EL-Captain-Website
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
EL-Captain-Website
Commits
7880ff1e
Commit
7880ff1e
authored
Jul 07, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ?country=SA query param override for geo-pricing testing
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
dc364f0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
main.js
public/js/main.js
+11
-6
No files found.
public/js/main.js
View file @
7880ff1e
...
@@ -81,12 +81,17 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -81,12 +81,17 @@ document.addEventListener('DOMContentLoaded', () => {
injectRevealStyles
();
injectRevealStyles
();
injectDynamicStyles
();
injectDynamicStyles
();
// Detect country and apply geo-pricing
// Detect country and apply geo-pricing (?country=SA override for testing)
const
urlCountry
=
new
URLSearchParams
(
window
.
location
.
search
).
get
(
'country'
);
if
(
urlCountry
)
{
applyGeoPricing
(
urlCountry
.
toUpperCase
());
}
else
{
detectCountry
().
then
(
country
=>
{
detectCountry
().
then
(
country
=>
{
if
(
country
!==
'EG'
)
{
if
(
country
!==
'EG'
)
{
applyGeoPricing
(
country
);
applyGeoPricing
(
country
);
}
}
});
});
}
});
});
/* ═══════════════════════════════════════════════
/* ═══════════════════════════════════════════════
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment