Sarah Rafferty

Sarah Rafferty

Sarah is a writer, mother, and music enthusiast from Melbourne, Australia. She loves exploring the constant juxtapositions of life in her writing and the unexpected lessons that we never stop learning.
jQuery(document).ready(function($){ var currid = $('.archive-content-tab button:last-child').attr('data-id'); $('.archive-content-tab button:last-child').addClass('active'); $('#'+currid).addClass('active'); $('button.archive-btn').on('click', function(){ var id = $(this).attr('data-id'); var PID = $('div#'+id+' .sub-img').data('id'); $('button').removeClass('active'); $(this).addClass('active'); $('.sub-tab-content').removeClass('active'); $('#'+id).addClass('active'); console.log(PID); $(".related-post-content").removeClass('show'); $("."+id).addClass('show'); $("#related-"+PID).hide(); }); var latestPID = $('.sub-tab-content.active .sub-img').data('id'); var currrelated = $('button.archive-btn.active').data('id'); $("."+currrelated).addClass('show'); $("#related-"+latestPID).hide(); });

 Expert advice for battling breakup grief.