<div class='avatar-image-box'></div>

<script>
'use strict';
$(() => {

  const manifest = cd.kata.manifest();
  const avatarIndex = manifest.group_index;

  if (avatarIndex) {
    const $img = cd.lib.$makeAvatarImage(avatarIndex);
    $('.avatar-image-box').append($img);
    cd.createTip($img, 'switch to review mode');
    $img.click(() => cd.review.fromTestPage(cd.kata.id, -1));
  }

});
</script>

<div class='avatar-image-box'></div>

<script>
'use strict';
$(() => {

  const manifest = cd.kata.manifest();
  const avatarIndex = manifest.group_index;

  if (avatarIndex != undefined) {
    const $img = cd.lib.$makeAvatarImage(avatarIndex);
    $('.avatar-image-box').append($img);
    cd.createTip($img, 'switch to review mode');
    $img.click(() => cd.review.fromTestPage(cd.kata.id, -1));
  }

});
</script>

Fix avatar-image error when avatar-index == 0 (alligator)
Fix avatar-image error when avatar-index == 0 (alligator)
