jQuery

Add active class to menu ul > li > a ( on front-end side )

$('.mnu-self li');
  var path = window.location.pathname;
  $('.mnu-self li a').each(function() {
  var href = $(this).attr('href');
  if(path === href) {
  $(this).parent('li').addClass('active');
  }
});

Button Top

$('.button-top').click(function(){

  $('html, footer').stop().animate({scrollTop: 0}, 'slow', 'swing');
	
});

Scroll progress indicator

$("body").prognroll({
  height: 3,
  color: "#f9ce20",
  custom: false
});

Wrap a piece of str to new tag

$('.myClass').each(function() {
  var ths = $(this); 
  ths.html(ths.html().replace('.com', '<span><span class="str">.</span>com</span>'));
});