Skip to content

Instantly share code, notes, and snippets.

@mbifulco mbifulco/just-testing.html
Last active Nov 21, 2016

Embed
What would you like to do?
<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
You can’t perform that action at this time.