Skip to content

Instantly share code, notes, and snippets.

@richmolj
Last active August 29, 2015 13:56
Show Gist options
  • Save richmolj/9199292 to your computer and use it in GitHub Desktop.
Save richmolj/9199292 to your computer and use it in GitHub Desktop.
Matchup div example
api.events.onMatchupView = function(matchup) {
//https://groups.google.com/forum/#!topic/disqus-dev/hi8mm5DtN-s
var id = "seed-"+matchup.contestants[0].seed+"-"+matchup.contestants[1].seed+""
DISQUS.reset({
reload: true,
config: function () {
this.page.identifier = id;
this.page.url = window.location.href + "/#!/" + id;
}
});
// ... other matchup related code here ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment