mirror of
https://github.com/ivabus/www
synced 2024-11-22 21:35:06 +03:00
Add back twitter deep linking
This commit is contained in:
parent
93f6dd14b0
commit
d2edc6b4bb
1 changed files with 13 additions and 0 deletions
|
@ -91,3 +91,16 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- Deep-linking script for Twitter follow button -->
|
||||||
|
<script>
|
||||||
|
document.getElementById("follow-button").addEventListener("click", function() {
|
||||||
|
if (navigator.userAgent.match(/iPhone|iPad|iPod/i)) {
|
||||||
|
window.location.href = "twitter://user?screen_name=teaxyz";
|
||||||
|
} else if (navigator.userAgent.match(/Android/i)) {
|
||||||
|
window.location.href = "twitter://user?screen_name=teaxyz";
|
||||||
|
} else {
|
||||||
|
window.location.href = "https://twitter.com/teaxyz";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue