daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var countH2 = 0;
  2.         $('.content-page article h2').each(function() {
  3.             countH2++;
  4.             $(this).attr('id', 'head-'+countH2 );
  5.  
  6.             $('.content-article .list').append('<li><i class="icon-correct-symbol"></i><a href="#head-'+countH2+'">'+$(this).text()+'</a></li>');
  7.  
  8.         });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top