function checkAnon(id) {
  var sessionDate = new Date($(id).val());
  var joinDate = new Date($(id).parents('.slds-tabs_default__content').find('input[aria-label="attribute-joined"]').val());
  if(sessionDate > joinDate){
    $(id).parents('.slds-expression__group').find('.slds-badge[title="Known User Session"]').removeClass('slds-hide');
  } else {
    $(id).parents('.slds-expression__group').find('.slds-badge[title="Known User Session"]').addClass('slds-hide');
  }
}
// Apply badge to highlight anonymous and know user sessions
Apply badge to highlight anonymous and know user sessions
Apply badge to highlight anonymous and know user sessions
function checkAnon(id) {
  var sessionDate = new Date($(id).val());
  var joinDate = new Date($(id).parents('.slds-tabs_default__content').find('input[aria-label="attribute-joined"]').val());
  if(sessionDate > joinDate){
    $(id).parents('.slds-expression__group').find('.slds-badge[title="Known User Session"]').removeClass('slds-hide');
  } else {
    $(id).parents('.slds-expression__group').find('.slds-badge[title="Known User Session"]').addClass('slds-hide');
  }
}
function checkAnon ( id ) { var sessionDate = new Date ( $ ( id ) . val ( ) ) ; var joinDate = new Date ( $ ( id ) . parents ( '.slds-tabs_default__content' ) . find ( 'input[aria-label="attribute-joined"]' ) . val ( ) ) ; if ( sessionDate > joinDate ) { $ ( id ) . parents ( '.slds-expression__group' ) . find ( '.slds-badge[title="Known User Session"]' ) . removeClass ( 'slds-hide' ) ; } else { $ ( id ) . parents ( '.slds-expression__group' ) . find ( '.slds-badge[title="Known User Session"]' ) . addClass ( 'slds-hide' ) ; } }
Apply badge to highlight anonymous and know user sessions
Apply badge to highlight anonymous and know user sessions