src/lib/demo.js
function(event) {
    clearTimeout(noticeDelay);
    var e = event || window.event;
    var target = e.target || e.srcElement;
    if(target.tagName == 'SPAN') {
      var targetTitle = target.parentNode.tagLine;
      noticeContainer.innerHTML = (target.className == 'like' ? 'Liked ' : 'Marked ') + '<strong>' + targetTitle + '</strong>';
      noticeContainer.className = 'on';
      noticeDelay = setTimeout(function() {
        noticeContainer.className = 'off';
      }, 2000);
    }
  }
function(event) {
    clearTimeout(noticeDelay);
    var e = event || window.event;
    var target = e.target || e.srcElement;
    if(target.tagName == 'SPAN') {
      var targetTitle = target.parentNode.tagLine;
      noticeContainer.innerHTML = (target.className == 'like' ? 'Liked ' : 'Marked ') + '<strong>' + targetTitle + '</strong>';
      noticeContainer.className = 'on';
      noticeDelay = setTimeout(function() {
        noticeContainer.className = 'off';
      }, 2000);
    }
  }
function ( event ) { clearTimeout ( noticeDelay ) ; var e = event || window . event ; var target = e . target || e . srcElement ; if ( target . tagName == 'SPAN' ) { var targetTitle = target . parentNode . tagLine ; noticeContainer . innerHTML = ( target . className == 'like' ? 'Liked ' : 'Marked ' ) + '<strong>' + targetTitle + '</strong>' ; noticeContainer . className = 'on' ; noticeDelay = setTimeout ( function ( ) { noticeContainer . className = 'off' ; } , 2000 ) ; } }
Pop notice tag after user liked or marked an item.
Pop notice tag after user liked or marked an item .