js/main.js
// Shows a title on the DOM
Shows a title on the DOM
Shows a title on the DOM
function showTitle(title) {
  let image =
    '<img class="mx-auto rounded" alt="' +
    title.name +
    '" src="images/education/' +
    title.image +
    '"width="100%">';
  let content =
    '<h5 class="oswald">' +
    title.name +
    '</h5><h6>' +
    title.entity +
    '</h6><p>' +
    title.title +
    ' | ' +
    title.date;
  let imageColumn = 'class="col-lg-3 col-md-4 col-12 wow slideInLeft"';
  let textColumn = 'class="col-lg-5 col-md-8 col-12 mb-4 wow slideInRight"';
  let startEndColumn = '<div class="col-2 col-md-12 col-lg-2"></div>';
  let educationList = $('#educationList');
  content += '<br>';
  if (title.link) {
    content +=
      '<a href="' +
      title.link +
      '" class="badge badge-info" target="_blank">See certificate</a>';
  } else {
    content += '<br>';
  }
  educationList.append(startEndColumn);
  educationList.append(openDiv + imageColumn + '>' + image + closeDiv);
  educationList.append(
    openDiv +
      textColumn +
      '>' +
      openCard +
      'style="height: 100%">' +
      openDiv +
      'class="mt-2 mr-2 ml-2">' +
      content +
      '</p>' +
      closeDiv +
      closeDiv +
      closeDiv
  );
  educationList.append(startEndColumn);
}
function showTitle ( title ) { let image = '<img class="mx-auto rounded" alt="' + title . name + '" src="images/education/' + title . image + '"width="100%">' ; let content = '<h5 class="oswald">' + title . name + '</h5><h6>' + title . entity + '</h6><p>' + title . title + ' | ' + title . date ; let imageColumn = 'class="col-lg-3 col-md-4 col-12 wow slideInLeft"' ; let textColumn = 'class="col-lg-5 col-md-8 col-12 mb-4 wow slideInRight"' ; let startEndColumn = '<div class="col-2 col-md-12 col-lg-2"></div>' ; let educationList = $ ( '#educationList' ) ; content += '<br>' ; if ( title . link ) { content += '<a href="' + title . link + '" class="badge badge-info" target="_blank">See certificate</a>' ; } else { content += '<br>' ; } educationList . append ( startEndColumn ) ; educationList . append ( openDiv + imageColumn + '>' + image + closeDiv ) ; educationList . append ( openDiv + textColumn + '>' + openCard + 'style="height: 100%">' + openDiv + 'class="mt-2 mr-2 ml-2">' + content + '</p>' + closeDiv + closeDiv + closeDiv ) ; educationList . append ( startEndColumn ) ; }
Shows a title on the DOM
Shows a title on the DOM