Skip to content

Instantly share code, notes, and snippets.

@iamdaniele
Last active December 2, 2016 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamdaniele/efae0ff4c2206a08c4fb44e39bb735e7 to your computer and use it in GitHub Desktop.
Save iamdaniele/efae0ff4c2206a08c4fb44e39bb735e7 to your computer and use it in GitHub Desktop.
iOS release
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<style>
body {font-family: "Open Sans"}
span {font-size: 11px; color: #474a54;}
</style>
<div><span class="version"></span><span class="release-date"></span></div>
<script>
$.get('https://api.github.com/repos/carnivalmobile/carnival-ios-sdk/releases/latest', function(r) {
if (r && r.tag_name && r.published_at) {
$('.version').text('v' + r.tag_name);
$('.release-date').text(', ' + r.published_at.split('T')[0]);
}
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment