Created
December 23, 2020 00:27
-
-
Save juniorthiesen/6eedd48d10d44bc514351cee64626030 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Beleleu Burger & Bar - Boa Viagem</title> | |
</head> | |
<body> | |
<script> | |
setTimeout(function(){ | |
var destination = "ifood://restaurant/2ee58643-5e0c-40af-a2ff-46af8bc38412"; | |
if( navigator.userAgent.match(/Android/i) ) { | |
// use Android's redirect | |
document.location = destination; | |
} | |
else { | |
// use iOS redirect | |
window.location.replace( destination ); | |
} | |
}, 1000); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment