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
$('.contestsBtn').click(function(){ | |
$('body').wm_votigo.getAllContests(function(d){ | |
// these are the contests results. Do something. | |
// lets loop through all the contests in the results | |
$('.contestResults').empty().append('<h3>Get All Contests Results</h3>'); | |
$(d.Contests).each(function(){ | |
console.log(this) | |
$('.contestResults').append('Contest Name: ' + this.Contest.contestName + ' | Contest ID: ' + this.Contest.contestId + '<br />'); | |
}); |
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
<div class=""></div> |
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
// tries to execute the uri:scheme | |
function uriSchemeWithHyperlinkFallback(uri, href) { | |
if(!window.open(uri)){ | |
window.location = href; | |
} | |
} |