Skip to content

Instantly share code, notes, and snippets.

@mbifulco
Last active November 21, 2016 18:04
Show Gist options
  • Save mbifulco/31ebad0c27fb8ea0888bc57a20a436f4 to your computer and use it in GitHub Desktop.
Save mbifulco/31ebad0c27fb8ea0888bc57a20a436f4 to your computer and use it in GitHub Desktop.
<div class="cms-loaded">
<h1>Events Content Goes Here</h1>
<a href="/testing">testing</a>
<a href="/123">123</a>
</div>
<script>
$(function(){
var links = $('.cms-loaded a');
$(links).each(function(link){
debugger;
});
var article = window.location.search;
if(article) {
console.log(article);
}
else {
console.log('No event specificied, loading default page.')
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment