How to Do a Content Audit [Updated for 2017]


Posted by Everett (function($) { // code using $ as alias to jQuery $(function() { // Hide the hypotext content. $(‘.hypotext-content’).hide(); // When a hypotext link is clicked. $(‘a.hypotext.closed’).click(function (e) { // custom handling here e.preventDefault(); // Create the class reference from the rel value. var id = ‘.’ + $(this).attr(‘rel’); // If the content is hidden, show it now. if ( $(id).css(‘display’) == ‘none’ ) { $(id).show(‘slow’); if (jQuery.ui) { // UI loaded $(id).effect(“highlight”, {}, 1000); } } // If the content is shown, hide it now. else { $(id).hide(‘slow’); } }); // If we have a hash value in the url. if (window.location.hash) { // If the anchor is within a hypotext block, expand it, by clicking the // relevant link. console.log(window.location.hash); var anchor = $(window.location.hash); var hypotextLink = $(‘#’ + anchor.parents(‘.hypotext-content’).attr(‘rel’)); console.log(hypotextLink); hypotextLink.click(); // Wait until the content has expanded bef
http://tracking.feedpress.it/link/9375/5549613

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s