EDIT VERY SIMPLE CODE (DEEPLINK/OPEN APP ON PHONE)
- Statusi: Closed
- Çmimi: $10
- Kandidaturat e marra: 13
Përmbledhja e konkursit
Please look at the following code, if you are on laptop it works as it should directing you to the "Please subscribe)
But if you are on smartphone, it doesn't work- Please get back to me if you think you can help :)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
window.onload = function() {
var desktopFallback = "https://bit.ly/IPFIXYT",
mobileFallback = "https://www.youtube.com/channel/UC91cTahWYcGDZVvAJYNZFqg?sub_confirmation=1",
app = "vnd.youtube://https://www.youtube.com/channel/UC91cTahWYcGDZVvAJYNZFqg?sub_confirmation=1";
if( /Android|iPhone|iPad|iPod/i.test(navigator.userAgent) ) {
window.location = app;
window.setTimeout(function() {
window.location = mobileFallback;
}, 25);
} else {
window.location = desktopFallback;
}
function killPopup() {
window.removeEventListener('pagehide', killPopup);
}
window.addEventListener('pagehide', killPopup);
};
</script>
</body>
</html>
<!-- /wp:html -->
Aftësi të rekomanduara
Punimet mё tё mira nga ky konkurs
-
mizan128398 Bangladesh
-
ShahjahanWork Pakistan
-
qwertykg South Africa
-
prantogpi Bangladesh
-
rishabhkanhaiya8 India
-
rishabhkanhaiya8 India
-
tangilalopa2000 Bangladesh
-
abhiaspro India
-
daniilkurka Ukraine
-
wedecoder Benin
-
wedecoder Benin
Këndi publik i sqarimeve
Si të fillosh me konkurset
-
Posto konkursin Shpejt dhe thjeshtë
-
Merr shumë propozime Nga e gjithë bota
-
Zgjidh kandidaturën më të mirë Shkarko dokumentet - E thjeshtë!