DESIGN PORTFOLIO

LOGOS

Websites

Collatoral

 

MEDIA KITS

SOCIAL MEDIA

SOMETHING

init(); //Start the code when the page loads function init(){ $('.sqs-block-markdown h2').nextUntil('.sqs-block-markdown h2').slideUp(); //Your code (wrapped in a function) $('.sqs-block-markdown h2').unbind().click(function(){ $('.sqs-block-markdown h2').not(this).nextUntil('.sqs-block-markdown h2').slideUp(), $(this).nextUntil('.sqs-block-markdown h2').slideToggle(); }); $('.sqs-block-markdown h2').css('cursor','pointer'); } document.addEventListener('pageChange', function(){ //When the change page event fires due to ajax init(); //Call the code again }); /*This stuff listens for an ajax page change*/ window.onload = watch; function watch(){MutationObserver=window.MutationObserver||window.WebKitMutationObserver;var a=new MutationObserver(function(a){for(var b=0;b