Skip to content

Instantly share code, notes, and snippets.

@IgorGavrilenko
Created June 27, 2022 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IgorGavrilenko/b4a26cb5412da2f144afa6d32a8ee28b to your computer and use it in GitHub Desktop.
Save IgorGavrilenko/b4a26cb5412da2f144afa6d32a8ee28b to your computer and use it in GitHub Desktop.
нумерация
(function (){
const $infoListCount = $('.info__list');
const $infoItemCount = '.info__item';
const $infoNumCount = '.info__num';
$infoListCount.each(function(){
$($infoItemCount, this).each(function(i){
$(this).find($infoNumCount).text(('0' + (i+1)).slice(-2));
});
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment