Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
BoQsc authored Feb 27, 2024
1 parent 85ae7d5 commit 5aa24ec
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions splashscreen/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ <h2>7 Days To Die Vanilla Public Server Donation</h2>
</noscript>

<script>


// Open Collective

// Check for in-game donation
// https://publicdomain-nocopyright.github.io/7DTD-Public-Vanilla-Server/splashscreen/index.html?in-game=true
let urlParamsIngame = new URLSearchParams(window.location.search);
let IsInGameDonation = urlParamsIngame.get('in-game');
console.log("Is ingame donation: " + IsInGameDonation);

let IsOpenCollectivePlatform = false;

let urlParams = new URLSearchParams(window.location.search);
Expand Down Expand Up @@ -73,10 +77,17 @@ <h2>7 Days To Die Vanilla Public Server Donation</h2>
clearInterval(timeinterval);

if (IsOpenCollectivePlatform){
document.location.href = 'https://revolut.me/boqsc/' + donation_amount_converted_to_revolut_currency_format + '/7 days to die vanilla public server donation, as <anonymous> from Open Collective with reference: '+ reference +'/';
document.location.href = 'https://revolut.me/boqsc/' + donation_amount_converted_to_revolut_currency_format + '/7 days to die vanilla public server donation, as Open Collective with reference: '+ reference +'/';

}

if (IsInGameDonation){
document.location.href = 'https://revolut.me/boqsc/1eur/7 days to die vanilla public server donation, as <anonymous> in-game./';

}

} else {
document.location.href = 'https://revolut.me/boqsc/1eur/7 days to die vanilla public server donation, as <anonymous> from in-game/';
else {
document.location.href = 'https://revolut.me/boqsc/1eur/7 days to die vanilla public server donation, as <anonymous>/';
}
// do redirect or something ~ window.location = '//google.de';
}
Expand Down

0 comments on commit 5aa24ec

Please sign in to comment.