Skip to content

Commit

Permalink
Merge pull request #17 from mihailpolev/uk-redirect
Browse files Browse the repository at this point in the history
Add redirect for UK
  • Loading branch information
Foboz authored Sep 20, 2024
2 parents 4447c65 + b39b61c commit d70bf39
Show file tree
Hide file tree
Showing 5 changed files with 4,609 additions and 3,261 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ <h2 class="footer__get-app">Get the<br />MEW wallet</h2>
</div>
</div>

<script src="js/script.min.js?v=31"></script>
<script src="js/script.min.js?v=32"></script>

</body>
</html>
14 changes: 14 additions & 0 deletions js/script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/script.min.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions jsapp/_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ var videoMobile = document.getElementById("player-m")

var playButton = $('.js-play-video')

$(document).ready(function() {
$.ajax({
url: "https://partners.mewapi.io/ip-info",
async: false,
dataType: 'json',
crossDomain: true,
success: function (json) {
if(json.country == "GB") {
window.location.replace("https://www.myetherwallet.com");
}
}
});
});

$(window).load(function(){
if($("div").hasClass("own-funds")) {
playButton.click(function(){
Expand Down
Loading

0 comments on commit d70bf39

Please sign in to comment.