Last active
February 13, 2017 09:43
-
-
Save pietrocaselani/d8de7c6230b767460189ac7ca7ed165c to your computer and use it in GitHub Desktop.
This file contains 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
<a id="url_install" href="itms-services://?action=download-manifest&url=https://ios.agilepromoter.com.br/_replace_me_/manifest.plist"> | |
<script type="text/javascript"> | |
window.onload = function() { | |
var path = window.location.pathname; | |
path = path.substring(1, path.length - 1); | |
var linkElement = document.getElementById("url_install"); | |
var iOSURL = linkElement.getAttribute("href") | |
iOSURL = iOSURL.replace("_replace_me_", path); | |
linkElement.setAttribute("href", iOSURL); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment